Changeset 315 for trunk/kernel/vfs/fatfs.c
- Timestamp:
- Aug 3, 2017, 10:15:18 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/vfs/fatfs.c
r279 r315 296 296 297 297 // get pointer on buffer for current page 298 current_page_buffer = (uint32_t *)ppm_page2vaddr( current_page_desc ); 298 xptr_t base_xp = ppm_page2base( XPTR( local_cxy , current_page_desc ) ); 299 current_page_buffer = (uint32_t *)GET_PTR( base_xp ); 299 300 300 301 // get FAT slot content … … 473 474 474 475 // get memory buffer base address 475 uint8_t * buffer = (uint8_t *)ppm_page2vaddr( page ); 476 xptr_t base_xp = ppm_page2base( XPTR( local_cxy , page ) ); 477 uint8_t * buffer = (uint8_t *)GET_PTR( base_xp ); 476 478 477 479 // get number of sectors from FATFS context … … 604 606 605 607 // get page base 606 base = ppm_page2vaddr( page ); 608 xptr_t base_xp = ppm_page2base( XPTR( local_cxy , page ) ); 609 base = (uint8_t *)GET_PTR( base_xp ); 607 610 608 611 #if (CONFIG_FATFS_DEBUG > 1)
Note: See TracChangeset
for help on using the changeset viewer.