diff --git a/atmel-samd/boards/arduino_zero/init.c b/atmel-samd/boards/arduino_zero/init.c index 5c93ab6f1d..6ec302e6f7 100644 --- a/atmel-samd/boards/arduino_zero/init.c +++ b/atmel-samd/boards/arduino_zero/init.c @@ -18,20 +18,20 @@ extern struct usart_module usart_instance; void configure_usart(void) { - struct usart_config config_usart; + struct usart_config config_usart; - usart_get_config_defaults(&config_usart); + usart_get_config_defaults(&config_usart); - config_usart.baudrate = 115200; - config_usart.mux_setting = EDBG_CDC_SERCOM_MUX_SETTING; - config_usart.pinmux_pad0 = EDBG_CDC_SERCOM_PINMUX_PAD0; - config_usart.pinmux_pad1 = EDBG_CDC_SERCOM_PINMUX_PAD1; - config_usart.pinmux_pad2 = EDBG_CDC_SERCOM_PINMUX_PAD2; - config_usart.pinmux_pad3 = EDBG_CDC_SERCOM_PINMUX_PAD3; + config_usart.baudrate = 115200; + config_usart.mux_setting = EDBG_CDC_SERCOM_MUX_SETTING; + config_usart.pinmux_pad0 = EDBG_CDC_SERCOM_PINMUX_PAD0; + config_usart.pinmux_pad1 = EDBG_CDC_SERCOM_PINMUX_PAD1; + config_usart.pinmux_pad2 = EDBG_CDC_SERCOM_PINMUX_PAD2; + config_usart.pinmux_pad3 = EDBG_CDC_SERCOM_PINMUX_PAD3; - while (usart_init(&usart_instance, EDBG_CDC_MODULE, &config_usart) != STATUS_OK) { - } - usart_enable(&usart_instance); + while (usart_init(&usart_instance, EDBG_CDC_MODULE, &config_usart) != STATUS_OK) { + } + usart_enable(&usart_instance); } void board_init(void) diff --git a/atmel-samd/boards/arduino_zero/mpconfigboard.h b/atmel-samd/boards/arduino_zero/mpconfigboard.h index 233573ad0d..16a929ddd0 100644 --- a/atmel-samd/boards/arduino_zero/mpconfigboard.h +++ b/atmel-samd/boards/arduino_zero/mpconfigboard.h @@ -3,12 +3,10 @@ #define MICROPY_HW_BOARD_NAME "Arduino Zero" #define MICROPY_HW_MCU_NAME "samd21g18" -#define MICROPY_HW_LED_MSC PIN_PA17 // red +// #define MICROPY_HW_LED_MSC PIN_PA17 // red #define MICROPY_HW_LED_TX PIN_PA27 #define MICROPY_HW_LED_RX PIN_PB03 -#define MICROPY_HW_NEOPIXEL &pin_PB22 - #define AUTORESET_DELAY_MS 500 #include "internal_flash.h"