In the function declaration below the second argument is a const pointer to const data.
ti_rc_t ti_uart_write_buffer(const ti_uart_t uart, const uint8_t *const data, uint32_t len);
Below is example code calling the function. Why is there a (uint8_t *)
before BANNER_STR. Is this the usual syntax for passing a const pointer to a const data to a function? Are there other valid syntax?
#define BANNER_STR ("Hello, world!\n\n")
ti_uart_write_buffer(TI_UART_0, (uint8_t *)BANNER_STR, sizeof(BANNER_STR));
Thanks