This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SYS BIOS 6 HWI Initialization

Other Parts Discussed in Thread: SYSBIOS

I'm converting a C6486/C6472 BIOS 5 project to BIOS 6, but am not clear what all is required (not enough examples in docs). In BIOS 5 I statically created a HWI object in the TCF:

bios.HWI.instance("HWI_INT4").fxn = prog.extern("isrDoorbell");
bios.HWI.instance("HWI_INT4").useDispatcher = 1;

then in my initialization code I used these to map the local SRIO event number to the INT and enable IRQs:

 

 

 

// Enable SRIO Doorbells IRQs - INT4

 

 

Hwi_eventMap(4, CSL_INTC_EVENTID_RIOINT_LOCAL); // Optional - this is the default mapping
CSL_chipWriteReg(CSL_CHIP_IER, CSL_chipReadReg(CSL_CHIP_IER) | C64_EINT4);

 

Does the following accomplish all of this in a BIOS 6 *.cfg file (since Hwi_Params.enableInt defaults to True)?

var Hwi4Params0 = new ti_sysbios_family_c64p_Hwi.Params();

Hwi4Params0.eventId = 4;  // RIOINT_LOCAL Event number

var Hwi_INT4 = ti_sysbios_family_c64p_Hwi.create(4, "&isrDoorbell", Hwi4Params0);

 

 

Thanks

Calvin,