Mira is supported to run on a set of modules. To simplify pin mappings, there are a set of header files containing CPU to module pin mappings.
The supported modules are:
|MWA-N2||nRF52840||mira_boards/mwa_n2.h||Has RF frontend|
|MWA-N2||nRF52840||mira_boards/mwa_n3.h||Has RF frontend|
Each pin contains a set of defines, for example:
Each define starts with the board name in uppercase, followed by
GPIO and the pad name on the module, in this example
There may be extra definitions depending on CPU or extra functionality
The nrf52 family and nrf5-sdk uses another pin number coding than Mira. To be able to use the definitions for either direct access to NRF registers or calls to nrf5-sdk functions, there is an extra definition for each pin on nrf52 cpus, suffixed with
nrf_gpio.h also needs to be included to use the
Also note that many GPIO pins on nrf52 chipsets doesn't support high frequency IO or high drive capabilities, due to interference with radio. Check the comments in the header files for more information about each pin.
Analog capable pins¶
For cpus using an extra numbering for analog pins, an extra definition