Tool/software: TI-RTOS
Hi!
I want to add an Icall enabled task (UART) to the project, but I cannot find ICALL_MAX_NUM_TASKS macro. Can you told me where is it?
Best regards,
Mayer Tamás
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.
Tool/software: TI-RTOS
Hi!
I want to add an Icall enabled task (UART) to the project, but I cannot find ICALL_MAX_NUM_TASKS macro. Can you told me where is it?
Best regards,
Mayer Tamás
Hi!
Can I use the UART.h from proj0 instead of npi. I've started with uartecho and I
static void UARTfx_init(void)
{
UART_Params uartParams;
const char echoPrompt[] = "\fEchoing characters:\r\n";
/* Create a UART with data processing off. */
UART_Params_init(&uartParams);
uartParams.readMode = UART_MODE_CALLBACK;
uartParams.writeMode = UART_MODE_CALLBACK;
uartParams.readTimeout = UART_WAIT_FOREVER;
uartParams.writeTimeout = UART_WAIT_FOREVER;
uartParams.readCallback = IThandler;
uartParams.writeCallback = IThandler;
uartParams.baudRate = 9600;
uart = UART_open(Board_UART0, &uartParams);
if (uart == NULL) {
System_abort("Error opening the UART");
}
UART_write(uart, echoPrompt, sizeof(echoPrompt));
}
static void IThandler()
{
//Semaphore_pend(sem,ti_sysbios_knl_Semaphore_PendState_WAIT_FOREVER);
UARTFxn();
}
static void UARTFxn()
{
UART_read(uart, &UART_input, 1);
DataService_SetParameter(DS_STRING_ID, sizeof(UART_input), UART_input);
}
This is the actual code , it's not working. I want to read data from uart and give it to the dataservice string.I don't use any semaphors for uart,
I only have a callback function. It's called properly when I try to write to the uart with putty, but the charachter don't show up in the characteristic value .
There is maybe a problem with DataService_SetParameter(DS_STRING_ID, sizeof(UART_input), UART_input);, I don't know.I've already got this
advice ,that I have to try with NPI, but for me it seems to be an easier way.
Can you help me?
Best regards,
Mayer Tamás