Changeset 380 for trunk/hal/tsar_mips32/drivers
- Timestamp:
- Aug 14, 2017, 6:31:25 PM (7 years ago)
- Location:
- trunk/hal/tsar_mips32/drivers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/drivers/soclib_pic.c
r337 r380 491 491 uint32_t * base = soclib_pic_xcu_base(); 492 492 493 // set period value in XCU 494 base[(XCU_PTI_PER << 5) | lid] = period; 493 // set period value in XCU (in cycles) 494 uint32_t cycles = period * SOCLIB_CYCLES_PER_MS * CONFIG_SCHED_TICK_MS_PERIOD; 495 base[(XCU_PTI_PER << 5) | lid] = cycles; 495 496 496 497 // enable PTI in local XCU controller -
trunk/hal/tsar_mips32/drivers/soclib_pic.h
r279 r380 90 90 #define SOCLIB_MAX_PTI 16 91 91 92 #define SOCLIB_CYCLES_PER_MS 1000 // for a SystemC virtual prototype 93 92 94 /****************************************************************************************** 93 95 * This define the registers offsets for the external SOCLIB_IOPIC component. … … 231 233 * The <period> argument define the number of cycles between IRQs. 232 234 ****************************************************************************************** 233 * @ period : number of cycles between IRQs.235 * @ period : number of ticks between IRQs. 234 236 *****************************************************************************************/ 235 237 void soclib_pic_enable_timer( uint32_t period );
Note: See TracChangeset
for help on using the changeset viewer.