diff options
| author | Hierophect <hierophect@gmail.com> | 2019-11-04 14:31:57 -0500 |
|---|---|---|
| committer | Hierophect <hierophect@gmail.com> | 2019-11-04 14:31:57 -0500 |
| commit | 3526fed611cc64ce7faddfc85ebadea540d5de05 (patch) | |
| tree | 0cc08bfd54931a83e9ba06cc365b13e43bd2cc07 | |
| parent | 3683ee3ffa5b6da2574e1618b539b68cbc7e8db5 (diff) | |
add board global
| -rw-r--r-- | ports/stm32f4/boards/feather_stm32f405_express/pins.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/stm32f4/boards/feather_stm32f405_express/pins.c b/ports/stm32f4/boards/feather_stm32f405_express/pins.c index 518ab6d2a..4aa1f362a 100644 --- a/ports/stm32f4/boards/feather_stm32f405_express/pins.c +++ b/ports/stm32f4/boards/feather_stm32f405_express/pins.c @@ -25,5 +25,9 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = { { MP_ROM_QSTR(MP_QSTR_TX), MP_ROM_PTR(&pin_PB10) }, { MP_ROM_QSTR(MP_QSTR_RX), MP_ROM_PTR(&pin_PB11) }, + + { MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) }, + { MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) }, + { MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&board_uart_obj) }, }; MP_DEFINE_CONST_DICT(board_module_globals, board_module_globals_table); |
