7 #ifndef ZRTOS_VFS_MODULE_AVR_SPI_SYNC_H 8 #define ZRTOS_VFS_MODULE_AVR_SPI_SYNC_H 14 #include <avr/interrupt.h> 18 #include <zrtos/vfs/module/spi/sync.h> 33 while(!(SPSR & (1<<SPIF))){
#define ZRTOS_CAST(type, value)
zrtos_error_t zrtos_vfs_module_avr_spi_sync__on_write(zrtos_vfs_file_t *thiz, char *path, void *buf, size_t len, zrtos_vfs_offset_t offset, size_t *out)
#define ZRTOS_VFS_PLUGIN__4_ON_READ_DEFAULT()
size_t zrtos_vfs_offset_t
#define ZRTOS_VFS_PLUGIN__9_ON_IOCTL_DEFAULT()
#define ZRTOS_VFS_PLUGIN__7_ON_CAN_WRITE_DEFAULT()
#define ZRTOS_VFS_PLUGIN__8_ON_SEEK_DEFAULT()
#define ZRTOS_VFS_PLUGIN__3_ON_UMOUNT(callback)
#define ZRTOS_VFS_PLUGIN__6_ON_CAN_READ_DEFAULT()
zrtos_error_t zrtos_vfs_module_spi_sync__on_write_helper(zrtos_vfs_file_t *thiz, char *path, void *buf, size_t len, zrtos_vfs_offset_t offset, size_t *out, zrtos_error_t(*callback)(zrtos_vfs_module_spi_sync_inode_t *inode_data, zrtos_vfs_module_spi_sync_file_t *file_data, void *buf, size_t len, size_t *l))
#define ZRTOS_VFS_PLUGIN__2_ON_MOUNT(callback)
zrtos_error_t zrtos_vfs_module_spi_sync__on_open(zrtos_vfs_file_t *thiz)
#define ZRTOS_VFS_PLUGIN__5_ON_WRITE(callback)
zrtos_error_t zrtos_vfs_module_spi_sync__on_mount(zrtos_vfs_dentry_t *thiz)
size_t zrtos_types__ptr_get_byte_distance(void *bigger, void *smaller)
zrtos_error_t zrtos_vfs_module_avr_spi_sync__on_write_callback(zrtos_vfs_module_spi_sync_inode_t *inode_data, zrtos_vfs_module_spi_sync_file_t *file_data, void *buf, size_t len, size_t *l)
#define ZRTOS_VFS_PLUGIN__1_ON_CLOSE(callback)
zrtos_vfs_module_spi_sync_control_t control
zrtos_error_t zrtos_vfs_module_spi_sync__on_umount(zrtos_vfs_dentry_t *thiz)
zrtos_error_t zrtos_vfs_module_spi_sync__on_close(zrtos_vfs_file_t *thiz)
ZRTOS_VFS_PLUGIN__INIT(spi, ZRTOS_VFS_PLUGIN__0_ON_OPEN(zrtos_vfs_module_spi_sync__on_open) ZRTOS_VFS_PLUGIN__1_ON_CLOSE(zrtos_vfs_module_spi_sync__on_close) ZRTOS_VFS_PLUGIN__2_ON_MOUNT(zrtos_vfs_module_spi_sync__on_mount) ZRTOS_VFS_PLUGIN__3_ON_UMOUNT(zrtos_vfs_module_spi_sync__on_umount) ZRTOS_VFS_PLUGIN__4_ON_READ_DEFAULT() ZRTOS_VFS_PLUGIN__5_ON_WRITE(zrtos_vfs_module_avr_spi_sync__on_write) ZRTOS_VFS_PLUGIN__6_ON_CAN_READ_DEFAULT() ZRTOS_VFS_PLUGIN__7_ON_CAN_WRITE_DEFAULT() ZRTOS_VFS_PLUGIN__8_ON_SEEK_DEFAULT() ZRTOS_VFS_PLUGIN__9_ON_IOCTL_DEFAULT())
#define ZRTOS_VFS_PLUGIN__0_ON_OPEN(callback)