Changeset 568 for trunk/kernel/fs/fatfs.c
- Timestamp:
- Oct 5, 2018, 12:02:49 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/fs/fatfs.c
r519 r568 44 44 extern vfs_ctx_t fs_context[FS_TYPES_NR]; // allocated in vfs.c file 45 45 46 extern remote_barrier_t global_barrier; // allocated in kernel_init.c47 48 46 ////////////////////////////////////////////////////////////////////////////////////////// 49 47 // FATFS specific and static functions … … 55 53 ////////////////////////////////////////////////////////////////////////////////////////// 56 54 57 static inline 58 int get_length( 59 int offset __attribute__((unused) ), 60 int length) 61 { 62 return length; 63 } 64 65 static inline 66 int get_offset( 67 int offset, 68 int length __attribute__((unused)) ) 69 { 70 return offset; 71 } 55 static inline int get_length( int offset __attribute__((unused)), int length ) { return length; } 56 57 static inline int get_offset( int offset, int length __attribute__((unused)) ) { return offset; } 72 58 73 59 ////////////////////////////////////////////////////////////////////////////////////////// … … 231 217 232 218 ////////////////////////////////////////////////////////////////////////////////////////// 233 // FATFS specific butextern functions219 // FATFS specific extern functions 234 220 ////////////////////////////////////////////////////////////////////////////////////////// 235 221 … … 338 324 /////////////////////////////////////////////////////////////////////////////////////// 339 325 340 /////////////////////////////// 326 ///////////////////////////////////// 341 327 fatfs_ctx_t * fatfs_ctx_alloc( void ) 342 328 { … … 778 764 vfs_inode_type_t type = (is_dir) ? INODE_TYPE_DIR : INODE_TYPE_FILE; 779 765 780 hal_remote_s w( XPTR( child_cxy , &child_ptr->type ) , type );781 hal_remote_s w( XPTR( child_cxy , &child_ptr->size ) , size );782 hal_remote_s w( XPTR( child_cxy , &child_ptr->extend ) , cluster );766 hal_remote_s32( XPTR( child_cxy , &child_ptr->type ) , type ); 767 hal_remote_s32( XPTR( child_cxy , &child_ptr->size ) , size ); 768 hal_remote_s32( XPTR( child_cxy , &child_ptr->extend ) , cluster ); 783 769 784 770 #if DEBUG_FATFS_LOAD
Note: See TracChangeset
for help on using the changeset viewer.