File tree Expand file tree Collapse file tree 2 files changed +0
-33
lines changed
atmel-samd/boards/arduino_zero Expand file tree Collapse file tree 2 files changed +0
-33
lines changed Original file line number Diff line number Diff line change 11
11
#ifndef CONF_BOARD_H
12
12
#define CONF_BOARD_H
13
13
14
- #define EDBG_CDC_SERCOM_MUX_SETTING USART_RX_3_TX_2_XCK_3
15
- #define EDBG_CDC_SERCOM_PINMUX_PAD0 PINMUX_UNUSED
16
- #define EDBG_CDC_SERCOM_PINMUX_PAD1 PINMUX_UNUSED
17
- #define EDBG_CDC_SERCOM_PINMUX_PAD2 PINMUX_PB22D_SERCOM5_PAD2
18
- #define EDBG_CDC_SERCOM_PINMUX_PAD3 PINMUX_PB23D_SERCOM5_PAD3
19
-
20
- #define EDBG_CDC_MODULE SERCOM5
21
-
22
14
#endif // CONF_BOARD_H
Original file line number Diff line number Diff line change 14
14
#include "asf/sam0/drivers/sercom/usart/usart.h"
15
15
#include "asf/sam0/drivers/port/port.h"
16
16
17
- extern struct usart_module usart_instance ;
18
-
19
- void configure_usart (void )
20
- {
21
- struct usart_config config_usart ;
22
-
23
- usart_get_config_defaults (& config_usart );
24
-
25
- config_usart .baudrate = 115200 ;
26
- config_usart .mux_setting = EDBG_CDC_SERCOM_MUX_SETTING ;
27
- config_usart .pinmux_pad0 = EDBG_CDC_SERCOM_PINMUX_PAD0 ;
28
- config_usart .pinmux_pad1 = EDBG_CDC_SERCOM_PINMUX_PAD1 ;
29
- config_usart .pinmux_pad2 = EDBG_CDC_SERCOM_PINMUX_PAD2 ;
30
- config_usart .pinmux_pad3 = EDBG_CDC_SERCOM_PINMUX_PAD3 ;
31
-
32
- while (usart_init (& usart_instance , EDBG_CDC_MODULE , & config_usart ) != STATUS_OK ) {
33
- }
34
- usart_enable (& usart_instance );
35
- }
36
-
37
17
void board_init (void )
38
18
{
39
19
/* This function is meant to contain board-specific initialization code
@@ -49,9 +29,4 @@ void board_init(void)
49
29
50
30
port_pin_set_config (MICROPY_HW_LED_RX , & pin_conf );
51
31
port_pin_set_output_level (MICROPY_HW_LED_RX , true);
52
-
53
- // TODO(tannewt): Switch to proper pyb based UARTs.
54
- #ifdef UART_REPL
55
- configure_usart ();
56
- #endif
57
32
}
You can’t perform that action at this time.
0 commit comments