drivers: serial: nrf: add default value for frame timeout cfg
This is needed to avoid warnings about uninitialized structure member, which was added in nrfx 3.6. Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
This commit is contained in:
parent
443276eccb
commit
43128052e7
2 changed files with 8 additions and 0 deletions
|
@ -386,6 +386,10 @@ static int uarte_nrfx_configure(const struct device *dev,
|
|||
struct uarte_nrfx_data *data = dev->data;
|
||||
nrf_uarte_config_t uarte_cfg;
|
||||
|
||||
#if NRF_UARTE_HAS_FRAME_TIMEOUT
|
||||
uarte_cfg.frame_timeout = NRF_UARTE_FRAME_TIMEOUT_DIS;
|
||||
#endif
|
||||
|
||||
#if defined(UARTE_CONFIG_STOP_Msk)
|
||||
switch (cfg->stop_bits) {
|
||||
case UART_CFG_STOP_BITS_1:
|
||||
|
|
|
@ -643,6 +643,10 @@ static int uarte_nrfx_configure(const struct device *dev,
|
|||
struct uarte_nrfx_data *data = dev->data;
|
||||
nrf_uarte_config_t uarte_cfg;
|
||||
|
||||
#if NRF_UARTE_HAS_FRAME_TIMEOUT
|
||||
uarte_cfg.frame_timeout = NRF_UARTE_FRAME_TIMEOUT_DIS;
|
||||
#endif
|
||||
|
||||
#if defined(UARTE_CONFIG_STOP_Msk)
|
||||
switch (cfg->stop_bits) {
|
||||
case UART_CFG_STOP_BITS_1:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue