Commit c9627a1
committed
boards,sys/arduino: major clean up
- Rename all `arduino_pinmap.h` to `arduino_iomap.h`
- An empty `arduino_pinmap.h` that just includes `arduino_iomap.h`
is provided for backward compatibility
- Move all info from `arduino_board.h` into the new file as trivial
macros, so that they can also be used outside of sketches
- The new name reflects the fact not just pin mappings, but also
other I/O features such as PWMs are mapped
- Drop all `arduino_board.h`
- `arduino_board.h` and `arduino_iomap.h` now provide the exact
same information, just in a different format
- a generic `arduino_board.h` is provided instead that just
uses the info in `arduinio_iomap.h` and provides them in the
format the code in `sys/arduino` expects it
- Add fine grained features to indicate for mappings
- availability of mappings for analog pins, DAC pins, PWM pins,
UART devices, SPI/I2C buses to the corresponding RIOT
identification can now be expressed:
- `arduino_pins`: `ARDUINO_PIN_0` etc. are available
- `arduino_analog`: `ARDUINO_A0` etc. are available
- `arduino_pwm`: `ARDUINO_PIN_13_PWM_DEV` etc. are available
- `arduino_dac`: `ARDUINO_DAC0` etc. are available
- `arduino_uart`: `ARDUINO_UART_D0D1` or similar are available
- `arduino_spi`: `ARDUINO_SPI_ISP` or similar are available
- `arduino_i2c`: `ARDUINO_I2C_UNO` or similar are available
- mechanical/electrical compatibility with specific form factors
can now be expressed as features:
- `aruino_shield_nano`: Arduino NANO compatible headers
- `aruino_shield_uno`: Arduino UNO compatible headers
- `aruino_shield_mega`: Arduino MEGA compatible headers
- `aruino_shield_isp`: ISP header is available
This provides the groundwork to implement shield support as modules
that can rely on the I/O mappings, rather than having to provide a
configuration per board.1 parent 970734e commit c9627a1
File tree
141 files changed
+4312
-4829
lines changed- boards
- adafruit-grand-central-m4-express
- include
- common
- arduino-atmega
- include
- arduino-due
- include
- arduino-mkr
- include
- arduino-zero
- include
- esp8266
- nucleo144
- include
- nucleo32
- include
- nucleo64
- include
- silabs
- include
- sodaq
- esp32-heltec-lora32-v2
- include
- esp32-mh-et-live-minikit
- include
- esp32-olimex-evb
- include
- esp32-ttgo-t-beam
- include
- esp32-wemos-lolin-d32-pro
- include
- esp32-wroom-32
- include
- esp32-wrover-kit
- include
- esp32c3-devkit
- include
- esp32c3-wemos-mini
- include
- esp32s2-devkit
- include
- esp32s2-lilygo-ttgo-t8
- include
- esp32s3-devkit
- include
- esp32s3-pros3
- include
- esp8266-esp-12x/include
- esp8266-olimex-mod/include
- esp8266-sparkfun-thing/include
- feather-m0
- include
- hifive1b
- include
- lora-e5-dev
- include
- nucleo-wl55jc/include
- p-nucleo-wb55
- include
- remote-revb
- include
- saml21-xpro/include
- sodaq-autonomo/include
- sodaq-explorer/include
- sodaq-one/include
- sodaq-sara-aff/include
- sodaq-sara-sff/include
- stm32f4discovery
- include
- stm32l496g-disco
- include
- ublox-c030-u201/include
- waspmote-pro
- include
- doc/doxygen
- src
- drivers/include
- periph
- sys/arduino
- include
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
141 files changed
+4312
-4829
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
Lines changed: 0 additions & 73 deletions
This file was deleted.
Lines changed: 24 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
58 | 71 | | |
59 | 72 | | |
60 | 73 | | |
| |||
67 | 80 | | |
68 | 81 | | |
69 | 82 | | |
| 83 | + | |
| 84 | + | |
70 | 85 | | |
71 | 86 | | |
72 | 87 | | |
73 | 88 | | |
74 | 89 | | |
75 | 90 | | |
76 | | - | |
| 91 | + | |
77 | 92 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
| 14 | + | |
| 15 | + | |
This file was deleted.
0 commit comments