Changeset 6 for trunk/tools/bootloader_tsar/boot_bdv_driver.c
- Timestamp:
- Apr 26, 2017, 2:14:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/bootloader_tsar/boot_bdv_driver.c
r1 r6 12 12 13 13 #ifndef SEG_IOC_BASE 14 # error "The SEG_IOC_BASE value should be defined in the ' boot_config.h' file"14 # error "The SEG_IOC_BASE value should be defined in the 'hard_config.h' file" 15 15 #endif 16 16 17 #ifndef IO_CXY 18 # error "The IO_CXY value should be defined in the 'boot_config.h' file" 17 #ifndef X_IO 18 # error "The X_IO value should be defined in the 'hard_config.h' file" 19 #endif 20 21 #ifndef Y_IO 22 # error "The Y_IO value should be defined in the 'hard_config.h' file" 23 #endif 24 25 #ifndef Y_WIDTH 26 # error "The Y_WIDTH value should be defined in the 'hard_config.h' file" 19 27 #endif 20 28 … … 31 39 static uint32_t boot_bdv_get_register( uint32_t reg ) 32 40 { 33 cxy_t cxy = IO_CXY;41 cxy_t cxy = (X_IO << Y_WIDTH) + Y_IO; 34 42 uint32_t * ptr = (uint32_t *)SEG_IOC_BASE + reg; 35 43 … … 46 54 uint32_t val ) 47 55 { 48 cxy_t cxy = IO_CXY;56 cxy_t cxy = (X_IO << Y_WIDTH) + Y_IO; 49 57 uint32_t * ptr = (uint32_t *)SEG_IOC_BASE + reg; 50 58
Note: See TracChangeset
for help on using the changeset viewer.