Hello,
I use z-stack home automation, i need to use UART 1 on pins P1_6, P1_7. How can I do it?
My code is follow:
HalUARTInit
halUARTCfg_t uartConfig;
uartConfig.configured = TRUE;
uartConfig.baudRate = HAL_UART_BR_115200; //HAL_UART_BR_1M;
uartConfig.flowControl = HAL_UART_FLOW_OFF;
uartConfig.flowControlThreshold = 48;
uartConfig.rx.maxBufSize = 128; //max if DMA gets enabled, don't think it is, but just in case
uartConfig.tx.maxBufSize = 128;
uartConfig.idleTimeout = 6;
uartConfig.intEnable = TRUE;
uartConfig.callBackFunc = NULL;
HalUARTOpen (HAL_UART_PORT_1, &uartConfig);
Printf ("hello world \r\n");
but it doesn't work, what should I do ? what is the right procedure sequence?
Thank you