58 lines
4.0 KiB
C
58 lines
4.0 KiB
C
#include "shared-bindings/board/__init__.h"
|
|
|
|
STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
|
|
CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS
|
|
|
|
{ MP_ROM_QSTR(MP_QSTR_32KHZ_XTAL1 ), MP_ROM_PTR(&pin_P0_00) },
|
|
{ MP_ROM_QSTR(MP_QSTR_32KHZ_XTAL2 ), MP_ROM_PTR(&pin_P0_01) },
|
|
{ MP_ROM_QSTR(MP_QSTR_BATTERY ), MP_ROM_PTR(&pin_P0_02) },
|
|
{ MP_ROM_QSTR(MP_QSTR_BOARD_ID ), MP_ROM_PTR(&pin_P0_03) },
|
|
{ MP_ROM_QSTR(MP_QSTR_INT_LIGHT_TOF ), MP_ROM_PTR(&pin_P0_04) },
|
|
{ MP_ROM_QSTR(MP_QSTR_LED_RED ), MP_ROM_PTR(&pin_P0_05) },
|
|
{ MP_ROM_QSTR(MP_QSTR_I2S_SCK ), MP_ROM_PTR(&pin_P0_06) },
|
|
{ MP_ROM_QSTR(MP_QSTR_LORA_SCLK ), MP_ROM_PTR(&pin_P0_07) },
|
|
{ MP_ROM_QSTR(MP_QSTR_I2S_WS ), MP_ROM_PTR(&pin_P0_08) },
|
|
{ MP_ROM_QSTR(MP_QSTR_NFC1 ), MP_ROM_PTR(&pin_P0_09) },
|
|
{ MP_ROM_QSTR(MP_QSTR_NFC2 ), MP_ROM_PTR(&pin_P0_10) },
|
|
{ MP_ROM_QSTR(MP_QSTR_LORA_MOSI ), MP_ROM_PTR(&pin_P0_11) },
|
|
{ MP_ROM_QSTR(MP_QSTR_LORA_MISO ), MP_ROM_PTR(&pin_P0_12) },
|
|
{ MP_ROM_QSTR(MP_QSTR_DEBUG_TX ), MP_ROM_PTR(&pin_P0_13) },
|
|
{ MP_ROM_QSTR(MP_QSTR_CELL_RTS ), MP_ROM_PTR(&pin_P0_14) },
|
|
{ MP_ROM_QSTR(MP_QSTR_CELL_DCD ), MP_ROM_PTR(&pin_P0_15) },
|
|
{ MP_ROM_QSTR(MP_QSTR_DEBUG_RX ), MP_ROM_PTR(&pin_P0_16) },
|
|
{ MP_ROM_QSTR(MP_QSTR_QSPI_CSN ), MP_ROM_PTR(&pin_P0_17) },
|
|
{ MP_ROM_QSTR(MP_QSTR_BT840_RESETN ), MP_ROM_PTR(&pin_P0_18) },
|
|
{ MP_ROM_QSTR(MP_QSTR_QSPI_CLK ), MP_ROM_PTR(&pin_P0_19) },
|
|
{ MP_ROM_QSTR(MP_QSTR_QSPI_IO0 ), MP_ROM_PTR(&pin_P0_20) },
|
|
{ MP_ROM_QSTR(MP_QSTR_QSPI_IO1 ), MP_ROM_PTR(&pin_P0_21) },
|
|
{ MP_ROM_QSTR(MP_QSTR_QSPI_IO2 ), MP_ROM_PTR(&pin_P0_22) },
|
|
{ MP_ROM_QSTR(MP_QSTR_QSPI_IO3 ), MP_ROM_PTR(&pin_P0_23) },
|
|
{ MP_ROM_QSTR(MP_QSTR_CELL_HW_SHUTDOWN ), MP_ROM_PTR(&pin_P0_24) },
|
|
{ MP_ROM_QSTR(MP_QSTR_I2S_SD ), MP_ROM_PTR(&pin_P0_25) },
|
|
{ MP_ROM_QSTR(MP_QSTR_SDA ), MP_ROM_PTR(&pin_P0_26) },
|
|
{ MP_ROM_QSTR(MP_QSTR_SCL ), MP_ROM_PTR(&pin_P0_27) },
|
|
{ MP_ROM_QSTR(MP_QSTR_CELL_POWER_ENABLE ), MP_ROM_PTR(&pin_P0_28) },
|
|
{ MP_ROM_QSTR(MP_QSTR_PUSH_BUTTON ), MP_ROM_PTR(&pin_P0_29) },
|
|
{ MP_ROM_QSTR(MP_QSTR_CELL_ON_OFF ), MP_ROM_PTR(&pin_P0_30) },
|
|
{ MP_ROM_QSTR(MP_QSTR_SENSOR_POWER_ENABLE ), MP_ROM_PTR(&pin_P0_31) },
|
|
{ MP_ROM_QSTR(MP_QSTR_BT840_SWO ), MP_ROM_PTR(&pin_P1_00) },
|
|
{ MP_ROM_QSTR(MP_QSTR_CELL_RX ), MP_ROM_PTR(&pin_P1_01) },
|
|
{ MP_ROM_QSTR(MP_QSTR_CELL_TX ), MP_ROM_PTR(&pin_P1_02) },
|
|
{ MP_ROM_QSTR(MP_QSTR_CELL_DSR ), MP_ROM_PTR(&pin_P1_03) },
|
|
{ MP_ROM_QSTR(MP_QSTR_CELL_DTR ), MP_ROM_PTR(&pin_P1_04) },
|
|
{ MP_ROM_QSTR(MP_QSTR_INT_ACCEL ), MP_ROM_PTR(&pin_P1_05) },
|
|
{ MP_ROM_QSTR(MP_QSTR_BOARD_ID_DISABLE ), MP_ROM_PTR(&pin_P1_06) },
|
|
{ MP_ROM_QSTR(MP_QSTR_LORA_DIO0 ), MP_ROM_PTR(&pin_P1_07) },
|
|
{ MP_ROM_QSTR(MP_QSTR_CELL_CTS ), MP_ROM_PTR(&pin_P1_08) },
|
|
{ MP_ROM_QSTR(MP_QSTR_LORA_SSN ), MP_ROM_PTR(&pin_P1_09) },
|
|
{ MP_ROM_QSTR(MP_QSTR_LORA_RESETN ), MP_ROM_PTR(&pin_P1_10) },
|
|
{ MP_ROM_QSTR(MP_QSTR_BATTERY_MONITOR_ENABLE ), MP_ROM_PTR(&pin_P1_11) },
|
|
{ MP_ROM_QSTR(MP_QSTR_LORA_DIO1 ), MP_ROM_PTR(&pin_P1_12) },
|
|
{ MP_ROM_QSTR(MP_QSTR_LORA_DIO2 ), MP_ROM_PTR(&pin_P1_13) },
|
|
{ MP_ROM_QSTR(MP_QSTR_LORA_DIO3 ), MP_ROM_PTR(&pin_P1_14) },
|
|
{ MP_ROM_QSTR(MP_QSTR_CELL_PWRMON ), MP_ROM_PTR(&pin_P1_15) },
|
|
{ MP_ROM_QSTR(MP_QSTR_LORA_DIO4 ), MP_ROM_PTR(&pin_P1_15) },
|
|
};
|
|
|
|
MP_DEFINE_CONST_DICT(board_module_globals, board_module_globals_table);
|