Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
I am trying to get 3 mailboxes set up on my CC1310. I've tried to use the mailbox example driver, but when I go to create the handle, I get the compile error:
#256 type name is now allowed
This is my main where I initialize the Mailboxes:
int main(void) { /* Call driver init functions. */ Board_initGeneral(); /* Open LED pins */ ledPinHandle = PIN_open(&ledPinState, pinTable); Assert_isTrue(ledPinHandle != NULL, NULL); /* Parameters for mailbox */ Mailbox_Params mb_params; Mailbox_Params_init(&mb_params); mb_params.buf = (Ptr)DINmailboxBuffer; mb_params.bufSize = sizeof(DINmailboxBuffer); Mailbox_construct(&din_mb_struct, sizeof(MsgObj), DIN_NUMMSGS, &mb_params, NULL); din_mb = ti_sysbios_knl_Mailbox_Handle(&din_mb_struct); Mailbox_Params_init(&mb_params); mb_params.buf = (Ptr)DOUTmailboxBuffer; mb_params.bufSize = sizeof(DOUTmailboxBuffer); Mailbox_construct(&dout_mb_struct, sizeof(MsgObj), DIN_NUMMSGS, &mb_params, NULL); dout_mb = ti_sysbios_knl_Mailbox_Handle(&dout_mb_struct); Mailbox_Params_init(&mb_params); mb_params.buf = (Ptr)DACKmailboxBuffer; mb_params.bufSize = sizeof(DACKmailboxBuffer); Mailbox_construct(&dack_mb_struct, sizeof(MsgObj), DIN_NUMMSGS, &mb_params, NULL); dack_mb = ti_sysbios_knl_Mailbox_Handle(&dack_mb_struct); /* Semaphores */ Semaphore_Params semParams; Semaphore_Params_init(&semParams); Semaphore_construct(&semXmitStruct, 0, &semParams); /* Obtain instance handle */ semXmitHandle = Semaphore_handle(&semXmitStruct); /* Initialize task */ RxTask_init(ledPinHandle); TxTask_init(ledPinHandle); /* Start BIOS */ BIOS_start(); return (0); }
What do I need to do to get these mailboxes set up properly?