Go to the documentation of this file.
46 #ifndef HTTPD_FS_ARCH_H
47 #define HTTPD_FS_ARCH_H
56 #include "cfs-coffee-arch.h"
58 #define httpd_fs_cpy avr_httpd_fs_cpy
59 #define httpd_fs_getchar avr_httpd_fs_getchar
60 #define httpd_fs_strcmp avr_httpd_fs_strcmp
61 #define httpd_fs_strchr avr_httpd_fs_strchr
63 #ifdef COFFEE_AVR_FLASH
64 #define avr_httpd_fs_cpy(dest,addr,size) avr_flash_read((CFS_CONF_OFFSET_TYPE) addr, (uint8_t *)dest, (CFS_CONF_OFFSET_TYPE) size)
65 #define http_fs_read avr_flash_read
68 #ifdef COFFEE_AVR_EXTERNAL
69 #define avr_httpd_fs_cpy(dest,addr,size) external_flash_read((CFS_CONF_OFFSET_TYPE) addr, (uint8_t *)dest, (CFS_CONF_OFFSET_TYPE) size)
70 #define http_fs_read external_flash_read
73 #ifdef COFFEE_AVR_SDCARD
74 #define avr_httpd_fs_cpy(dest,addr,size) sd_read((CFS_CONF_OFFSET_TYPE) addr, (uint8_t *)dest, (CFS_CONF_OFFSET_TYPE) size)
75 #define http_fs_read sd_read