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

1048 Commits

Author SHA1 Message Date
Hauke Petersen
44625ecc1b boards/nrf51-based: split shared timer/rtt config 2019-06-05 09:53:15 +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
13c89b5feb
boards/kw41z: move boards common kw41z to specific boards
usb-kw41z and frdm-kw41z are affected by this change.
2019-06-03 13:06:01 +02:00
414c304f2b
boards/*: remove useless export when setting DEBUG_ADAPTER 2019-06-03 10:32:08 +02:00
Juan I Carrano
245f04a33d
Merge pull request #11545 from cladmi/pr/kinetis/flash_no_arm_toolchain
cpu/kinetis: allow flashing without toolchain
2019-05-29 13:51:30 +02:00
Kevin "Bear Puncher" Weiss
9ff8c704ea
Merge pull request #11570 from aabadie/pr/boards/stm32_l0_i2c
boards/b-l072z-lrwan1: use STM32 common i2C configuration
2019-05-28 19:17:45 +02:00
Gaëtan Harter
dedbe9c737
Merge pull request #11554 from cladmi/pr/make/exports/remove_flash_debug_reset
make: remove exports for flash debug reset
2019-05-28 18:15:03 +02:00
Gaëtan Harter
e40d569204
kinetis: save 'wdog-disable.bin' binary in the repository
Keep the compiled '.bin' file to remove the need to compile it when
flashing. This remove the need to have the toolchain when flashing so
allow compiling and flashing with `BUILD_IN_DOCKER=1` without a local
toolchain.

Even if it ends up storing a binary, the file is only 34 bytes.
2019-05-28 14:37:11 +02:00
Gaëtan Harter
ff00096a39
boards/tools: remove exporting MSPDEBUGFLAGS
MSPDEBUGFLAGS is evaluated only in the same file.
Its value does not need to be exported.

This will also prevent evaluating 'PORT' for MSPDEBUGFLAGS when not needed.
2019-05-28 09:58:40 +02:00
Gaëtan Harter
7306dbd382
boards/tools: remove exporting DEBUG*
DEBUGGER/DEBUGGER_FLAGS/DEBUGSERVER/DEBUGSERVER_FLAGS are evaluated by the
main Makefile.include or by file included by it.
Their value does not need to be exported.

Testing
-------

`git diff --word-diff` only reports `export` being removed.

`git show --stat` reports `55 insertions(+), 55 deletions(-)`
Which is the same amount as lines that where matching
`export[[:blank::]]\+VARIABLE`.
2019-05-28 09:58:35 +02:00
Gaëtan Harter
b88d1887c8
boards/tools: remove exporting RESET/RESET_FLAGS
RESET and RESET_FLAGS are evaluated by the main Makefile.include or by file
included by it. Their value does not need to be exported.

This will also prevent evaluating 'PORT' for RESET_FLAGS when not needed.

Testing
-------

`git diff --word-diff` only reports `export` being removed.

`git show --stat` reports `24 insertions(+), 24 deletions(-)`
Which is the same amount as lines that where matching
`export[[:blank::]]\+VARIABLE`.
2019-05-28 09:56:14 +02:00
Gaëtan Harter
ac113ca2f8
boards/tools: remove exporting FLASHER/FFLAGS
FLASHER and FFLAGS are evaluated by the main Makefile.include or by file
included by it. Their value does not need to be exported.

This will also prevent evaluating 'PORT' for FFLAGS when not needed.

Testing
-------

`git diff --word-diff` only reports `export` being removed.

`git show --stat` reports `84 insertions(+), 84 deletions(-)`
Which is the same amount as lines that where matching
`export[[:blank::]]\+VARIABLE`.
2019-05-28 09:56:00 +02:00
francisco
963bbe75ba kinetis/check-fcfield: merge hex and elf script 2019-05-27 17:38:46 +02:00
Thomas Perrot
b63121c588
board: add support for arduino-leonardo 2019-05-24 15:12:47 +02:00
Thomas Perrot
44803ea4fd
cpu/atmega32u4: add support for ATmega32U4 2019-05-24 15:12:47 +02:00
6cad403dfa
boards/stm32: adapt common i2c config to L0 boards 2019-05-24 11:11:24 +02:00
Kevin "Bear Puncher" Weiss
3f4c92d8bf
Merge pull request #11569 from cladmi/pr/make/cc2538/flashfile
boards/cc2538: use FLASHFILE for boards using cc2538-bsl.py
2019-05-23 16:33:49 +02:00
Gaëtan Harter
9e9f8637e9
boards/cc2538: use FLASHFILE for boards using cc2538-bsl.py
Update to use FLASHFILE as file to be flashed on the board.
2019-05-23 15:02:15 +02:00
d6689103ef
boards/stm32: add shared STM32L0 clock configuration 2019-05-23 14:03:17 +02:00
f559ccb0c6
Merge pull request #11260 from maribu/nucleo-f767zi
boards/nucleof7*: SPI and refactoring
2019-05-21 14:01:41 +02:00
Dylan Laduranty
85d37bb94f
Merge pull request #11336 from benpicco/sam0-timer
sam0_common: make Timer implementation common across all sam0 MCUs
2019-05-21 12:13:39 +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
871dda1216
boards/stm32: introduce common default rtt config 2019-05-21 08:38:43 +02:00
22fe1925e0
boards/particle-mesh: common support for particle mesh boards 2019-05-17 22:42:08 +02:00
Leandro Lanzieri
44d981947d
Merge pull request #11293 from gschorcht/cpu/esp32/periph/conf/spi
boards/esp32: changes the approach for configurations of SPI interfaces in board definitions
2019-05-14 12:07:19 +02:00
Francisco
6b8bbd7eba
Merge pull request #11044 from aabadie/pr/boards/kw41z-common
boards/kw41z*: add common configuration and use it with existing kw41z boards
2019-05-14 01:53:31 -07:00
Leandro Lanzieri
ab6d0fe08c
Merge pull request #11292 from gschorcht/cpu/esp32/periph/conf/pwm
boards/esp32: changes the approach for configurations of PWM channels in board definitions
2019-05-13 16:11:05 +02:00
Kevin "Bear Puncher" Weiss
6afb0603aa
Merge pull request #11291 from gschorcht/cpu/esp32/periph/conf/i2c
boards/esp32: changes the approach for configurations of I2C in board definitions
2019-05-09 08:26:01 -07:00
Kevin "Bear Puncher" Weiss
795ad18f2e
Merge pull request #11294 from gschorcht/cpu/esp32/periph/conf/uart
boards/esp32: changes the approach for configurations of UART interfaces in board definitions
2019-05-09 08:25:40 -07:00
cb4cdee0ef
boards/common: introduce common code for kw41z boards 2019-05-07 21:57:04 +02:00
Gunar Schorcht
008f1c5d55 boards/esp32: UART configuration approach changed
UART devices are now configured using static array in header files instead of static variables in implementation to be able to define UART_NUMOF using the size of the array instead of a variable.
2019-05-06 13:34:59 +02:00
Gunar Schorcht
23cc987184 boards/esp32: SPI configuration approach changed
SPI devices are now configured using static array in header files instead of static variables in implementation to be able to define SPI_NUMOF using the size of the array instead of a variable.
2019-05-06 13:33:48 +02:00
Gunar Schorcht
bd354dd29f boards/esp32: PWM configuration approach changed
PWM channels are now configured using static array in header files instead of static variables in implementation.
2019-05-06 13:32:52 +02:00
Gunar Schorcht
6a3bc3e242 boards/esp32: I2C configuration approach changed
I2C devices are now configured using static array in header files instead of static variables in implementation to be able to define I2C_NUMOF using the size of the array instead of a variable.
2019-05-06 13:32:06 +02:00
Gunar Schorcht
7e8a1c1ea6 boards/esp32: DAC config approach changed
DAC pins are now configured using static arrays in header files instead of static variables in implementation to be able to define DAC_NUMOF using the size of these arrays instead of a variable.
2019-05-06 13:29:38 +02:00
Gunar Schorcht
3db78e0423 boards/esp32: ADC config approach changed
ADC pins are now configured using static arrays in header files instead of static variables in implementation to be able to define ADC_NUMOF using the size of these arrays instead of a variable.
2019-05-02 16:39:04 +02:00
Gunar Schorcht
a3c314f0cd boards/esp32*: print config for enabled modules 2019-05-01 09:40:17 +02:00
Marian Buschsieweke
ca5e196e78
cpu/atmega_common: Move stdio_init() to cpu_init()
Moving atmega_stdio_init() to cpu_init() just before periph_init() guarantees
that stdio is available to allow DEBUG() in periph_init(). This also helps to
unify the boot up process of ATmega boards and de-duplicates the stdio init from
board_init().
2019-04-10 10:18:43 +02:00
Gunar Schorcht
217ccbe1c4 cpu/esp32: add new uart_mode API function
The internal _uart_set_mode function is exposed if module periph_uart_modecfg is enabled.
2019-03-28 16:36:04 +01:00
emmanuelsearch
61c793aa4c cpu/cortexm_common: Add image_baseaddr support for Cortex-M23 2019-03-26 11:46:00 +01:00
emmanuelsearch
78cbf4fb57 saml1x: Add riotboot support 2019-03-26 11:46:00 +01:00
Marian Buschsieweke
17fd6941ce
boards/common/stm32: SPI divtable for 108MHz/54MHz 2019-03-25 15:51:30 +01:00
Marian Buschsieweke
7ab1ae1b76
boards/common/stm32: Clock for F7 216MHz/8MHz/LSE
Added file with clock settings for STM32-F7 CPUs with a core clock of 216MHz,
an external high speed clock of 8 MHz and external low speed clock (32.768kHz)
enabled.
2019-03-25 15:51:30 +01:00
Gaëtan Harter
2523c1b8ef
Merge pull request #11126 from bergzand/pr/nrf52/riotboot
nrf52: Add riotboot support
2019-03-20 19:58:41 +01:00
Gaëtan Harter
f9cee9e820
Merge pull request #11174 from fjmolinas/stm32lx_dual_bank
boards/common/stm32l0: use dual bank with openocd if available
2019-03-20 18:38:19 +01:00
Gaëtan Harter
9d5e06a512
boards/lpc2k_pgm: use FLASHFILE for boards using lpc2k_pgm
Update to use FLASHFILE as file to be flashed on the board.
2019-03-20 14:31:25 +01:00
francisco
026f7dc4a4 boards/stm32lx: use openocd dual bank if possible 2019-03-14 18:10:27 +01:00
Gaëtan Harter
702db3468d
msba2: compile 'lpc2k_pgm' when flashing
Add a rule to build `lpc2k_pgm` when flashing.
It is only compiled if it is using the one in `tools`.
If overwritten to `lpc2k_pgm` if it should be taken from the path,
it is not compiled.

The compilation is still done in `boards/common/msba2/tools` as it was
the case before and this commit does not address this.
2019-03-14 16:41:13 +01:00
005710effb
nrf52: include riotboot feature when possible
The riotboot feature is not compatible with the nordic_softdevice_ble
package at the moment
2019-03-14 12:03:39 +01:00
e3b10e3d7d
Merge pull request #10343 from MrKevinWeiss/pr/fixnucleol1flasher
boards/stm32l0: Fix openocd to prevent flash locking
2019-03-14 10:27:02 +01:00
Gilles DOFFE
f3130a3a81 boards/nucleo64: add motor driver
Add motor_driver driver configuration example.
The most simple motor driver type is used here (MOTOR_DRIVER_1_DIR) which
needs only one pin to work.
This example uses already configured PWM channels and 2 free GPIOS.

Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2019-03-11 01:44:22 +01:00
f390a8df2e
boards/nrf5x: use periph_temperature with saul 2019-03-08 21:14:22 +01:00
Hauke Petersen
7cb1049eef
Merge pull request #10268 from SemjonKerner/add_nrf154
cpu/nrf52/radio: initial support for nrf52's ieee802.15.4 radio
2019-03-04 16:18:43 +01:00
Semjon Kerner
84ebd83a62 boards/nrf52840dk: support ieee802.15.4 radio 2019-03-04 13:21:47 +01:00
7d31bb43f1
boards/stm32/f4: factorize common clock configuration (168/8)
A common configuration file is introduced for stm32f4 with core clock
at 168MHz with HSE at 8MHz, 2 configuration files are introduced to²:
distinguish between clock configuration with and without LSE.
2019-02-27 21:49:55 +01:00
Rotzbua
d606c11d11 tests/leds: initialize led0 by default
fix unexpected behavior:
reference #9949
reference #10294

fix redefinition for AUTO_INIT_LED0
2019-02-27 13:09:29 +01:00
7a5d2ad2fb
boards/nrf52: thingy52 and ruuvitag don't work with openocd 2019-02-26 11:15:36 +01:00
826df5648b
boards/nrf52: update nrf52 common documentation
Add common flashing notes + move the doc in a separate doc.txt file
2019-02-26 11:03:06 +01:00
3eb17f56fa
boards/nrf52xxxdk: add openocd as programmer
For the moment openocd doesn't work when softdevice blob module is loaded
2019-02-26 11:02:57 +01:00
Marian Buschsieweke
7bc9b4b707
boards/common/atmega: Refactoring periph_conf.h
- Moved code for periph_conf of all ATmega based boards to boards/common/atmega
- Added possibility to override config from individual board:
  - Named file `periph_conf_atmega_common.h` and let this be included from
    `board/$BOARD/include/periph_conf.h` to allow modifications
  - Guarded individual periph configs by `#ifndef $PERIPH_NUMOF` ... `#endif`
2019-02-25 18:48:09 +01:00
Francisco Acosta
7139393394 boards: include potential features from CPU for atmega boards
Features must be provided by the board if they're actually
available on board. Other features might be provided by the
CPU.

Some grouping is also removed as it is not necessary.
2019-02-05 17:12:04 +01:00
Francisco Acosta
1a98d64cd5 boards/arduino*: use common avrdude.inc.mk from atmega_common
Leverages common flasher (avrdude) and removes unnecessary exports.
Moreover, a reuse of serial.inc.mk is perfomed from the same
atmega_common/Makefile.include
2019-02-05 17:12:03 +01:00
1be60741e3
boards/nrf52xxxdk: refactor UART config 2019-01-25 15:51:50 +01:00
Martine Lenders
fbe43634d9
Merge pull request #10844 from maribu/ethernet_shield
boards/arduino*: Added/refactored params for W5100
2019-01-24 11:59:43 +01:00
Marian Buschsieweke
d2c8eab793
boards/arduino*: Added/refactored params for W5100
- ATmega based boards: Added parameter for W5100 to board_common.h
- Arduino Due based boards: Use board.h instead of providing w5100_params.h
2019-01-22 15:46:33 +01:00
7e3c382547
Merge pull request #10653 from dylad/pr/saml1x_support
cpu/saml1x: add support for SAML10 and SAML11 MCUs (Cortex-M23)
2019-01-22 08:53:06 +01:00
Sebastian Meiling
0edf76d362
Merge pull request #9984 from kaspar030/refactor_atmega_libc
cpu/atmega_common: refactor AVR libc code into module
2019-01-22 08:41:37 +01:00
Dylan Laduranty
99966b318a board/common/saml1x: add common configuration 2019-01-21 17:07:18 +01:00
7313525035 atmega_common: refactor avr-libc-extra into avr_libc_extra module 2019-01-21 14:37:08 +01:00
9daf3c74a9 boards/iotlab-m3: disable DMA with SPI 2019-01-15 19:49:32 +01:00
Gunar Schorcht
fa0b4b801f cpu/esp8266: doc fixes 2019-01-09 16:55:21 +01:00
0b6bccb543 boards/iotlab-m3: configure and use DMA
Used with UART and SPI peripheral
2019-01-08 09:32:18 +01:00
Kevin "Bear Puncher" Weiss
d9f26dbbe2
Merge pull request #10636 from aabadie/pr/cpu/nrf5x_gpio_common
cpu/nrf5x: move periph_gpio/periph_gpio_irq at an even more common level
2019-01-03 11:37:48 +01:00
24bc5ae254 boards/nucleo-f0xx: use common i2c configuration 2019-01-02 14:23:46 +01:00
541fc7f93f boards/stm32: add f2 common clock configuration 2019-01-02 14:23:46 +01:00
f8d8ddb1ef boards/stm32: adapt common i2c config to f7 and l4 2019-01-02 11:25:32 +01:00
08608c350c boards/stm32: add common I2C configuration
This configuration provides 1 I2C using I2C1 on PB8 and PB9, which is very common for STMs
2019-01-02 10:30:13 +01:00
11da5036fb boards/stm32: add new common clock configurations 2019-01-02 10:30:13 +01:00
4ae15d18b5 boards/stm32based: remove periph_gpio/irq from board level 2018-12-18 21:51:14 +01:00
839daf871a boards/nrf52: remove periph_gpio feature
It is now provided at cpu level in cpu/nrf5x_common
2018-12-18 21:33:27 +01:00
Francisco Acosta
3cf33f7b5c boards: add riotboot feature to tested boards
Currently only tested boards provide the feature riotboot.
Potentially all boards embeding a cortex-m0+/3/4/7 are
able to have riotboot as a feature, but other dependencies
need to be met, e.g. usage of cortexm.ld linker script,
double initialisation of cpu_init(), etc. See doc in
bootloaders/riotboot.
2018-12-18 19:31:35 +01:00
Peter Kietzmann
f1e80c4dd3
Merge pull request #10434 from aabadie/pr/sam0_gpio_features
cpu/sam0_common: provide periph_gpio/gpio_irq features at cpu level
2018-12-18 17:54:11 +01:00
Gaëtan Harter
321dc5292f
Merge pull request #10548 from jcarrano/flash-canned-recipe
Makefile.include: flash: do not peek into MAKECMDGOALS.
2018-12-18 14:09:55 +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
Martine Lenders
78308b93df
Merge pull request #10279 from aabadie/pr/boards/nrf52_common
boards/common/nrf52: introduce new and more generic common place
2018-12-17 12:29:57 +01:00
MrKevinWeiss
d7eb070eb4 cpu/stm32f1: Add remap support for stm32f1 cpus and boards
This commit fixes configuration problems when trying to use i2c pins that need to be remapped.
All B8 and B9 pins for STM32F1 need to be remapped, so a check is done if the remappable pins are selected.
2018-12-14 09:16:37 +01:00
5b17d52542
Merge pull request #10466 from maribu/stm32f103c_i2c
boards/common/stm32f103c8: Fixed I2C configuration
2018-12-13 11:25:22 +01:00
5429c71cd3 boards/nrf52xxdk: use available nrf52 common place 2018-12-13 10:15:42 +01:00
cd206a909c boards/common/nrf52: add common nrf52 place 2018-12-13 10:15:42 +01:00
Leandro Lanzieri
4ce63d00ea
Merge pull request #10280 from fedepell/stk3700_arduino
boards/common/silabs: add Arduino API support for SiLabs boards
2018-12-12 09:51:13 +01:00
Juan Carrano
c6b8cbea00 kinetis-based-boards: use FLASHDEPS instead of flash: xxxx.
With the canned recipe for flashing, flash dependencies should be
added to FLASHDEPS, instead of writing `flash: dependencies`. This
ensures that both flash and flash-only depend on the same prerequisites.
2018-12-06 15:36:53 +01:00
MrKevinWeiss
7c9ef1e9e0 boards/stm32l0: Fix openocd to prevent flash locking
This commit add the connect_assert_srst which requires the SRST to be asserted before trying to connect.
Certain firmwares will cause it to get to a state where flashing fails and the reset button must be pushed at the correct time to recover.
2018-11-30 10:07:18 +01:00
Kevin "Bear Puncher" Weiss
153759b926
Merge pull request #10498 from smlng/pr/adapt/7542
atmega: add periph_pwm (taken from #7542)
2018-11-29 15:54:51 +01:00
a7fa9e5580
Merge pull request #10478 from gebart/frdm/openocd-default-new
frdm: Use configuration for OpenOCD 0.10.0 or newer by default
2018-11-29 15:05:50 +01:00
Kevin "Bear Puncher" Weiss
46bdbb6535
Merge pull request #10484 from smlng/pr/atmega/timer
atmega: fix periph timer configuration
2018-11-29 14:28:23 +01:00
Joakim Nohlgård
26d782533c frdm: Use configuration for OpenOCD 0.10.0 or newer by default
Update your environment variables if you are running an older Debian or
Ubuntu release and use the distribution provided OpenOCD packages.
2018-11-29 14:23:49 +01:00
smlng
262a04c9cf atmega: fix periph timer configuration
- correct number of timers for atmega328p from 2 to 1
- correct number of timer channels for atmega328p from 3 to 2
- adapt atmega periph timer implementation accordingly
2018-11-29 09:30:44 +01:00
Victor Arino
8ff8aefb72 boards/arduino-atmega-common: support for PWM 2018-11-29 08:50:56 +01:00
Martine Lenders
4b06d64778
Merge pull request #10454 from jcarrano/msba2-fix-port
boards/msba2: Do not set PORT.
2018-11-28 16:43:23 +01:00
Juan Carrano
c4ccaecda5 boards/msba2: Do not set PORT.
Boards should not set PORT and should not have code conditional on
PORT as that causes PORT to be evaluated and the build to fail even
if this varible is not needed.

Exporting has the same effect.

This fixes the MSBA2 board by declaring PORT_LINUX and PORT_DARWIN
instead.
2018-11-28 15:46:53 +01:00
Juan I Carrano
bac432781c
Merge pull request #10471 from cladmi/pr/flash_sh/use_binfile
boards/flash.sh: rename HEXFILE to BINFILE
2018-11-27 17:56:27 +01:00
Gaëtan Harter
214f971174
boards/common/remote: fix mis-migrated path for flash/reset
The path to flash/reset/debug was not migrated correctly when moving to
`remote-common` (even before `common/remote`).
2018-11-26 17:01:02 +01:00
cladmi
52b0b183a3
boards/flash.sh: rename HEXFILE to BINFILE
Flasher are doing 'loadbin' so use BINFILE name.
2018-11-26 16:39:11 +01:00
Marian Buschsieweke
2b7a63b9b5
boards/common/stm32f103c8: Fixed I2C configuration
In commit e90f2b439e the I2C config has been
adapted to the new I2C API. However, the pins of I2C_DEV(0) have been changed
from PB6 and PB7 to PB8 and PB9. While PB8 and PB9 also can be used for I2C1
by remapping I2C1, this is not done. As a result, I2C1 was unusable. This
commit restores the default I2C1 pins for I2C_DEV(0), resulting in I2C_DEV(0)
becoming usable again.
2018-11-26 13:12:36 +01:00
b1de432cd2 boards/common/nrf51: add common clock configuration 2018-11-26 11:23:22 +01:00
Hauke Petersen
ac50b4a052
Merge pull request #10243 from aabadie/pr/board/common_nrf51
boards/common: add common place for nrf51 based boards
2018-11-26 10:07:31 +01:00
Schorcht
16f0bf4fdc cpu/esp32: fixes compile problems 2018-11-10 14:14:49 +01:00
Federico Pellegrin
994999132a boards/common/silabs: add Arduino API support for SiLabs boards 2018-11-08 17:03:19 +01:00
880b3319db
Merge pull request #10323 from maribu/stm32f103c8_rom_hack
boards: Enable STM32F103C8 ROM hack via env var
2018-11-06 14:41:06 +01:00
Marian Buschsieweke
82ea9a02de
boards: Enable STM32F103C8 flash hack via env var
The STM32F103C8 secretly comes with 128KiB flash instead of 64KiB. Still, only
64KiB of it are tested and guaranteed to work. However, most of the times the
whole 128KiB flash works just fine. In the BluePill documentation this fact is
already documented and by using

    $ make BOARD=bluepill CPU_MODEL=stm32f103cb

the whole 128 KiB can be used by RIOT. When using this hack routinely, it easier
to use environment variables instead. But allowing to overwrite CPU_MODEL via
environment variables seems to be a bad thing, as it is easy to forget to clear
that environment variable when changing the BOARD variable.

This commit introduces the new STM32F103C8_FLASH_HACK variable, which unlocks
the 128KiB FLASH when set to "1". The BluePill documentation has been updated
accordingly.
2018-11-05 14:19:21 +01:00
Francisco Acosta
956ae521dc boards: add atmega based boards clock scale defaults
The `atmega_set_prescaler` was using a "sensible" default
but it's better to define it at the board level to make
it clear.
2018-11-02 16:24:30 +01:00
Francisco Acosta
5823f69123 boards: add LED_PANIC to atmega based boards
This adds a LED_PANIC macro which defines which LED,
or combination of LEDs should notify a panic error.
This is currently used to signal BADISR_vect errors.
2018-11-02 16:23:48 +01:00
Jens Alfke
ce1fe776cf cpu/esp32: allow explicit ESP32 crystal freq configuration
Some ESP32 boards (like my SparkFun ESP32 Thing) have a main clock
crystal that runs at 26MHz, not 40MHz. RIOT appears to assume 40MHz.
The mismatch causes the UART to not sync properly, resulting in
garbage written to the terminal instead of log output.

I’ve added:

* A new board configuration constant ESP32_XTAL_FREQ that defaults
  to 40, but can be overridden by a board def or at build time to
  force a specific value (i.e. 26).
* Some code spliced into system_clk_init() to check this constant and
  call rtc_clk_init() to set the correct frequency.
* A copy of the rtf_clk_init() function from the ESP-IDF sources.

Fixes #10272
2018-10-30 16:42:07 -07:00
84cdab8c0b boards/common/nrf51: introduce common location 2018-10-27 09:47:42 +02:00
2ebd88d0c4 boards/*: fix typo Feie => Freie 2018-10-26 10:26:59 +02:00
Kevin "Bear Puncher" Weiss
7187bbf8cf
Merge pull request #9426 from gschorcht/esp32
ESP32 port
2018-10-16 15:24:25 +02: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
Schorcht
8e0d69c807 cpu/esp32: define ARDUINO_PIN_* 2018-10-11 09:33:43 +02:00
Schorcht
6ed5e0565b boards: add common esp32 based sources 2018-10-08 12:20:49 +02:00
Schorcht
bc1906ef42 boards: add common esp8266 based sources 2018-09-05 02:39:50 +02:00
Peter Kietzmann
daf2532c7d
Merge pull request #9760 from MrKevinWeiss/pr/bluepill/openocdfix
boards/stm32f103c8: fix openocd config
2018-08-30 09:24:58 +02:00
Joakim Nohlgård
8996cbe313 make: Introduce new feature flag periph_gpio_irq 2018-08-29 08:53:20 +02:00
Hauke Petersen
c2184f3454 boards/cpu/drivers/sys: use generic stdio_ if 2018-08-22 10:54:25 +02:00
Semjon Kerner
c0ee92e776 boards/nrf52dk: add PWM configuration 2018-08-21 11:28:23 +02:00
smlng
1f3ce773d7 boards/stm32f103c8: add docu on flashing with DFU 2018-08-15 15:00:13 +02:00
smlng
9b23863804 boards/stm32f103c8: update dfu-util flash flags
The latest bootloader has new usb device id and needs different
parameters to flash a RIOT image using `dfu-util`.
2018-08-15 14:45:06 +02:00
MrKevinWeiss
5fa366fc59 boards/stm32f103c8: Remove lines from openocd.cfg handled my makefile 2018-08-10 16:59:57 +02:00
MrKevinWeiss
2bf16a5555 boards/stm32f103c8: fix openocd config
When flashing multiple times the flasher gets stuck.
Default configuration is used that fixes running mulitple tests.
-c 'reset halt' is needed to support debug after config is changed.
2018-08-10 14:41:35 +02:00
172942ce8c boards/common: cleanup documentation
Display brief description instead of copyright
2018-08-10 13:54:17 +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
a1e17ab5af doc: add wiki documentation to Doxygen files 2018-08-01 15:24:54 +02:00
smlng
500c855017 boards/arduino-mkr*: fix order in struct
C++ requires to init struct attributes in order of there definition
        in the respective struct.
2018-07-25 12:01:40 +02:00
Bas Stottelaar
0541b5c449 boards: efm32: adapt to new i2c interface. 2018-07-25 12:01:40 +02:00
c26888c9f7 boards: adapt atmega boards with new i2c API 2018-07-25 12:01:39 +02:00
e90f2b439e boards*: adapt f1 based boards to new i2c api 2018-07-25 12:01:37 +02:00
dylad
4ff319b469 nrf52/i2c: adapt to new I2C API 2018-07-25 12:01:34 +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
Peter Kietzmann
f398b5e5ff
Merge pull request #9428 from kYc0o/add_reset_remote
remote: add RESET variable
2018-07-11 10:28:39 +02:00
Francisco Acosta
2a8c6526e3 boards/common/remote: add RESET variable
For CI HIL purposes a reset is needed before running the test
target. The remote board didn't assign a RESET variable to perform
a reset, so it wasn't possible to call `make test` correctly.
By calling the flash script without arguments, a reset is performed.
2018-07-04 16:13:47 +02:00
ce917269da
Merge pull request #9333 from cladmi/pr/make/fix/stm32f103c8
stm32f103c8: fix Makefile.include INCLUDES definition
2018-07-04 09:56:35 +02:00
Gaëtan Harter
d4ca2644a3
boards/iotlab-m3|a8: fix openocd configuration
iotlab-m3 boards always ended up not being able to flash after time.
This changes managed to fix and flash boards that where able to be flashed with
the deprecated `ft2232` driver and not with the `ftdi` driver used in RIOT.

It combines configuration from openocd, iot-lab, RIOT config and Alexandre
Abadie feedback

* http://repo.or.cz/openocd.git/blob/HEAD:/tcl/interface/ftdi/iotlab-usb.cfg
  * ftdi configuration
* https://github.com/iot-lab/iot-lab-gateway/blob/2.4.1/gateway_code/static/iot-lab-m3.cfg
  * `trst_and_srst` config
* Alexandre feedback and http://openocd.org/doc/html/Reset-Configuration.html
  * 'connect_assert_srst' reset configuration
    * it prevents errors in the output on first flash
    * should help on boards with invalid code
    * It was taken from what Alexandre found for board 'b-l072z-lrwan1'
  * It requires using '-c reset halt' instead of '-c halt' before debug
* RIOT
  * Keep the `configure -rtos` auto
2018-07-02 11:00:48 +02:00
4e1f07b895
Merge pull request #8475 from aabadie/pr/common-stlink
boards/stm32: use common place of openocd config files for all boards using stlink
2018-06-28 15:13:48 +02:00
Marian Buschsieweke
de9b67bdc2
drivers/sht1x: Major refactoring
- Use RIOT's GPIO interface to access the sensor to increase portability
- Changed API to allow more than one sensor per board
- Added `sht1x_params.h` that specifies how the sensors is connected - each
  board can overwrite default settings by #defining SHT1X_PARAM_CLK and
  SHT1X_PARAM_DATA
- Changed arithmetic to use integer calculations only instead of floating point
  arithmetic
- Added support for checking the CRC sum
- Allow optional skipping of the CRC check to speed up measuring
- Added support for advanced features like reducing the resolution and skipping
  calibration to speed up measuring
- Allow specifying the supply voltage of sensor which heavily influences the
  temperature result (and use that information to calculate the correct
  temperature)
- Reset sensor on initialization to bring it in a well known state
- Support for the obscure heater feature. (Can be useful to check the
  temperature sensor?)
- Updated old SHT11 shell commands to the new driver interface, thus allowing
  more than one SHT10/11/15 sensor to be used
- Added new shell command to allow full configuration of all attached SHT1x
  sensors
- Removed old command for setting the SHT11 temperature offset, as this feature
  is implemented in the new configuration command
2018-06-27 08:58:00 +02:00
Marian Buschsieweke
d208c224b0
drivers: Renamed module sht11 to sht1x
The sensor family SHT10, SHT11 and SHT15 only differ in their accuracy (as in
calibration, not as in resolution). Thus, the same driver can be used for all.
The new driver name better reflects this fact.
2018-06-27 08:57:58 +02:00
de15af4c87 boards/common/stm32-link: add common place for stlink
- introduce common place for boards using stlink: same serial, all use openocd
- apply this to nucleos
2018-06-26 20:45:23 +02:00
Gaëtan Harter
9d891c7b75
wsn430: IoT-LAB requires the HEXFILE for flashing 2018-06-15 15:37:21 +02:00
d8c3e1da4e
Merge pull request #8549 from haukepetersen/opt_boards_stm32-clk-f4-180
boards/stm32-based: use shared configuration snippets
2018-06-12 20:48:01 +02:00
Gaëtan Harter
9f26d374ae
stm32f103c8: fix indentation in Makefile.include 2018-06-12 15:34:59 +02:00
Gaëtan Harter
5580bae495
stm32f103c8: fix INCLUDES definition location
It was currently defined in the flasher conditional.
2018-06-12 15:34:41 +02:00
6bc494b928 boards: fix doxygen grouping 2018-06-11 19:12:02 +02:00
Marian Buschsieweke
bb6d0e304c
boards: Added module boards_common_stm32f103c8 & refactored bluepill
- Moved common code for STM32F103C8 based boards to the new module
- Updated board `bluepill` to use the new module
2018-06-04 08:52:23 +02:00
Martine Lenders
3f1cf7d5ee common_wsn430: rename board.h to board_common.h
Since wsn430-v1_3b and wsn430-v1_4 do have different radio
configurations we need to separate `board.h` for them, so this moves
their currently common `board.h` to `board_common.h` to be included by
later introduced `board.h`
2018-05-29 21:22:29 +02:00
5897cf09cc
Merge pull request #9133 from aabadie/pr/boards/riottools
boards: use RIOTTOOLS variable
2018-05-28 17:02:43 +02:00
Hauke Petersen
079f3c08d4 boards/stm32f4-based: use shared 168MHz clock conf 2018-05-24 19:00:42 +02:00
Hauke Petersen
cc90edc373 boards/stm32: use shared 180MHz clock config 2018-05-24 19:00:42 +02:00
Hauke Petersen
3182ad21e6 boards/stm32: add shared spi divtable header 2018-05-24 19:00:42 +02:00
Hauke Petersen
e18f518023 boards: add path for STM32-shared config snippets 2018-05-24 19:00:42 +02:00
ac00b81e24 boards/nucleo-l496zg: add initial support 2018-05-15 11:56:51 +02:00
cb991cd47d boards: use RIOTTOOLS variable 2018-05-15 11:23:44 +02:00
3f1657ffbb
Merge pull request #8952 from ZetaR60/RIOT_atmega_graceful_clock
boards/common/atmega: gracefully handle CKDIV8 fuse
2018-05-14 16:11:17 +02:00
bb60b3e040
Merge pull request #9074 from haukepetersen/opt_nrf5x_nrfminfeature
cpu/nrf5x: define nrfmin feature in nrf5x_common
2018-05-12 02:18:31 +02:00
3474d052b9 boards/iotlab: fix saul gpio configuration
take into account inversion of LEDs and initialize them cleared
2018-05-04 15:07:20 +02:00
Hauke Petersen
9815697b3e cpu/nrf5x: define nrfmin feature in nrf5x_common 2018-05-04 13:47:46 +02:00
Matthew Blue
2979626ef6 boards/common/atmega: gracefully handle CKDIV8 fuse 2018-05-02 14:05:33 -04:00
Matthew Blue
a6ef6ddbfd boards/common/arduino-atmega: remove context swap defines 2018-04-27 14:13:34 -04:00
22aa6b9cc5
Merge pull request #8962 from aabadie/pr/boards/doxygen_cleanup
boards*: cleanup doxygen
2018-04-24 10:56:00 +02:00
7f62fd83ed boards/arduino-atmega: don't provide arduino for jiminy-mega256rfr2 2018-04-20 16:23:17 +02:00
70802fc652 boards*: cleanup doxygen
- replace brief with name where required
- remove some unwanted empty lines
- fix missing closing doxygen name block
2018-04-18 12:08:56 +02:00
479ee51649
Merge pull request #8807 from kYc0o/fix_f4_backoff
nucleo-f4xx: increase xtimer backoff to 7 for F4 family
2018-04-10 15:26:14 +02:00
Francisco Acosta
7b16b8a994 boards/common/nucleo: increase backoff to 8 for F4 family 2018-04-10 15:15:55 +02:00
cladmi
3f145413f5 boards/makefiles: Remove '-Otype' from OFLAGS
* Remove '-Oihex' and '-Obinary' from OFLAGS for all boards
  It is now provided by the Makefile.include rule.
2018-04-09 17:32:46 +02:00
d7bf2c112e
Merge pull request #7491 from aabadie/nucleo_l433
boards/nucleo-l433rc: initial support
2018-04-07 21:12:14 +02:00
Hauke Petersen
ceb76403f4 boards/nrf52xxxdk: add Skald dependencies 2018-04-06 11:18:53 +02:00
Hauke Petersen
2c01034088 boards/nrf52xxxdk: added BLE radio features 2018-04-06 11:18:53 +02:00
Francisco Acosta
69f4d632e3
Merge pull request #8837 from kaspar030/refactor_atmega_stdio
cpu/atmega: refactor stdio init code
2018-04-03 15:56:33 +03:00
60a55eb06d boards/common/arduino-atmega: use common/atmega shared code 2018-04-03 14:18:32 +02:00
ae8822ff46 boards/common/atmega: initial commit of atmega shared code 2018-04-03 14:18:32 +02:00
Sebastian Meiling
ee3196a6b6
Merge pull request #8726 from smlng/remote/add_uart1
boards: add UART1 config for Zolertia Remotes
2018-03-29 14:22:23 +02:00
Gaëtan Harter
fff5810191 Makefile.include: FIX .DEFAULT_GOAL not being all
.DEFAULT_GOAL was reset many times which removed 'all' from being the default
goal.
By chance it was then set to `link` so was working by some magic.
2018-03-28 16:59:00 +02:00
Gaëtan Harter
72ddc72f2b make: cleanup HEXFILE/ELFFILE/BINFILE
* Use the existing variable when possible
* Remove duplicate definition
* Remove unused BINFILE variable
2018-03-27 16:02:48 +02:00
61f1b941ce make: replace curly braces with parenthesis 2018-03-22 20:43:15 +01:00
e05fe7f60a boards/common/nucleo64: specific cases for nucleo-l433 2018-03-21 17:07:28 +01:00
1c90210277 boards/nucleo-l433rc: initial basic support 2018-03-21 17:07:28 +01:00
Francisco Acosta
a0017e3eb7
Merge pull request #8763 from aabadie/pr/boards/nucleo-l1-xtimer-backoff
boards/nucleo-l152: increase xtimer backoff
2018-03-20 18:33:48 +01:00
Bas Stottelaar
3bcb3f6d9e board: common/silabs, sltb001a: add conditional include 2018-03-16 22:17:54 +01:00
912e107d23 boards/nucleo-l152: increase xtimer backoff 2018-03-09 09:28:25 +01:00
Martine Lenders
6ca74fa145
Merge pull request #8708 from aabadie/boards/params/iotlab
boards/iotlab*: fix driver params usage
2018-03-08 14:02:51 +01:00
Joakim Nohlgård
6dbc8d7e17 frdm-common: Add OpenOCD configurations for Kinetis L devices 2018-03-02 15:38:39 +01:00
smlng
dab84471f1 boards/remote: use port names in UART config 2018-03-02 09:08:28 +01:00
smlng
d8bb9030ae boards: zolertia remote add uart1 config 2018-03-02 09:02:53 +01:00
Sebastian Meiling
f5ef0bd09c
Merge pull request #8345 from danpetry/cc2538_uart
cc2538/include/periph_cpu.h: Changed UART configuration format for cc2538.
2018-03-01 12:02:59 +01:00
79ab920333 boards/iotlab*: fix driver params usage 2018-02-28 18:26:39 +01:00
Bas Stottelaar
eada4b71df boards/common: silabs: add common board drivers for Silicon Labs devkits. 2018-02-13 21:46:05 +01:00
danpetry
2781a42542 boards/common/remote: Changed UART config format
Changed the configuration of the Remote boards to fit the new
cc2538 format defined in the previous commit. That is, from a
defines based format to a struct based format.
2018-02-08 14:36:52 +01:00
3d4d9c7902 boards/*: instead of cpp-style, use C-style comments 2018-02-06 16:59:58 +01:00
dylad
391164a788 pkg: fix broken nordic softdevice package
Prevent CPU from using cortexm_init() when softdevice is used for NRF52 devices
as the softdevice already do some obscur inits
Also ensure the softdevice pkg will be used by hacking Makefile due to RIOT's
build system limitations (will be fix later with the new build system)
2018-02-05 17:04:13 +01:00
Hauke Petersen
2b2accf0cc boards/nrf52-based: updated I2C configuration 2018-02-02 11:34:40 +01:00
f8744e7b27 boards/common: move nucleo doxygen group to boards group 2018-01-27 18:48:24 +01:00
Martine Lenders
8ab837c4b9
Merge pull request #8061 from haukepetersen/opt_boards_wsn430
boards: cleanup structure of wsn430 boards
2018-01-24 16:05:42 +01:00
Hauke Petersen
70aa86e5e6 boards/common/wsn30: cleanup clock configuration 2018-01-24 15:09:59 +01:00
Hauke Petersen
18268ea535 boards/nucleo: fixed doxygen group in board.c 2018-01-24 10:24:23 +01:00
Hauke Petersen
fa0f4be203 boards/nucleo144: always (auto-) initialize LED0 2018-01-24 10:24:23 +01:00
Hauke Petersen
c6c0b752c3 boards/nucleo: use shard board.h and board.c files 2018-01-24 10:24:23 +01:00
Hauke Petersen
b4f497f5e2 boards/nucleo: factored out nucleo64 common 2018-01-24 10:23:17 +01:00
Hauke Petersen
ea0dc223a4 boards/wsn430: cleaned up structure 2018-01-24 10:19:22 +01:00
906a9e3a02 boards/common/nucleo: add missing 'brief' description 2018-01-18 10:23:34 +01:00
Peter Kietzmann
384cc455fa
Merge pull request #8359 from aabadie/pr/nucleo64_btn_gpio
boards/common/nucleo: use inverted gpio for user button
2018-01-17 11:53:59 +01:00
Hauke Petersen
8587ba0e67 boards/nrf52xxxdk: fix board name in doxygen 2018-01-15 23:01:34 +01:00
Hauke Petersen
89cdf584c9 boards/common/nrf52xxxdk: guard SAUL GPIO mappings 2018-01-15 23:01:34 +01:00
Hauke Petersen
761258cf3a boards/common/nrf52xxxdk: move LED mask to board.h 2018-01-15 23:01:34 +01:00
845ffe0100 boards/common/nucleo: use inverted gpio for user button 2018-01-15 09:42:49 +01:00
Martine Lenders
9163bdc406
Merge pull request #8328 from aabadie/pr/boards/doxygen
boards: fix doxygen inconsistencies and typos
2018-01-09 16:25:02 +01:00
Dylan Laduranty
87e3f10e8b
Merge pull request #8318 from PeterKietzmann/dnahm_nrf52_i2c
cpu/nrf52: add i2c driver and configs
2018-01-08 09:23:35 +01:00
ce66117dc0 boards/common/nucleo: use @name instead of @brief 2018-01-05 15:33:03 +01:00
5b5c99c27b boards: fix doxygen typo on arduino 2018-01-05 15:32:20 +01:00
Hauke Petersen
8d5b9edba4 boards/thingy52: use shared Makefile.include 2018-01-05 13:14:20 +01:00
dnahm
6245b4165f cpu/nrf52: add i2c driver and configs 2018-01-04 10:51:05 +01:00
dnahm
201d532251 boards/ACD52832: add new NRF52 based developement board 2017-12-20 16:37:17 +01:00
smlng
b1df79a45b boards: fix doxygen groups for STM nucleo boards 2017-12-15 17:06:29 +01:00
smlng
776a05003b boards/common: add doxygen group 2017-12-15 10:35:48 +01:00
smlng
7ae468c7f3 boards/common: enhance doxygen for IoTlab boards 2017-12-15 10:28:51 +01:00
smlng
b19422780c boards/common: enhance doxygen for NXP FRDM 2017-12-15 10:28:03 +01:00
smlng
08e838e9e0 boards/common: enhance doxygen for WSN-430 2017-12-15 10:27:58 +01:00
smlng
356fe22ec5 boards/common: enhance doxygen for Zolertia Re-Mote 2017-12-15 10:27:22 +01:00
smlng
39a5576aa7 boards/common: enhance doxygen for stm nucleo144 2017-12-15 10:26:48 +01:00
smlng
b06b5748ec boards/common: enhance doxygen for stm nucleo32 2017-12-15 10:25:59 +01:00
smlng
c1354ac3d7 boards/common: enhance doxygen for stm nucleo 2017-12-15 10:25:29 +01:00
smlng
a4b1ce658b boards/common: enhance doxygen for nrf52 2017-12-15 10:24:48 +01:00
smlng
37be1e3846 boards/common: enhance doxygen for msb-a2 2017-12-15 10:24:13 +01:00
smlng
2a37aa265d boards/common: enhance doxygen for msb-430 2017-12-15 10:23:27 +01:00
smlng
f29b01ebe3 boards/common: enhance doxygen for arduino-mkr 2017-12-15 10:22:35 +01:00
smlng
779979bab5 boards/common: enhance doxygen for arduino-due 2017-12-15 10:21:45 +01:00
smlng
800fac5be4 boards/common: enhance doxygen for arduino-atmega 2017-12-15 10:21:10 +01:00
smlng
25ef1ea880 boards, remote-X: adapt and centralize uart pin config 2017-12-14 10:43:58 +01:00
Hauke Petersen
41ec9b2542 boards/common/nrf52: fixed SAUL gpio params 2017-11-30 16:13:12 +01:00
Hauke Petersen
076de4eb35 boards: factored out shared code for nRF52 boards 2017-11-30 15:50:57 +01:00
Hauke Petersen
01bfac6dbc boards/common: add Arduino Due common files 2017-11-30 13:50:55 +01:00
Hauke Petersen
6b252e56ec boards/frdm: moved shared code to common/frdm 2017-11-30 10:26:36 +01:00
Hauke Petersen
59b3e0cedd boards/nucleo: move shared code to common/nucleo 2017-11-30 10:26:36 +01:00
Hauke Petersen
00a365b956 boards/nucleo32: move shared code to common/nucleo32 2017-11-30 10:26:36 +01:00
Hauke Petersen
f1135af3d7 boards/nucleo144: move shared code to common/nucleo144 2017-11-30 10:26:35 +01:00
Hauke Petersen
050a1ddeab boards/arduino-mkr: move shared code to common/arduino-mkr 2017-11-30 10:26:35 +01:00
Hauke Petersen
0f155db499 boards/arduino-atmega: move shared code to common/arduino-atmega 2017-11-30 10:26:35 +01:00
Hauke Petersen
eb2b9f2169 boards/iotlab: move shared code to common/iotlab 2017-11-30 10:26:35 +01:00
Hauke Petersen
6c118cfc0b boards/msb-430: move shared code to common/msb-430 2017-11-30 10:26:35 +01:00
Hauke Petersen
b7943900fc boards/msba2-based: move shared code to common/msba2 2017-11-30 10:26:35 +01:00
Hauke Petersen
4bcb353f89 boards/remote: move shared code to common/remote 2017-11-30 10:26:35 +01:00
Hauke Petersen
bd96d42ede boards/wsn430: move shared code to common/wsn430 2017-11-30 10:26:35 +01:00