What is going on here?
I'm trying to get the central_uart example to run on the xiao ble sense nrf52840 board but uart_init() fails when trying to set the callback:
uart_callback_set(uart, uart_cb, NULL); // This fails since no set function
uart0: xiao_serial: uart@40002000 {
compatible = "nordic,nrf-uarte";
reg = < 0x40002000 0x1000 >;
interrupts = < 0x2 0x1 >;
status = "okay";
current-speed = < 0x1c200 >;
pinctrl-0 = < &uart0_default >;
pinctrl-1 = < &uart0_sleep >;
pinctrl-names = "default", "sleep";
};
uart0_default: uart0_default {
phandle = < 0x2 >;
group1 {
psels = < 0x6 >, < 0x20005 >;
};
group2 {
psels = < 0x10008 >, < 0x30007 >;
bias-pull-up;
};
};
uart0_sleep: uart0_sleep {
phandle = < 0x3 >;
group1 {
psels = < 0x6 >, < 0x10008 >, < 0x20005 >, < 0x30007 >;
low-power-enable;
};
};
The proj.conf file sets