Commit 63d4fd7
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 63d4fd7
File tree
195 files changed
+4485
-4889
lines changed- boards
- adafruit-grand-central-m4-express
- include
- arduino-duemilanove
- arduino-leonardo
- arduino-mega2560
- arduino-mkr1000/include
- arduino-mkrfox1200/include
- arduino-mkrwan1300/include
- arduino-nano
- arduino-uno
- 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
- kconfig
- drivers/include
- periph
- kconfigs
- sys/arduino
- include
- tests/build_system/external_board_dirs/esp-ci-boards
- esp32-ci
- esp32c3-ci
- esp32s2-ci
- esp32s3-ci
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
195 files changed
+4485
-4889
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
0 commit comments