In the demo project of the lightsensor, there is a configuration struct code for the uart. It’s an editted version of the one which is automatically configurated in the pheripheral.c file. In the initialisation of the uart, the uart configuration setting of the pheripheral.c is used and not the one in the main. What is the one in the main code used for?
const cy_stc_scb_uart_config_t uartConfig =
Cy_SCB_UART_Init( UART_HW, &UART_config, &uartContext);