Other Parts Discussed in Thread: CC1310
器件型号: CC1310
void Task01_init(void) {
Task_Params Despachador_TaskParams;
Task_Params_init(&Despachador_TaskParams);
Despachador_TaskParams.stackSize = DESPACHADOR_TASK_STACK_SIZE;
Despachador_TaskParams.priority = 2;
Despachador_TaskParams.stack = &Despachador_TaskStack;
Despachador_TaskParams.arg0 = (UInt)1000000;
Task_construct(&Despachador_TaskStruct, Task_Control_DespachadorFxn, &Despachador_TaskParams, NULL);
}
void UART_Task02_Init(void){
//////// UART Task ///////////////////////
Task_Params taskParams;
Task_Params_init(&taskParams);
taskParams.stack = uartTaskStack;
taskParams.stackSize = UART_STACK_SIZE;
taskParams.priority = 2;
Task_construct(&uartTaskStruct, uartTaskFxn, &taskParams, NULL);//*/
}
void RF_Task03_Init(){
Task_Params rf_taskParams;
Task_Params_init(&rf_taskParams);
rf_taskParams.stack = rf_TaskStack;
rf_taskParams.stackSize = RF_TASK_STACK_SIZE;
rf_taskParams.priority = 2;
Task_construct(&rf_TaskStruct, rfTaskFxn, &rf_taskParams, NULL);
}
void Task04_Init(){
Task_Params taskParams;
Task_Params_init(&taskParams);
taskParams.stack = taskGTStack;
taskParams.stackSize = TASK_G_T_STACK_SIZE;
taskParams.priority = 2;
Task_construct(&taskGiroTagStruct, taskGT, &taskParams, NULL);
}
int main(void)
{
/* Call driver init functions. */
Board_initGeneral();
GPIO_init();
SPI_init();
I2C_init();
Task01_init();
UART_Task02_Init(void){
RF_Task03_Init();
Task04_Init()
/* Start BIOS */
BIOS_start();
return (0);
}
Hello Engineers.
I have a serious problem. A couple of months ago, I wrote some code to manage UART, SPI, I2C, and RF based on the Simplelink mutex sample project. It worked well, but unfortunately, I lost access to the PC that contained my work. The good news is that I have a backup of the project on Drive.
I decided to start rebuilding my project, but this time based on the rfEasyLinkTx_CC1310_LAUNCHXL_tirtos_ccs example.
I made some edits to the files
CC1310_LAUNCHXL.c and CC1310_LAUNCHXL.h to configure some output and input pins for my custom board. In rfEasyLinkTx.c, I copied and pasted my original code.
I assumed it would work fine.
After compiling, I was very disappointed because the program starts up, but I noticed that it does not configure my tasks (there are 4) correctly.
I have identified some differences.
In the mutex example, there is a mutex.cfg file, but in rfEasyLinkTx_CC1310_LAUNCHXL_tirtos_ccs, this configuration file does not exist.
Does this affect the execution of TIRTOS-based code in any way?
Why doesn't the same code I wrote in mutex.c work the same in rfEasyLinkTx.c?
I also tried to regenerate my code directly in the mutex example. I copied and pasted it, but I was disappointed because I got the following error.
undefined first referenced
symbol in file
--------- ----------------
usleep ./mutex.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; “mutex_CC1310_LAUNCHXL_tirtos_ccs.out” not built
This is very strange to me since I used usleep() without any problems in my original code.
Could you guide me to understand what might be happening here and how to fix these strange errors?
Thanks in advance.