1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

54 Commits

Author SHA1 Message Date
Mikolai Gütschow
bb97445b20
boards/*: include periph/gpio.h in board.h 2024-07-12 15:02:43 +02:00
MrKevinWeiss
e0fdc3c16c
*Kconfig*: Modify Kconfig to remove dep model 2024-03-27 10:28:12 +01:00
Marian Buschsieweke
043e8cc88e
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.
2023-06-26 17:24:07 +02:00
Benjamin Valentin
2c9a3857d9 boards: convert sam0 boards to new adc_conf_chan_t 2022-09-27 22:43:31 +02:00
Gunar Schorcht
a7dc4808b7 boards/sodaq-*: use UART_UNDEF to enable Serial over STDIO 2022-01-06 17:33:08 +01:00
Leandro Lanzieri
8e7691e34d boards/samd21-based: model Kconfig 2021-12-15 10:31:18 +01:00
Jose Alamos
6139e63316
boards/sodaq-autonomo: Add board specific Kconfig symbols 2020-07-17 08:44:50 +02:00
benpicco
30ebabb84e
Merge pull request #14007 from benpicco/cpu/sam0_common-pwm
cpu/sam0_common: move PWM to common code, add support for saml21, samd5x
2020-07-09 10:01:08 +02:00
Benjamin Valentin
d9aed03fa0 boards/sodaq-autonomo: update PWM config 2020-07-08 21:51:12 +02:00
Kees Bakker
446892a356 boards/sodaq*: correct the XTIMER defines
There is now a common set of defines for all Sodaq boards. This commit
removes old configurations.
2020-06-15 21:10:09 +02:00
Benjamin Valentin
f76f6f4935 boards/sodaq-autonomo: update PWM configuration 2020-04-26 22:56:26 +02:00
Gunar Schorcht
6628eca216 boards/sodaq-autonomo: fix broken links 2020-03-24 10:38:40 +01:00
8e2c6c3cce
boards/sodaq-*: update doc about flash and stdio 2020-03-18 10:53:17 +01:00
Dylan Laduranty
88bb019438 boards/sam0: update to use generic uart_hw_fc module 2020-03-10 14:22:34 +01:00
Koos
ed2ea24405 boards/sodaq-autonomo: Updated broken image link 2020-03-04 09:54:36 +01:00
Benjamin Valentin
c4e0ed4b79 boards: use explicit GCLK_SRC defines 2020-02-04 21:17:00 +01:00
Benjamin Valentin
a51d167a43 cpu/sam0: use GCLK ID instead of bitmask
To simplify board definitions and for unification between samd2x and
newer models, don't use the GCLK bitmask in board definitions.
Instead use the GCLK index and generate the bitmask when needed.
2020-02-04 21:06:21 +01:00
dylad
fc9549b069 boards/sam0: update sam0-based board to use hw fc 2019-12-20 21:26:56 +01:00
e0f288421d
boards/sodaq-autonomo: add mapping for Arduino PWM pins 2019-11-15 17:51:45 +01:00
536809cdca
boards/sodaq-*: use common code 2019-10-21 08:33:11 +02:00
Kees Bakker
eb0595e4be boards/sodaq-autonomo: add arduino config 2019-10-09 20:14:40 +02:00
Kees Bakker
9974ec2231 boards/sodaq-autonomo: add ADC configuration 2019-10-09 20:14:40 +02:00
Gaëtan Harter
636285ebe4
boards: move CPU/CPU_MODEL definition to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-08-20 16:11:50 +02:00
Benjamin Valentin
8af04cd939 boards: make use of ARRAY_SIZE macro 2019-08-06 19:43:54 +02:00
a68f78bb10
boards/*: remove unused FEATURES_MCU_GROUP variable 2019-06-14 11:32:15 +02:00
Kees Bakker
37316fbc75 sodaq-autonomo: add usbdev feature 2019-06-05 22:58:27 +02:00
Gaëtan Harter
675bd5eec0
board: remove exporting PORT_LINUX|PORT_DARWIN
PORT_LINUX and PORT_DARWIN are evaluated by
`makefiles/tools/serial.inc.mk` and some boards Makefile.include.
Their value does not need to be exported.

This also globally removes the line saying that the exports are needed
for flash rule.
2019-06-03 16:21:28 +02:00
Benjamin Valentin
849dd4cdce sam0_common: make Timer implementation common across all sam0 MCUs
The currently supported SAM0 MCUs (samd21, saml21, saml1x) share the same
Timer peripheral, yet each of them carries it's own copy of the Timer
driver.

This introduces a new timer driver that is common for all sam0 MCUs and
uses structs for configuration instead of defines.
2019-05-21 11:47:59 +02:00
Kees Bakker
361ba8d1a0 boards/sodaq-autonomo: switch to flashing with bossac 2019-02-06 19:44:26 +01:00
d95e19af15 boards*: remove periph_gpio/gpio_irq provided feature
It is now provided at cpu level
2018-12-17 20:54:09 +01:00
cladmi
b450141d4d
boards: unconditionally include CPU/Makefile.features
The file always exist so no need to do '-include'.

Replaced using:

    sed -i 's|-\(include $(RIOTCPU)/.*/Makefile.features\)|\1|' \
        $(git grep -l  '$(RIOTCPU)/.*/Makefile.features' boards)
2018-10-11 17:13:40 +02:00
Joakim Nohlgård
8996cbe313 make: Introduce new feature flag periph_gpio_irq 2018-08-29 08:53:20 +02:00
Kevin Weiss
8468fe1c94
Merge pull request #8516 from jia200x/wiki_dox_convertion
doc: move wiki to Doxygen documentation (second attempt)
2018-08-07 13:27:04 +02:00
Jose Alamos
7b28fbf110 boards: fix Doxygen group directives 2018-08-01 15:24:55 +02:00
Jose Alamos
a1e17ab5af doc: add wiki documentation to Doxygen files 2018-08-01 15:24:54 +02:00
smlng
75d7bcb26a boards/sodaq-autonomo: fix attr order in i2c_config 2018-07-25 15:17:43 +02:00
dylad
93558125b5 sam0/i2c: update sam0 based periph_conf
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2018-07-25 12:01:34 +02:00
Joakim Nohlgård
f4e9cad85a boards: Separate boards from debug adapter configuration 2017-11-17 10:03:05 +01:00
ae51dc55d0 boards: adapt to reorganized CPU Makefile.features 2017-11-02 12:59:46 +01:00
Kees Bakker
a84bacc662 boards/sodaq-autonomo: correct TX pin of uart2 2017-10-12 21:43:19 +02:00
Dan Evans
531e6f5008 sam0:usart - wake from sleep on receive line 2017-09-25 12:47:31 -06:00
02e055fc81 make: include cpu Makefile.features from board Makefile.features 2017-09-14 13:15:52 +02:00
dylad
c81ae98068 boards: update periph_conf of sam0 based board
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2017-08-29 21:26:42 +02:00
494064b4ba board: sodaq-autonomo: make use of shared makefiles/boards/sam0.inc.mk 2017-05-19 00:50:41 +02:00
882bcff048 boards: replace @brief with @name when necessary 2017-04-13 12:10:30 +02:00
Joakim Nohlgård
339a4da9dc Makefiles: move to new directory /makefiles 2017-04-04 15:11:54 +02:00
Hauke Petersen
ea07a6817c cpu/sam0+boards: adapted to new SPI API
- adapted the SPI driver
- merged SPI driver for samr21 and saml21
- adapted all boards using the CPU
2017-01-25 16:46:45 +01:00
Oleg Hahm
7ee7801c10 *: remove trailing underscores from header guards 2017-01-19 18:30:53 +01:00
Hauke Petersen
f6cd39348a boards: remove local Makefile.dep includes
No need for these, as $(RIOTBOARD)/$(BOARD)/Makefile.dep is
globally included from $(RIOBASE)/Makefile.dep.
2017-01-17 14:15:43 +01:00
Hauke Petersen
bfb52afde9 cpu/sam21: unified structure for sam[drl]21 CPUs 2016-12-15 11:39:19 +01:00