Tool/software: TI-RTOS
Hello.
I have a question.
Could you tell me how to configure UART data length to 7 bits in the TI-RTOS sample code?
I am using "UART Echo" sample code in the TI-RTOS for MSP43x package.
Although I modified following codes, UC7BIT of the UCA1CTLW0 register is not set.
・ in the souce file "uartecho.c":
UART_Params_init(&uartParams);
uartParams.writeDataMode = UART_DATA_BINARY;
uartParams.readDataMode = UART_DATA_BINARY;
uartParams.readReturnMode = UART_RETURN_FULL;
uartParams.readEcho = UART_ECHO_OFF;
uartParams.baudRate = 9600;
uartParams.dataLength = UART_LEN_7;
uart = UART_open(Board_UART0, &uartParams);
・in the souce file "UARTUSCIA.c":
object->readMode = params->readMode;
object->writeMode = params->writeMode;
object->readTimeout = params->readTimeout;
object->writeTimeout = params->writeTimeout;
object->readCallback = params->readCallback;
object->writeCallback = params->writeCallback;
object->readReturnMode = params->readReturnMode;
object->readDataMode = params->readDataMode;
object->writeDataMode = params->writeDataMode;
object->readEcho = params->readEcho;
object->dataLength = params->dataLength;
Regards,
uchida-k