File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
hw/bsp/arduino_mkr1000/src Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 19
19
#include <assert.h>
20
20
#include <stddef.h>
21
21
#include <inttypes.h>
22
+ #include "syscfg/syscfg.h"
22
23
#include "hal/hal_bsp.h"
23
24
#include "bsp/bsp.h"
24
25
#include <os/os_cputime.h>
25
- #include "syscfg/syscfg.h"
26
26
#include "sysinit/sysinit.h"
27
27
#include "hal/hal_flash.h"
28
28
#include "mcu/samd21.h"
@@ -117,6 +117,8 @@ static struct samd21_spi_config ext_spi_cfg = {
117
117
};
118
118
#endif
119
119
120
+ #if MYNEWT_VAL (UART_0 )
121
+ #if !MYNEWT_VAL (BOOT_LOADER ) || MYNEWT_VAL (BOOT_SERIAL )
120
122
static const struct samd21_uart_config uart_cfgs [] = {
121
123
[0 ] = {
122
124
.suc_sercom = SERCOM5 ,
@@ -130,6 +132,8 @@ static const struct samd21_uart_config uart_cfgs[] = {
130
132
.suc_pad3 = PINMUX_PB23D_SERCOM5_PAD3
131
133
}
132
134
};
135
+ #endif
136
+ #endif
133
137
134
138
/*
135
139
* What memory to include in coredump.
@@ -184,8 +188,9 @@ hal_bsp_init(void)
184
188
#if MYNEWT_VAL (TIMER_0 ) || MYNEWT_VAL (TIMER_1 ) || MYNEWT_VAL (TIMER_2 )
185
189
struct samd21_timer_cfg tmr_cfg ;
186
190
#endif
191
+ (void )rc ;
187
192
188
- #if MYNEWT_VAL (UART_0 ) || MYNEWT_VAL ( BOOT_SERIAL )
193
+ #if MYNEWT_VAL (UART_0 )
189
194
rc = os_dev_create ((struct os_dev * ) & hal_uart0 , "uart0" ,
190
195
OS_DEV_INIT_PRIMARY , 0 , uart_hal_init , (void * )& uart_cfgs [0 ]);
191
196
SYSINIT_PANIC_ASSERT (rc == 0 );
You can’t perform that action at this time.
0 commit comments