Changeset 320 for soft/giet_vm/giet_drivers/pic_driver.c
- Timestamp:
- Jun 10, 2014, 12:33:23 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/pic_driver.c
r313 r320 8 8 // This driver supports the SocLib vci_iopic component. 9 9 // 10 // The seg_pic_base address must be defined in giet_vsegs.ldfile.10 // The SEG_PIC_BASE address must be defined in hard_config.h file. 11 11 /////////////////////////////////////////////////////////////////////////////////// 12 12 // Implementation note: … … 20 20 #include <utils.h> 21 21 22 #if !defined(SEG_PIC_BASE) 23 # error: You must define SEG_PIC_BASE in the hard_config.h file 24 #endif 25 22 26 ///////////////////////////////////////////////////////////////////////////////// 23 27 // This low level function returns the value of register (channel / index) … … 26 30 unsigned int index ) 27 31 { 28 unsigned int* vaddr = (unsigned int*) &seg_pic_base+ channel*IOPIC_SPAN + index;32 unsigned int* vaddr = (unsigned int*)SEG_PIC_BASE + channel*IOPIC_SPAN + index; 29 33 return _io_extended_read( vaddr ); 30 34 } … … 37 41 unsigned int value ) 38 42 { 39 unsigned int* vaddr = (unsigned int*) &seg_pic_base+ channel*IOPIC_SPAN + index;43 unsigned int* vaddr = (unsigned int*)SEG_PIC_BASE + channel*IOPIC_SPAN + index; 40 44 _io_extended_write( vaddr, value ); 41 45 }
Note: See TracChangeset
for help on using the changeset viewer.