Skip to content

Commit 533a5bc

Browse files
committed
fixed SPI on M4
1 parent 5cd10b3 commit 533a5bc

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ports/atmel-samd/boards/robohatmm1_m4/mpconfigboard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#define DEFAULT_I2C_BUS_SCL (&pin_PA23)
3333
#define DEFAULT_I2C_BUS_SDA (&pin_PA22)
3434

35-
#define DEFAULT_SPI_BUS_SCK (&pin_PB10)
35+
#define DEFAULT_SPI_BUS_SCK (&pin_PB09)
3636
#define DEFAULT_SPI_BUS_MOSI (&pin_PB08)
3737
#define DEFAULT_SPI_BUS_MISO (&pin_PB11)
3838

ports/atmel-samd/boards/robohatmm1_m4/pins.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
7171

7272
// SPI on SERCOM4
7373
{ MP_ROM_QSTR(MP_QSTR_MOSI), MP_ROM_PTR(&pin_PB08) },
74-
{ MP_ROM_QSTR(MP_QSTR_SS), MP_ROM_PTR(&pin_PB09) },
75-
{ MP_ROM_QSTR(MP_QSTR_SCK), MP_ROM_PTR(&pin_PB10) },
74+
{ MP_ROM_QSTR(MP_QSTR_SCK), MP_ROM_PTR(&pin_PB09) },
75+
{ MP_ROM_QSTR(MP_QSTR_SS), MP_ROM_PTR(&pin_PB10) },
7676
{ MP_ROM_QSTR(MP_QSTR_MISO), MP_ROM_PTR(&pin_PB11) },
7777

7878
// GPS on SERCOM5

0 commit comments

Comments
 (0)