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

1049 Commits

Author SHA1 Message Date
Leandro Lanzieri
2aa6a7edd9
boards/common/nrf52xxxdk: Add Kconfig symbols 2020-07-16 10:23:50 +02:00
Leandro Lanzieri
e5af981df6
boards/common/nrf52: Add Kconfig symbols 2020-07-16 10:23:50 +02:00
Leandro Lanzieri
87d9a3c213
boards/common/nrf51: Add Kconfig symbols 2020-07-16 10:23:50 +02:00
8b8e281789
boards: remove Senslab wsn430 boards
These boards are no longer available on IoT-LAB
2020-07-10 16:49:08 +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
Bas Stottelaar
aaf32986f3 boards/common/silabs: make series defines explicit 2020-07-08 21:54:57 +02:00
Benjamin Valentin
632d68cebf boards/common/arduino-mkr: update PWM configuration 2020-07-08 21:51:12 +02:00
Benjamin Valentin
6547b36cc0 boards/arduino-zero: update PWM config 2020-07-08 21:51:12 +02:00
Kevin "Tristate Tom" Weiss
ad28752e4e
Merge pull request #14443 from MichelRottleuthner/pr_saml1x_xtimer_backoff
boards/saml1x: provide custom value for XTIMER_BACKOFF to spin for lo…
2020-07-08 09:08:16 +02:00
Leandro Lanzieri
85b674dfc6
boards/common/esp8266: Add Kconfig symbols 2020-07-07 16:27:43 +02:00
Leandro Lanzieri
7a2e4c819d
cpu/esp8266: Add Kconfig symbols 2020-07-07 16:27:43 +02:00
Leandro Lanzieri
597c56575c
boards/common: Add Kconfig symbols 2020-07-07 16:27:36 +02:00
Jean Pierre Dudey
3003cf737a
boards/common/esp32: move ESP features to cpu/esp_common
>All of them are features of each ESP SoC and have not to be configured by the
board definition.

Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
2020-07-07 16:02:23 +02:00
Michel Rottleuthner
20704ecb21 boards/saml1x: provide custom value for XTIMER_BACKOFF to spin for lower values 2020-07-06 17:39:08 +02:00
Francisco
05fba8574e
Merge pull request #14421 from leandrolanzieri/pr/kconfig/kinetis_boards_symbols
boards/kinetis-based: Model features in Kconfig
2020-07-03 14:30:15 +02:00
Cenk Gündoğan
7aa499d5f1 make: use $(MAKE) instead of direct make call 2020-07-03 12:03:06 +02:00
Leandro Lanzieri
64ca00d3a8
boards/common/kw41z: Add Kconfig symbols 2020-07-02 14:41:41 +02:00
Leandro Lanzieri
6ea04d146b
cpu/kinetis: Provide features based on CPU series
Also, rename CPU_FAMILY to the standard CPU_FAM.
2020-07-02 14:41:39 +02:00
e8d8fd2f32
Merge pull request #14404 from benpicco/sys/usb_board_reset_in_bootloader
sys/usb_board_reset: add usb_board_reset_in_bootloader definition
2020-07-01 13:49:59 +02:00
chrysn
a787875cf8 usb_board_reset: Split headers into public and private
The private parts need USB definitions (and are thus preferably used
from USB_H_USER_IS_RIOT_INTERNAL compilation units). Functions like
usb_board_reset_in_bootloader do not depend on USB headers for their
definitions and are fair game throughout the application even for
generic RIOT USB devices.
2020-07-01 13:22:25 +02:00
Francisco Molina
7515f1152a
boards/common/iotlab: add OpenWSN timing constants 2020-06-30 13:10:56 +02:00
Leandro Lanzieri
8c7b67702b
Merge pull request #14351 from fjmolinas/pr_reorder_makefiles
Makefile.include: resolve dependencies before Makefile.include
2020-06-26 10:40:58 +02:00
Your Name
9dea6a14da
boards/common/nrf52: revert early inclusion of Makefile.dep 2020-06-25 09:24:05 +02:00
Leandro Lanzieri
ba2e84ef37
boards/common/remote: Add Kconfig symbols 2020-06-24 15:16:23 +02:00
Leandro Lanzieri
946ce73ae6
boards/common/wsn430: Add Kconfig symbols 2020-06-24 09:30:37 +02:00
Leandro Lanzieri
69a5a56ce0
boards/common/msb-430: Add Kconfig symbols 2020-06-24 09:29:57 +02:00
Benjamin Valentin
5da1a9e577 cpu/esp*: use TIMER_CHANNEL_NUMOF 2020-06-24 00:45:35 +02:00
Francisco
3b593f282e
Merge pull request #14311 from benpicco/boards/common/saml1x_configure_UART
boards/common/saml1x: configure UART on EXT1
2020-06-23 13:29:22 +02:00
benpicco
a30d229b12
Merge pull request #14166 from aabadie/pr/cpu/stm32g4
cpu/stm32g4: add support + add nucleo-g474re board
2020-06-19 17:05:15 +02:00
Cenk Gündoğan
209248f3b2
Merge pull request #14310 from leandrolanzieri/pr/kconfig/efm32_boards_symbols
boards/efm32-based: Model features in Kconfig
2020-06-19 15:02:51 +02:00
34c872093c
boards/common/stm32: add common configuration for stm32g4 boards 2020-06-19 14:18:18 +02:00
benpicco
c3314e1a0c
Merge pull request #14303 from fjmolinas/pr_sam0_unified_rtt
cpu/sam0: unified rtt configuration
2020-06-19 11:30:06 +02:00
Francisco Molina
bcfe4bac0b
cpu/saml1x: add unified rtt configuration 2020-06-19 09:16:22 +02:00
Francisco Molina
eefb3fa555
cpu/samd21: add unified rtt configuration 2020-06-19 09:16:22 +02:00
Benjamin Valentin
d156030d99 boards/common/saml1x: configure UART on EXT1 2020-06-19 00:39:12 +02:00
Leandro Lanzieri
99822f3f60
boards/common/slwstk6000b: Add Kconfig symbols 2020-06-18 16:39:55 +02:00
Leandro Lanzieri
59d2a65643
boards/common/silabs: Add Kconfig symbols 2020-06-18 16:39:54 +02:00
b05bcebeba
Merge pull request #14305 from fjmolinas/pr_ztimer_config_usec
boards/common/iotlab: add CONFIG_ZTIMER_USEC
2020-06-18 09:19:46 +02:00
Francisco Molina
362eb56bf0
boards/common/iotlab: add CONFIG_ZTIMER_USEC 2020-06-17 14:22:21 +02:00
Leandro Lanzieri
9c6e3ea91a
boards/common/arduino-atmega: Add Kconfig symbols 2020-06-17 10:59:29 +02:00
Leandro Lanzieri
4d65bc8e0a
cpu: Rename CPU_ARCH to CPU_CORE 2020-06-16 12:05:40 +02:00
01a6044400
boards/sodaq: Add DMA to common SPI config 2020-06-16 09:44:14 +02:00
51c5497c5a
common/arduino-mkr: add DMA triggers to spi config 2020-06-14 16:21:32 +02:00
757d727276
common/saml1x: Add DMA triggers to spi config 2020-06-14 16:21:32 +02:00
benpicco
8ed8775c8e
Merge pull request #14269 from benpicco/cpu/sam0_common/timer_drop_prescaler
cpu/sam0_common: drop prescaler from timer config
2020-06-12 14:16:59 +02:00
Benjamin Valentin
54b57bd97f cpu/sam0_common: drop prescaler from timer config
since c05984b341 the prescaler in the timer
config struct is no longer used.

Let's remove it.
2020-06-11 19:29:43 +02:00
Benjamin Valentin
2325dba871 makefiles/bossa: move USB reset logic to common file 2020-06-11 11:56:35 +02:00
Francisco
52bcdff113
Merge pull request #14245 from fjmolinas/pr_iotlab_baud
boards/common/iotlab: don't enforce BAUD
2020-06-11 09:13:03 +02:00
benpicco
75d82cc9b8
Merge pull request #14209 from btcven/2020_06_04-common-cfg
boards/cc26x2_cc13x2-based: move config to common directory
2020-06-10 15:32:11 +02:00
Francisco Molina
f556eb6958
boards/common/iotlab: don't enforce BAUD 2020-06-10 13:32:05 +02:00
Kees Bakker
723fe93850 boards/common/sodaq: add XTIMER_DEV and make it equal to other SAMD21
For some reason this was looked over a while back.

This resolves issue #14217
2020-06-07 22:25:30 +02:00
benpicco
cb11b2d33f
Merge pull request #14198 from maribu/wemos-zero
boards: Add support for the wemos-zero board
2020-06-05 17:55:43 +02:00
Jean Pierre Dudey
283aacbecd
boards/cc26x2_cc13x2-based: move config to common
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2020-06-04 17:12:52 -05:00
Marian Buschsieweke
17b890c16e
boards/{arduino,wemos}-zero: Dedpulicated code 2020-06-04 21:28:17 +02:00
Marian Buschsieweke
de189a33f4
boards/arduino-zero: Factor out common code 2020-06-04 21:28:17 +02:00
Benjamin Valentin
b20ec93991 boards: add WeAct-f411ce board
The WeAct-F411CE is a blackpill-like board with a STM32F411CE.
It can be flashed using the vendor-provided bootloader.
2020-06-04 12:39:14 +02:00
Gabriel Moyano
2367ff3885 boards/blxxxpill: add TIM1, TIM3 and TIM4 as qdec dev 2020-05-29 22:08:25 +02:00
Marian Buschsieweke
dfa6863275
cpu/atmega{1281,2560}: Relocate default timer config 2020-05-28 16:27:08 +02:00
Marian Buschsieweke
044a3f9a4c
cpu/atmega1284p: Relocate default timer config 2020-05-28 16:27:07 +02:00
Marian Buschsieweke
200afc46fa
cpu/atmega328p: Relocate default timer config 2020-05-28 16:27:07 +02:00
Marian Buschsieweke
a950d6bbb6
cpu/atmega{128rfa1,256rfr2}: Relocate default timer config 2020-05-28 16:27:07 +02:00
Marian Buschsieweke
9138e48746
cpu/atmega32u4: Relocate default timer config 2020-05-28 16:27:06 +02:00
97f98dcace
boards/stm32: remove useless ifdef around DMA config 2020-05-25 13:23:20 +02:00
facb626b02
boards/stm32*: adapt for new stm32 cpu organization 2020-05-20 13:39:10 +02:00
Benjamin Valentin
59f3c1b48b boards/samd21-arduino-bootloader: add support for UF2 bootloader 2020-05-19 16:58:58 +02:00
benpicco
9f707bf121
Merge pull request #14057 from bergzand/pr/nrf52/dma_spi
nrf52: Implement EasyDMA-based SPI peripheral implemenation
2020-05-18 19:42:33 +02:00
1e15bb2680
particle-mesh: Adapt SPI periph config 2020-05-18 19:18:29 +02:00
628d3e9080
nrf52: Adapt SPI periph config 2020-05-18 19:18:29 +02:00
Marian Buschsieweke
7cf49d145d
boards/common/nrf52: Allow external boards
Replace `$(RIOTBOARD)/$(BOARD)` with `$(BOARDDIR)`, which also works for
external boards. This allows external boards to build on top of
`$(RIOTBOARD)/common/nrf52`.
2020-05-14 13:56:12 +02:00
benpicco
e3591535ce
Merge pull request #13972 from Citrullin/nrf52_bmp
Add bmp config for nrf52
2020-05-12 16:59:34 +02:00
Philipp Blum
3240dfc0b2 boards/common/nrf52: add config for bmp 2020-05-12 15:54:38 +02:00
benpicco
e45777d077
Merge pull request #13809 from Vinggui/master
Added a new flashing parameter for generic cheap St-link and bluepill(-128kib) boards.
2020-05-12 11:48:43 +02:00
5773db93f8
Merge pull request #14025 from fjmolinas/pr_nrf5x_rtt_conf
boards/common/nrf5x: add configurable RTT_FREQUENCY
2020-05-05 17:46:05 +02:00
343dc3f90f
Merge pull request #13909 from fjmolinas/pr_stm32_rtt
cpu/stm32_common: make RTT_FREQUENCY configurable
2020-05-05 16:45:39 +02:00
Francisco Molina
409185c5ce
boards/common/nrf5x: add configurable RTT_FREQUENCY
Adds: RTT_MAX_FREQUENCY, RTT_MIN_FREQUENCY & RTT_CLOCK_FREQUENCY
2020-05-05 14:52:55 +02:00
Francisco Molina
b5bcf26e0f
cpu/stm32_common: make RTT_FREQUENCY configurable
Adds: RTT_MAX_FREQUENCY, RTT_MIN_FREQUENCY & RTT_CLOCK_FREQUENCY
2020-05-05 14:36:31 +02:00
Benjamin Valentin
dc58ef59ae boards: remove duplicate gnrc_netdev_default from Makefile.dep
`gnrc_netdev_default` will pull in `netdev_default`, so no need to
check for both in `Makefile.dep`
2020-05-05 09:58:45 +02:00
Vinicius G. Guimaraes
f8776a989f boards/blxxxpill: add support for stm32duino bootloader and for generic St-Link V2. 2020-05-04 19:36:15 -07:00
Dylan Laduranty
57c1a49a82
Merge pull request #13957 from benpicco/cpu/samd21-pwm_flex
cpu/samd21: PWM don't hard-code number of channels to 3
2020-05-02 20:52:56 +02:00
Dylan Laduranty
76870721fe
Merge pull request #13965 from benpicco/cpu/sam0_common/periph/dac
cpu/sam0_common: implement periph/dac
2020-05-02 20:34:40 +02:00
Benjamin Valentin
777931bcdc boards/common/saml1x: enable DAC
Both saml10-xpro and saml11-xpro expose PA02 on the pin header, so
we can enable the DAC feature.
2020-05-02 18:31:55 +02:00
Francisco Molina
b78e4efb56
cpu/stm32f1: dont provide periph_rtc at cpu level
stm32f1 periph_rtc implementation gets a 1s resolution by dividing
CLOCK_LSx by 32768. This only make sense if CLOCK_LSE is set,
otherwise CLOCK_LSI=~40000, which will lead to an imprecise rtc.
2020-04-27 08:59:21 +02:00
Benjamin Valentin
393105a9e1 boards/common/arduino-mkr: update PWM configuration 2020-04-26 22:52:29 +02:00
Francisco Molina
a72abe5903
boards/common/blxxxpill: provide periph_rtt 2020-04-24 10:44:57 +02:00
Francisco Molina
4d398ab09e
cpu/stm32f1: add unified rtt configuration 2020-04-24 08:57:04 +02:00
Marian Buschsieweke
fdf955cfb2
Merge pull request #13899 from Hoernchen20/stm32f1_adc
boards/blxxxpill: improve adc
2020-04-22 23:07:26 +02:00
Hoernchen20
c64f7f72c2 boards/common/blxxxpill: Drop ADC lines used for stdio 2020-04-22 21:16:20 +02:00
Hoernchen20
4e87682ba1 boards/common/blxxxpill: Add internal ADC lines 2020-04-22 21:08:20 +02:00
Leandro Lanzieri
75b371ccb0
boards/common/msba2: Set RTS and DTR to 0 when using Miniterm 2020-04-22 08:08:23 +02:00
benpicco
17f1a85bf1
Merge pull request #12415 from maribu/nucleo_board_init
boards/common/nucleo: Marked board_init as weak
2020-04-16 23:30:19 +02:00
73615d690d
boards/stm32l4: introduce common clock configuration 2020-04-07 17:42:56 +02:00
010aca2638
Merge pull request #13719 from aabadie/pr/boards/flash_export_remove
boards*: remove remaining uses of export with some openocd related variables
2020-04-07 11:58:28 +02:00
0f9e56d0ff
boards/samd21-bootloader: don't use bootloader with slipdev_stdio 2020-04-02 16:42:37 +02:00
fc7e98b60c
boards/samd21-arduino: exclude reset with usb-board-reset macro 2020-04-02 16:41:53 +02:00
Francisco Molina
72a2220d21
boards/common/nrf52: include Makefile.board.dep in hack
nrf52 includes include $(RIOTBOARD)/$(BOARD)/Makefile.dep to know
if `nordic_softdevice_ble` is used, this changes dependency
resolution sinnce -include $(APPDIR)/Makefile.board.dep should
be resolved before.

This can be removed once #9913 is if `nordic_softdevice` is
deprecated.
2020-04-02 14:51:22 +02:00
cd0b765346
Merge pull request #13664 from fjmolinas/pr_samd21_bootloader_default_module
boards: set samd21-arduino-bootloader as DEFAULT_MODULE
2020-04-01 21:42:42 +02:00
Francisco Molina
1387b736b7
boards: conditionally include samd21-arduino-bootloader
samd21-arduino-bootloader and its dependencies will only be
included if no other stdio_% (other than stdio_cdc_acm) is included.
2020-04-01 15:10:32 +02:00
Dylan Laduranty
6bba4188fc
Merge pull request #13764 from benpicco/cpu/saml11/use_buck_converter
cpu/saml1x: select buck voltage regulator when possible
2020-04-01 14:47:47 +02:00
Benjamin Valentin
2d14a328c4 board/common/saml1x: enable buck converter 2020-03-31 17:18:58 +02:00
Francisco Molina
8437673237
boards/common/cc2538/include: re-order timer config 2020-03-30 16:09:18 +02:00
f3dd7e0e2a
boards*: don't export PRE_FLASH_CHECK_SCRIPT 2020-03-26 09:37:27 +01:00
f2aa38c8f9
boards*: don't export OPENOCD_PRE_FLASH_CMDS 2020-03-26 09:31:22 +01:00
91d883df47
boards*: don't export OPENOCD_PRE_VERIFY_CMDS 2020-03-26 09:31:21 +01:00
benpicco
e9b71254ff
Merge pull request #13694 from fjmolinas/pr_boards_common_cc2538
boards: add common cc2538
2020-03-25 11:11:50 +01:00
bf2b495d34
Merge pull request #13703 from fjmolinas/pr_usbus_autoinit
Makefile.dep: add auto_init_usbus as usbus DEFAULT_MODULE
2020-03-25 10:19:04 +01:00
Francisco Molina
e220483adc
boards: p-nucleo-wb55 initial support 2020-03-25 09:29:57 +01:00
Francisco Molina
194af687a0
boards/common: add cc2538 2020-03-25 08:20:52 +01:00
Francisco Molina
15ab36409f
Makefile.dep: add auto_init_usbus as usbus DEFAULT_MODULE 2020-03-24 14:33:09 +01:00
Leandro Lanzieri
877db8c00e
Merge pull request #13557 from gschorcht/doc/fix_url
doc: fix broken links
2020-03-24 13:08:18 +01:00
fc6b586919
Merge pull request #13586 from bergzand/pr/nrf/dcdc
nrf5x: Add and enable configuration for the built-in DC/DC converter
2020-03-24 11:56:40 +01:00
Gunar Schorcht
9db19e35b5 boards/common/slwstk6000b: fix broken links 2020-03-24 10:38:40 +01:00
Gunar Schorcht
5b8d503bc9 boards/common/blxxxpill: fix broken links 2020-03-24 10:38:40 +01:00
Leandro Lanzieri
194b8a7aca
boards/esp8266: Move common modules to common Makefile.dep 2020-03-24 09:21:22 +01:00
Leandro Lanzieri
f46b0c2da3
boards/esp32: Move inclusion of boards_common_esp32 to common file 2020-03-24 09:21:22 +01:00
Francisco Molina
5d14104056
boards: add clock configuration for cc2538 2020-03-21 19:32:23 +01:00
Francisco
b98e4bf0d1
Merge pull request #13658 from fjmolinas/pr_periph_timer_cc2538
cpu/cc2538: fix GPT3 IRQ definition
2020-03-20 14:31:05 +01:00
benpicco
5435792034
Merge pull request #12277 from benemorius/pr/kw41zrf
drivers: add kw41zrf
2020-03-20 00:49:56 +01:00
Joakim Nohlgård
5bd67d88a8 drivers/kw41zrf: Transceiver driver for the KW41Z radio
This is the radio found in NXP Kinetis KW41Z, KW21Z. Only 802.15.4 mode
is implemented (KW41Z also supports BLE on the same transceiver).

The driver uses vendor supplied initialization code for the low level
XCVR hardware, these files were imported from KSDK 2.2.0 (framework_5.3.5)
2020-03-19 17:00:04 -05:00
Francisco Molina
2f3a0e9b7e
boards: fix CORE_CLOCK for cc2538 based boards 2020-03-19 16:31:56 +01:00
f5a17a90fb
boards/sodaq-*: use bootloader_arduino feature 2020-03-18 10:53:17 +01:00
a2c20666f0
boards/arduino-mkr: use bootloader_arduino feature 2020-03-18 10:53:16 +01:00
c7f6d53773
boards/samd21-arduino-bootloader: add common board module
This module implements the 2 functions called when requesting a board 'reset in application' and 'board reset in bootloader' actions.
This module will also configure the behaviour of bossa flasher and has a dependency on USBUS CDC ACM module for providing STDIO over USB
2020-03-18 10:52:51 +01:00
7be303f12f
Merge pull request #7583 from haukepetersen/add_sam3_rtt
cpu/sam3: added RTT driver
2020-03-12 21:30:05 +01:00
Francisco
3153a86551
Merge pull request #11192 from aabadie/pr/tools/dfu
boards: include common dfu logic where applicable
2020-03-12 09:05:32 +01:00
Hauke Petersen
8f8eb86e54 boards/common/arduino-due: add RTT config+feature 2020-03-11 12:53:20 +01:00
Hauke Petersen
2e04b1d0dc boards/common/arduione-due: add 32khz clock opt 2020-03-11 12:53:04 +01:00
benpicco
d294e1d01c
Merge pull request #9572 from maribu/atmega-debug
On-Chip Debugging for AVR/ATmega based boards
2020-03-11 11:40:40 +01:00
Francisco
db0452201d
Merge pull request #13567 from aabadie/pr/boards/jlink_export_cleanup
boards: remove exports of jlink related variables
2020-03-10 18:46:58 +01:00
79431878ac
Merge pull request #13051 from dylad/pr/uart_hw_fc
cpu/uart: create common uart hw fc module
2020-03-10 16:41:36 +01:00
c49ad27499
boards: don't export JLINK_PRE_FLASH 2020-03-10 16:31:32 +01:00
8489a0af53
boards: don't export FLASH_ADDR
This variable is already export in vars.inc.mk
2020-03-10 16:31:01 +01:00
1e9879fbcf
boards: unexport JLINK_DEVICE variable 2020-03-10 16:28:03 +01:00
Francisco
6ba665858b
Merge pull request #13593 from aabadie/pr/boards/pyocd_export_remove
boards/pyocd: cleanup use of `export` keyword
2020-03-10 15:19:34 +01:00
Dylan Laduranty
6baf501a3d boards/cc2538: update to use generic uart_hw_fc module 2020-03-10 14:22:34 +01:00
Dylan Laduranty
88bb019438 boards/sam0: update to use generic uart_hw_fc module 2020-03-10 14:22:34 +01:00
Marian Buschsieweke
edd93411fe
dist: De-duplicated AVR debug config & scripts
Use common debug.sh, debug_srv.sh and gdb.conf for all AVR boards.
2020-03-10 12:54:51 +01:00
631fbd9fc8
boards/blxxxpill: rework programmer specific configuration 2020-03-10 11:42:10 +01:00
f56470925b
boards: include common dfu logic where applicable 2020-03-10 11:42:10 +01:00
benpicco
f0ac1624c5
Merge pull request #13594 from aabadie/pr/tools/cc2538-bsl_rework
tools/cc2538-bsl: deduplicate buildsystem integration
2020-03-09 19:39:43 +01:00
b4418426ba
boards/cc2538: use common cc2538-bsl handling file 2020-03-09 18:26:08 +01:00
2ec09ebd74
boards/nrf52: remove useless export of FLASH_TARGET_TYPE 2020-03-08 15:12:44 +01:00
Marian Buschsieweke
8fd8c8273f
boards/{nucleo-f103rb,b*pill}: Expose JTAG pins as GPIOs
The Nucleo-F103RB comes with an internal SWD programmer/debugger. Thus, the JTAG
pins are not going to be used for debugging / programming anyway. The pins are
exposed on the headers, so allowing them to be used as GPIOs make a lot of
sense.

The Bluepill / Blackpill boards only expose the SWD pins on the debug header,
but the JTAG pins (not also used by SWD) are exposed on the GPIO pin headers.
Hence, exposing them as regular GPIOs seems to be a reasonable choice.
2020-03-08 13:06:34 +01:00
bea3f71f91
nrf52xxxdk: Enable the nRF52 built-in DC/DC converter 2020-03-07 17:37:41 +01:00
benpicco
7396d05605
Merge pull request #13575 from fjmolinas/pr_cc2538_rf_deps
cpu/cc2538: handle cc2538_rf deps in Makefile.dep
2020-03-06 18:00:51 +01:00
Francisco Molina
80ecac5fde
boards: use cc2538_rf as netdev_default for CPU=cc2538 2020-03-06 14:17:52 +01:00
Francisco Molina
ff6f6618fb
cpu/cc2538: handle cc2538_rf deps in Makefile.dep 2020-03-06 14:17:19 +01:00
Benjamin Valentin
ed4d871835 dist/tools/cc2538-bsl: use upstream version
Automatically fetch the upstream version of cc2538-bsl.py instead
of maintaining our own fork of the tool.

fixes #13566
2020-03-06 11:13:21 +01:00
eafba65911 boards/common/arduino-atmega: add ztimer configuration 2020-03-04 12:44:03 +01:00
benpicco
7792f91ddc
Merge pull request #13535 from btcven/2020_03_02-cc1312-openocd
boards/cc1312-launchpad: add OpenOCD configuration
2020-03-04 00:26:14 +01:00
Jean Pierre Dudey
ca2e2a4289
boards/cc1312-launchpad: add OpenOCD configuration
This enables OpenOCD for the CC1312 LaunchPad.

All we need is:

- The Texas Instruments version of OpenOCD
  (https://git.ti.com/cgit/sdo-emu/openocd)
- Set the `PROGRAMMER` environment variable to `openocd`.
- Connect a cc1312-launchpad and play with the commands.

Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2020-03-03 13:42:29 -05:00
95d607b54d
Merge pull request #13480 from aabadie/pr/tools/openocd_export_variables
tools/openocd: export configuration variables only to required targets
2020-03-03 18:16:05 +01:00
2722869dbb
boards/arduino-due: don't export BOSSA_ARDUINO_PREFLASH 2020-03-03 14:18:03 +01:00
bd81060354
boards/{telosb,iotlab}: remove useless export for BAUD
The variable is already eported in serial.inc.mk
2020-03-03 14:18:03 +01:00
Francisco
3f062a78b2
Merge pull request #13045 from aabadie/pr/boards/remote_factorize
boards/remote*: cleanup and factorize code in peripheral configuration headers
2020-03-03 13:21:04 +01:00
481f3bcb35
Merge pull request #13180 from fjmolinas/pr_slwstk6000b_cleanup
boards/slwstk6000b-*: cleanup
2020-03-03 13:15:03 +01:00
f1ba22534a
boards: don't export globally OPENOCD_RESET_USE... 2020-03-03 11:42:19 +01:00
Francisco Molina
86ed76fec0
boards/common/slwstk6000b: remove unused files 2020-03-03 11:24:28 +01:00
Francisco Molina
e951b720b8
boards/common/slwstk6000b: use slwstk6000b.vars.mk to parse JLINK_DEVICE 2020-03-03 11:24:27 +01:00
Francisco Molina
22aae93efb
boards/common/slwstk6000b: cleanup slwrb41* includes 2020-03-03 11:24:26 +01:00
Francisco Molina
b7783e67a8
boards/common/slwstk6000b: use slwstk6000b.vars.mk to parse CPU_MODEL 2020-03-03 11:24:26 +01:00
Francisco Molina
96cfa1d41c
boards/common/slwstk6000b: add module variables makefile 2020-03-03 11:22:48 +01:00
Karl Fessel
979b4d5cf7 Revert "boards/nucleo-f767zi: add correct flash bank openocd config"
This reverts commits:
    - 1dec5ba61b
    - 53f60db66f
2020-02-28 13:51:58 +01:00
0d468c1068 boards/common/silabs: remove OPENOCD_CONFIG export 2020-02-25 17:26:00 +01:00
f451eb692c
Merge pull request #13452 from aabadie/pr/tools/openocd_config_export
tools/openocd: only export OPENOCD_CONFIG to required targets
2020-02-25 15:11:38 +01:00
d41621e95f
boards/arduino-due: force bossa 1.8 version 2020-02-25 11:49:10 +01:00
benpicco
77d6eaaf19
Merge pull request #13461 from benpicco/sam_xpro-led-fix
boards/samXXX-xpro: clear LED on init
2020-02-24 21:56:36 +01:00
Benjamin Valentin
bc5ac92cff boards/samXXX-xpro: clear LED on init
The LED on the sam-xpro boards is active low, so we have
to turn it off manually, otherwise it's always on.
2020-02-24 19:44:36 +01:00
benpicco
4671fd2fe4
Merge pull request #10475 from chrysn-pull-requests/openocd-for-stk3700
boards/any silabs: Allow selecting OpenOCD
2020-02-24 19:12:43 +01:00
9363f077d6
boards: don't export globally OPENOCD_CONFIG
The variable is already exported to required target in openocd.inc.mk
2020-02-24 10:04:11 +01:00
Gunar Schorcht
d251ffd205 boards/esp8266: enable arduino feature 2020-02-21 09:09:34 +01:00
chrysn
f4b1d60887 boards/*silabs: Move programmer selection to common
This removes duplication for the jlink case (keeping only any
non-default values in the board makefiles), and opens up STK3700's
OpenOCD programmability for generic boards.
2020-02-14 09:42:20 +01:00
3ac25c3ac9
Merge pull request #12556 from bergzand/wip/stusbdev
stm32_common: Add USB OTG FS/HS usbdev peripheral driver
2020-02-11 20:39:46 +01:00
1f5340c307
boards/stm32: Add default config for USB OTG HS peripheral 2020-02-11 15:50:22 +01:00
fc63fb77bf
boards/stm32: Add default config for USB OTG FS peripheral 2020-02-11 15:50:18 +01:00
benpicco
d8c050943c
Merge pull request #13327 from maribu/atmega-bootloader
boards: Cleaned up bootloader selection for ATmega
2020-02-10 23:18:43 +01:00
Marian Buschsieweke
750d3078e4
boards/common/arduino-atmega: Refactoring
- including `avrdude.mk` and `serial.mk` is no longer needed
- the avrdude flag -F is dropped
    - This allows flashing a board having an MCU different to the one
      RIOT was compiled for
    - It is better to let the user provide this flag manually if she/he really
      wants to turn safety off, knows what she/he is doing, and accepts the
      risk associated with this
- the avrdude flag -D is dropped
    - This disables issuing an erase command during flashing, however this
      erase cycle is strictly required to be able to program the flash
    - This is only needed in case of the stk500v2 bootloader, which implicitly
      does the erase cycle and fails if explicitly asked to do so
    - Only for the stk500v2 bootloader this flag is now added
2020-02-10 14:52:07 +01:00
Marian Buschsieweke
95704348ae
boards/common/atmega: Refactor flash & serial conf
- Include `tools/avrdude.mk` and `tools/serial.mk` at the common place instead
  for each ATmega based board individually
- Introduce the makefile variable BOOTLOADER to de-duplicate flash configs:
    - Two boards using the same bootloader now just use `BOOTLOADER ?= foo`
      and share the individual config
    - These settings are not applied when `PROGRAMMER` is set to still allow
      users to manually specify how to program their board
2020-02-10 14:48:39 +01:00
Francois Berder
b4ab22673e boards: Use ARRAY_SIZE for setting UART_NUMOF, SPI_NUMOF, I2C_NUMOF
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2020-02-09 20:55:46 +00:00
713fead00a
boards: move some USEMODULE to Makefile.dep 2020-02-07 13:21:22 +01:00
d6264f56c8
Merge pull request #13168 from fjmolinas/pr_iotlab_openocd
boards/iotlab: add DEBUG_ADAPTER_ID openocd
2020-02-05 11:30:11 +01:00
Benjamin Valentin
c4e0ed4b79 boards: use explicit GCLK_SRC defines 2020-02-04 21:17:00 +01:00
Benjamin Valentin
1496149bba cpu/sam0: don't hard-code peripheral clocks
Instead of hard-coding the peripheral clocks to CLOCK_CORECLOCK
introduce helper functions to return the frequency of the individual
GCLKs and use those for baud-rate calculations.

This requires the GCLK to be part of the peripheral's config struct.
While this is already the case for most peripherals, this also adds
it for those where it wasn't used before.

As it defaults to 0 (CLOCK_CORECLOCK) no change is to be expected.
2020-02-04 21:06:21 +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
benpicco
5d1bf26f0c
Merge pull request #13076 from gschorcht/boards/esp32/ttgo_t_beam_gps
boards/esp32: enable GPS module on ESP32 TTGO T-Beam V1.0
2020-02-01 23:25:55 +01:00
Gunar Schorcht
624c6f24ca boards/esp32: allow board specific initialization 2020-02-01 16:12:05 +01:00
Marian Buschsieweke
613ef0fdf0
boards/common/nucleo: Marked board_init as weak
Made `void board_init(void)` in the common implementation a weak symbol to
allow providing a custom board init, if the common nucleo board init misses
features.
2020-01-31 13:41:50 +01:00
Benjamin Valentin
bd19a55804 boards: remove EDBG_DEVICE_TYPE
EDBG_DEVICE_TYPE is a property of the CPU, is should not be set
by every board individually.
2020-01-31 09:35:27 +01:00
Francisco Molina
94853d5e1d boards/iotlab-%: define DEBUG_ADAPTER 2020-01-28 11:56:56 +01:00
Francisco Molina
f79397f7be boards/iotlab-%: use common openocd config 2020-01-28 11:56:38 +01:00
98995f685b
Merge pull request #13179 from fjmolinas/pr_openocd_stm32f7_probe
boards/nucleo-f767zi: add correct flash bank openocd config
2020-01-28 10:48:23 +01:00
Francisco Molina
1dec5ba61b boards/common/stm32f7: add correct flash bank configuration
openocd configuration file for `stm32f7` relies on probing to find out
FLASH_ADDR. On nucleo-f767zi board probing (`flash probe 0`) fails when
`srst` is asserted, but `srst` needs to be asserted to be able to flash
the `BOARD` when sleeping or after a hardfault.

To circumvent this in boards/common/stm32/dist/stm32f7.cfg we define a new
flash bank with the appropriate fash start address and specify that this is
the flash bank to be used as default configuration instead of the
default by setting FLASH_BANK=4
2020-01-27 22:32:06 +01:00
Gunar Schorcht
416e8ce8e6 cpu/esp32: fix C linkage compilatio error
With the new toolchain version required to fix issue #13133, the compilation of `examples/posix_socket` fails due to a C linkage error in `atomic_base.h`. The reason is that including `drivers/include/mtd.h` in `boards/esp32/board_common.h` inside the `extern C` block finally leads to including `atomic_base.h` inside the `extern C` block which in turn to the C linkage error for the template definitions in this file.
2020-01-16 13:03:49 +01:00
76b9cfb677
Merge pull request #12973 from fjmolinas/pr_atmega_tx_isr
cpu/atmega_common/periph/uart: use TX_ISR to check TX end
2020-01-15 11:51:22 +01:00
Francisco Molina
fb388bf5b6 boards/atmega/include/periph_conf_atmega_common: add USARTn_TX_vect 2020-01-15 10:02:41 +01:00
Bas Stottelaar
aeed1f3153 boards/slwstk6000b: add documentation 2020-01-13 23:31:51 +01:00
Leandro Lanzieri
50f1b1423a
Merge pull request #12999 from fjmolinas/pr_native_makefile_include_explicit_path
boards: use explicit paths for file inclusion
2020-01-13 16:00:48 +01:00
Francisco Molina
74cecf30f0 boards/common/arduino-mkr: remove /Makefile.dep
Makefile.dep is already included for the board no need to do it here.
2020-01-13 11:53:48 +01:00
Hyungsin
6eed5b9d43 remove XTIMER_OVERHEAD 2020-01-10 13:22:11 -08:00
2bcf1890bb
boards/remote*: factorize provided features 2020-01-08 14:42:03 +01:00
43a9529ed2
boards/remote: remove unused periph_common.h 2020-01-08 14:41:31 +01:00
4a0ac8e4e8
boards/remote: add common default config headers 2020-01-08 14:38:52 +01:00
ce0bb35587
Merge pull request #12993 from fjmolinas/pr_cc2538_rtt
cpu/cc2538: add periph_rtt
2020-01-08 09:55:45 +01:00
Francisco Molina
b436ba4a0c boards/common/remote: add periph_rtt 2020-01-08 09:16:49 +01:00
748ffff931
boards/nrf52: remove use of export for LINKER_SCRIPT 2020-01-03 16:07:15 +01:00
kcant
f770c6fffd Update doc.txt
Broken links correction to https://web.archive.org/web/20190428082446/ *
2019-12-28 18:38:27 +01:00
dylad
fc9549b069 boards/sam0: update sam0-based board to use hw fc 2019-12-20 21:26:56 +01:00
Benjamin Valentin
9ce34bb305 lpc2k_pgm: fix build warnings
GCC now warns when snprintf()ing a buffer that, together with the
format string, might be larger than the destination buffer.

To fix this increase the size of the destination buffer so that
the source buffer and the format string will always fit - 32 bytes
are enough.
2019-12-03 22:09:29 +01:00
Benjamin Valentin
a57f380259 lpc2k_pgm: add LPC2388
The device is very simmilar to the LPC2387
2019-12-03 22:09:20 +01:00
Benjamin Valentin
0d977b3b3c cpu/sam0_common/periph/uart: implement buffered write
Implement interrupt based uart_write() using a tsrb for the TX buffer.

To enable it, add

    USEMODULE += periph_uart_nonblocking

to your Makefile.
2019-11-27 19:01:00 +01:00
Francisco Molina
90bcb016bb boards: unexport PROGRAMMER 2019-11-27 14:31:01 +01:00
benpicco
7f40b13d05
Merge pull request #12697 from maribu/stm32-programmer
boards: Common STM32 programmer/debugger/serial config
2019-11-25 15:27:22 +01:00
4fb244d415 boards/common: fix typos 2019-11-23 22:39:07 +01:00
Gunar Schorcht
a05027cdba
Merge pull request #12523 from aabadie/pr/sys/arduino_pwm
sys/arduino: add implementation for analogWrite
2019-11-21 15:08:10 +01:00
4337cb316f
Merge pull request #12752 from gschorcht/cpu/esp32/espreset
boards/esp32*: use espreset tool for reset in make test
2019-11-20 22:07:15 +01:00
Gunar Schorcht
5ba4a7d7cf boards/esp32*: espreset tool added 2019-11-20 08:33:47 +01:00
benpicco
1999e2f89c
Merge pull request #12745 from benpicco/atmega-led_fix
boards/atmega_common: remove weak led_init()
2019-11-20 00:14:48 +01:00
benpicco
cfcbb76cd2
Merge pull request #12729 from maribu/atmega1284p
boards/atmega1284p: Add ATmega1284P as board
2019-11-19 23:18:31 +01:00
Hauke Petersen
04dcc3662b
Merge pull request #12344 from chrysn-pull-requests/particle-antenna-switch
particle-*: Configure antenna switch
2019-11-19 23:06:29 +01:00
Benjamin Valentin
c277100dd9 boards/atmega_common: remove weak led_init()
`led_init()` is already protected by an `#ifdef`, so no need for
the weak symbol.

The problem is that the weak function does not get overridden, even when
the board provides it's own led_init(), resulting in no LEDs being
initialized.
2019-11-19 22:36:07 +01:00
Marian Buschsieweke
b7150ed6c7
boards/common/atmega: Added ATmega1284P PWM conf
Added PWM configuration for the ATmega1284P CPU; this can be reused for every
board featuring that CPU.
2019-11-18 23:46:08 +01:00
chrysn
9954194ae0 particle boards: Make default antenna selection configurable
The setter function approach makes this switchable at runtime (antenna
diversity?).

Documentation is added both to the board introduction page and the
individual pins and functions.
2019-11-18 13:54:39 +01:00
chrysn
951f7dec2c particle-*: Configure antenna switch
The particle-{argon,boron,xenon} all have a uFL connector and a PCB
antenna for 2.4GHz radio, connected by a SKY13351-378LF switch
configured by a VCTL[12] pin pair.

This sets the default configuration to use the PCB antenna, as driving
an unconnected antenna will deteriorate radio performance.
2019-11-18 13:54:22 +01:00
Kevin "Tristate Tom" Weiss
be39169bd4
Merge pull request #11108 from gschorcht/cpu/esp8266/esp-idf/pr
cpu/esp8266: complete reimplementation based on ESP8266 RTOS SDK
2019-11-18 09:34:49 +01:00
Benjamin Valentin
60686c96dc boards/common: clean up msba2 common files
The 'msba2' common files have accumulated many empty files are files that
do nothing.
This makes reasoning about the boards needlessly difficult.

Trim down on `common/msba2/` so that it now only contains the setup for the
UART/bootloader based flashing.

This should eventuelly be moved to `makefiles/tools/`
2019-11-16 11:57:15 +01:00
65e0247a9b
boards/arduino-atmega: add mapping for Arduino PWM pins 2019-11-15 17:54:30 +01:00
d03c982ddb
boards/arduino-mkr: add mapping for Arduino PWM pins 2019-11-15 17:51:45 +01:00
Gunar Schorcht
555a7040db cpu/esp8266: reset tool to allow automatic tests 2019-11-14 13:58:48 +01:00
Gunar Schorcht
e5b7645b0b boards/esp32: changes for RTOS SDK 2019-11-14 13:58:25 +01:00
Gunar Schorcht
7d9a3a79a2 boards/esp8266: changes for RTOS SDK 2019-11-14 13:58:25 +01:00
Hauke Petersen
4bf14822cb nrf5x: move nimble_ble feat. to cpu 2019-11-13 13:43:55 +01:00
Marian Buschsieweke
c510ad858c
boards/common/blxxxpill: Use STM32 programmer conf 2019-11-12 19:48:05 +01:00
Marian Buschsieweke
92284bed88
boards/common/nucleo: Use STM32 programmer config 2019-11-12 19:43:42 +01:00
Benjamin Valentin
0ea2cbf1eb boards: remove RTT_NUMOF/RTC_NUMOF
Those macros are defined but never used.
2019-11-08 14:20:33 +01:00
Francisco Molina
1ae0873769 boards: change PORT used for flash/debug/reset to PROG_DEV 2019-10-24 12:58:12 +02:00
Francisco Molina
755b4d97da boards/(openmote-b/remote): migrate PORT_BSL to PROG_DEV
- Move serial.inc.mk in remote and openmote-b Makefile.include before
  PROG_DEV to avoid repeating OS logic check
- Add deprecation warning for PORT_BSL
2019-10-24 12:57:46 +02:00
f84cdc4044
boards/sodaq: restore accidentally removed arduino feature 2019-10-22 19:06:16 +02:00
26c0b812d2
Merge pull request #12531 from fjmolinas/pr_nrf52_nimble
common/nrf52840/Makefile.dep: nrf802154 if no nimble_%
2019-10-22 15:14:54 +02:00
benpicco
d49c48368a
Merge pull request #12438 from aabadie/pr/boards/sodaq_factorize
boards/sodaq: factorize common code
2019-10-21 17:04:20 +02:00
Francisco Molina
c04a2cf3a3 common/nrf52840/Makefile.dep: nrf802154 if no nimble_% 2019-10-21 16:52:18 +02:00
benpicco
ca7e82c312
Merge pull request #11090 from maribu/atmega328p
boards: Added standalone ATmega328p
2019-10-21 13:38:58 +02:00
4b06a11b93
Merge pull request #12470 from aabadie/pr/boards/kw41z_openocd
boards/frdm: update openocd version requirements
2019-10-21 13:30:54 +02:00
Marian Buschsieweke
f9c2f26dd0
boards: Added standalone ATmega328p 2019-10-21 12:54:46 +02:00
f9631953cb
boards: add common sodaq module 2019-10-21 08:33:11 +02:00
14567ea973
Merge pull request #12494 from fjmolinas/pr_remove_OS
Makefile/include: use ony one call to `uname`
2019-10-18 15:03:10 +02:00
benpicco
29e5c3af67
Merge pull request #12490 from aabadie/pr/boards/efm32_common_periph_gpio
boards/efm32: move provided gpio features at cpu level
2019-10-18 11:19:33 +02:00
benpicco
34ee36d9e4
Merge pull request #12491 from aabadie/pr/boards/atmega_common_periph_gpio
boards/atmega: move provided gpio features at cpu level
2019-10-18 11:19:15 +02:00
aed0cfb1d8
boards/efm32: remove useless provided gpio features
These features are provided at CPU level
2019-10-18 09:33:54 +02:00
Francisco Molina
c010f59b8c Makefile.include: remove repeated OS declaration
- OS := $(shell uname) is already declared in `Makefile.include`
  re-declaring it means it will be re-evalauted multiple times
  uselessly.
2019-10-18 08:46:51 +02:00
Francisco
01779508d6
Merge pull request #12394 from aabadie/pr/make/iotlab_support_fix
make/testbed-support: fix error with FLASHFILE not defined
2019-10-17 23:21:12 +02:00
27f2a19f72
boards/atmega: remove useless provided gpio features
These features are provided at CPU level
2019-10-17 21:42:49 +02:00
Benjamin Valentin
7d78e32b15 cpu/atmega128rfa1: ATmega128rfa1 MCU support 2019-10-17 19:20:31 +02:00
Benjamin Valentin
6617c5c768 cpu/atmega_common: provide dummy implementation for led_init() 2019-10-17 19:20:31 +02:00
4c794c1122
boards/frdm: document more the OpenOCD version requirement
Add the need to have a built from source version of OpenOCD for kw41z and give the url of the commit adding the change in OpenOCD
2019-10-16 14:53:42 +02:00
f81baf2bf6
boards/frdm: remove OpenOCD < 0.10 specific code
OpenOCD 0.10 is out from early 2017, all stable Linux distros provide this version now.
2019-10-16 14:51:53 +02:00
ffc4c84faa
dist/testbed-support: boards: remove useless IOTLAB_FLASHFILE 2019-10-16 11:44:59 +02:00
66b57f2a51 boards/stm32: add 54MHz and 108MHz divtable entries 2019-10-13 20:27:37 +02:00
Gaëtan Harter
7ac30e471c
boards/slwstk6000b-*: move CPU_MODEL definition to Makefile.features
This is still currently a hack to hardcode it as the value can be deduced
from the `BOARD_MODULE` daughter board name.

But it requires more cleanup and could come in a separate step.

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-10-09 18:51:57 +02:00
Gaëtan Harter
ec93d4c1c4
boards/common/arduino-atmega: remove special case for jiminy-mega256rfr2
The board is deprecated, no need to ignore this board anymore here.

Having the `arduino` and `periph_pwm` features is now required for all
boards using 'arduino-atmega' (as it was except for that board).

If this should change in the future, it should be defined either in each
arduino board, in another board common, or per CPU_MODEL.
2019-10-08 18:37:32 +02:00
Gaëtan Harter
ddf3874995
boards/slwstk6000b: migrate to use a common/slwstk6000b
Migrate the board to be implemented with a common/slwstk6000b.

It is a pre step for splitting the board for each "BOARD_MODULE".
2019-10-08 15:36:09 +02:00
86360f73d4
boards/nucleo32: fix arduino pinmap for nucleo-l432kc 2019-10-07 14:30:36 +02:00
Kees Bakker
04c84ed158 cpu/sam0: refactor ADC_0 into plain ADC
This change is for all boards with a sam0 cpu. This cpu just has one ADC.
It is unnecessary to have defines with ADC_0_ prefix as if multiple ADCs
are possible.

Some defines were not used, such as ADC_0_EN, ADC_0_CHANNELS,
ADC_MAX_CHANNELS, ADC_0_CLK_SOURCE, ADC_0_CHANNELS

Change all ADC_0_ prefixes to ADC_
2019-10-03 20:45:44 +02:00
49967b2c4a
boards/avr/dist: setsid can be set with env variable 2019-10-03 12:43:49 +02:00
f7763438a9
boards/common/arduino-mkr: use common LED0_NAME definition 2019-10-03 09:24:20 +02:00
7bfe086e7c
boards/common/arduino-mkr: split periph_conf file
- periph_conf_common.h contains peripherals configuration common to all mkr boards
- periph_conf.h is specific to a subset of mkr boards (mkr1000 and mkrzero)
2019-10-03 09:24:20 +02:00
5c9e5ec7df
boards/nrf52832: manage features in common directory 2019-10-02 12:54:30 +02:00
a2308b65a2
boards/nrf52: factorize even more dependencies 2019-10-02 12:54:30 +02:00
7c4511efff
boards/nrf52832: use common directory for features 2019-10-02 12:54:30 +02:00
86d330aa95
boards/nrf52: cleanup global dependency file 2019-10-02 12:54:30 +02:00
341a82dffe
boards/nrf52840*: use shared nrf52840 dependency file 2019-10-02 12:54:29 +02:00
0d62accfef
boards/common/nrf52: add shared dependency files for nrf52 2019-10-02 12:54:29 +02:00
Bas Stottelaar
962b0efaaf boards+efm32: add support for riotboot 2019-10-01 18:08:27 +02:00
Gaëtan Harter
fc9f2a0f65
boards: remove duplicate include 'RIOTCPU/cpu/Makefile.features'
When 'CPU' is defined, the CPU Makefile.features is included by the
build system in the main Makefile.features.
No need to do it manually anymore.
2019-09-30 12:38:01 +02:00
243b02d8e0
boards/blxxxpill: move CPU/CPU_MODEL to Makefile.features 2019-09-29 18:51:41 +02:00
Marian Buschsieweke
09d1dcf6b3
boards: Split off 128KiB version of bl*pill
- Created new `bluepill-128kib` as 128KiB version of the `bluepill`
- Created new `blackpill-128kib` as 128KiB version of the `blackpill`
- Updated `openocd.cfg` to allow flashing 128KiB of ROM
2019-09-29 16:42:44 +02:00
Hauke Petersen
982d730adf cpu/nrf5x: decelare radio_nrfble feat for all nrfs 2019-09-27 10:00:06 +02:00
Hauke Petersen
df15033148 ble/skald: cleanup dependency to nrfble 2019-09-26 22:15:15 +02:00
benpicco
3833e42426
Merge pull request #12092 from cladmi/pr/cpu_model/minor_changes_included
boards with side-effect: move CPU/CPU_MODEL definition to Makefile.features
2019-09-24 18:36:58 +02:00
cladmi
5f1a61ed72
boards/common/nrf52: move CPU/CPU_MODEL definiton 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-09-24 17:29:37 +02:00
Gaëtan Harter
49d61bbe6e
boards/common/esp: move CPU/CPU_MODEL definiton 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-09-24 17:29:37 +02:00
Gaëtan Harter
8cebed6792
boards/common/esp: harmonize CPU/CPU_MODEL to other boards
* CPU files should already have 'CPU' defined by the board.
* Do not conditionally define CPU as it is not needed.

This is part of cleanup prior to moving the CPU/CPU_MODEL to
Makefile.features.
2019-09-24 17:29:37 +02:00
Vincent Dupont
1a44d327cb
Merge pull request #11989 from gschorcht/cpu/esp32/periph-can
cpu/esp32: reimplementation of module esp_can as module periph can
2019-09-23 16:52:05 +02:00
Francisco
2346f35bc8
Merge pull request #12289 from cladmi/pr/frdm/minor/remove_export_openocd_extra_init
boards/frdm: remove exporting unset OPENOCD_EXTRA_INIT
2019-09-23 14:28:06 +02:00
Francisco
8467dba680
Merge pull request #12158 from aabadie/pr/boards/stm32_connect_assert_srst
boards/stm32: generalize use of connect_assert_srst for flashing
2019-09-23 14:02:39 +02:00
Gaëtan Harter
0724dc71a7
boards/frdm: remove exporting unset OPENOCD_EXTRA_INIT
The default value in `openocd.sh` is being empty, so no use for exporting it.
2019-09-23 12:10:09 +02:00
Gunar Schorcht
e0f1ab0a16 cpu/esp32: module esp_can removed
CAN controller driver for ESP32 is no longer realized as separate module.
2019-09-20 19:35:02 +02:00
Gaëtan Harter
323050f0e3
boards/frdm: fix flashing from invalid state
When flashing some applications the flasher sometimes gets stuck which
prevents flashing after.
It may be from a specific firmware or operation but do not have one yet.
Connect with reset asserted fix flashing from this state.
2019-09-17 14:02:55 +02:00
Benjamin Valentin
e3b0874305 cpu/lpc2387: clean up the platform
- move clock setup from boards/ to cpu/
 - reduce code duplication
2019-09-16 13:08:56 +02:00
23c1831473
Merge pull request #11470 from cladmi/pr/nrf52/opencd/softdevice
boards/common/nrf52: add openocd support for 'nordic_softdevice_ble'
2019-09-11 15:33:08 +02:00
Marian Buschsieweke
7092566f1f
cpu/arm7_common: Moved compiler flags here
- Moved compiler & linker flags from boards/common/msba2 to cpu/arm7_common
- Moved dependency to newlib nano to cpu/arm7_common
- Moved config to link in cpu/startup.o to cpu/arm7_common
2019-09-11 01:02:41 +02:00
Juan I Carrano
c50d8fada1
Merge pull request #11646 from cladmi/pr/esp/programmer_update
esp*: updates to the programmer configuration
2019-09-10 17:58:20 +02:00
Gaëtan Harter
fe0b829d5b
boards/common/nrf52: add openocd support for 'nordic_softdevice_ble'
Enable the handling of flashing `softdevice.hex` when flashing the firmware
for openocd.

However, for flashing, only the `hexfile` and `binfile` can currently be used.

The `elffile` is generated with local pages aligned to `0x10000` which makes
the program starting at `0x1f000` be flashed from `0x10000` with padding bytes
even if the `.text` section is indeed at `0x1f000`:

    readelf --sections bin/nrf52dk/gnrc_networking.elf

      ...
      [ 1] .text         PROGBITS    0001f000 00f000 00f698 00  AX  0   0 16
      ...

    readelf --segments  bin/nrf52dk/gnrc_networking.elf

      ...
      LOAD           0x000000 0x00010000 0x00010000 0x1e6a0 0x1e6a0 R E 0x10000
      ...

The padding bytes would go through `verify_image` in `openocd` so be expected
to not be overwritten but are by `softdevice.hex`

Using --nmagic at link time removes the local page alignement but would
need dedicated testing.
2019-09-10 16:02:04 +02:00
3059e03c7c
Merge pull request #11620 from cladmi/pr/softdevice/ensure_memory_value
pkg/nordic_softdevice_ble: reset memory in the .hex file
2019-09-10 14:38:33 +02:00
b80a41f28f
Merge pull request #12153 from cladmi/pr/iotlab/use_openocd_reset_use_connect_assert_srst
boards/iotlab: rely on OPENOCD_RESET_USE_CONNECT_ASSERT_SRST
2019-09-10 08:41:08 +02:00
benpicco
c082ada36f
Merge pull request #12141 from aabadie/pr/boards/stm32_common_i2c
boards/stm32: introduce and use shared i2c config with I2C1 on PB6/PB7
2019-09-09 14:26:59 +02:00
Kevin "Tristate Tom" Weiss
a138f1466f
Merge pull request #11975 from fjmolinas/pr_nucleof103_xtimer_backoff
boards/common/nucleo: increase XTIMER_BACKOFF for STM32F103
2019-09-09 11:15:37 +02:00
Francisco
6d800ed85a
Merge pull request #11366 from maribu/early_stdio_atmega
cpu/atmega_common: Moved atmega_stdio_init() to cpu_init()
2019-09-09 10:22:53 +03:00
281273f362
boards/stm32: remove use of connect_assert_srst for flashing stm32l0 2019-09-02 21:46:15 +02:00
fc923baa42
boards/nucleo: generalize use of connect_assert_srst for flashing
This allows to flash/reset even over a crashed or sleeping firmware
2019-09-02 21:44:58 +02:00
Gaëtan Harter
c1b32fe1f3
boards/iotlab: rely on OPENOCD_RESET_USE_CONNECT_ASSERT_SRST
Use the new OPENOCD_RESET_USE_CONNECT_ASSERT_SRST to configure
'reset_config connect_assert_srst' when flashing and resetting only.

This removes the need for a special debug configuration and should allow
connecting to a running target again.
2019-09-02 16:12:55 +02:00
df18dba378
boards/stm32: introduce shared i2c configuration
This configuration corresponds to I2C1 connected to PB6 (SCL) and PB7 (SDA)
2019-09-02 08:17:21 +02:00
Kevin "Tristate Tom" Weiss
969e3b3e95
Merge pull request #12098 from cladmi/pr/export/remove_local_export_compilation_variables
make: do not locally export compilation variables
2019-08-29 14:32:22 +02:00
Gaëtan Harter
ef542ef92c
boards: do not locally export compilation variables
These are already exported by `makefiles/vars.inc.mk`.
It is a prerequisite to allow handling compilation without global exports.
2019-08-29 10:35:44 +02:00
Hauke Petersen
d127d18384 boards/nrf52: set NimBLE for gnrc_netdev_default 2019-08-28 16:49:20 +02:00
Gaëtan Harter
367aa841a2
boards/pyterm: change TERMFLAGS to PYTERMFLAGS
The boards are using `pyterm` specific options that do not work on any
other `RIOT_TERMINAL`. It is a shame this is required but at least do
not pass arbitrary arguments to the other RIOT_TERMINAL.
So use the new PYTERMFLAGS for this.
2019-08-27 14:25:02 +02:00
Gaëtan Harter
42d658419f
boards/common/msba2: remove duplicate PORT
PORT is already given in pyterm TERMFLAGS.
2019-08-27 12:06:10 +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
cladmi
8305390a05
boards/common: 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
Gaëtan Harter
f3e72009e8
pkg/nordic_softdevice_ble: reset memory in the .hex file
softdevice needs the memory at 0x2000 to be initialized to 0xffffffff
according to #5893 and testing. However, the addresses [0x8bc, 0x3000[ are not
set in softdevice.hex.

So use a modified hex file with all the memory set to 0xff as it is the rom
reset value anyway.

This change updates the `.hex` file instead on relying on erasing the
memory.
2019-08-12 15:54:45 +02:00
Gaëtan Harter
e70efb769c
murdock: nordic_softdevice_ble: softdevice.hex is a test input
When running tests using 'nordic_softdevice_ble', the 'softdevice.hex'
file must also be taken into account for the test hashing and be
uploaded to the separated murdock testing boards.

When listed as dependency from `test-input-hash` the file must have a
target, which he has not. The file is implicitly created when compiling
`ELFFILE` so declare it as order only dependency.
In practice `BASELIBS` could be enough or even `pkg-build-softdevice`
but I do not want to be depend that much on internals there.
2019-08-12 14:35:58 +02:00
430d80729a
boards/nrf51: provide ble_nimble feature 2019-08-07 09:53:55 +02:00
Hauke Petersen
c9e5d2ccc4
boards/common/nrf51: add alternative xtimer mapping 2019-08-07 09:53:55 +02:00
32f54178ea
Merge pull request #11974 from fjmolinas/pr_xtimer_shoot_early
boards: remove unused XTIMER_SHOOT_EARLY defines
2019-08-07 09:29:43 +02:00
Francisco Molina
ed3a716ffd boards/common/nucleo: increase XTIMER_BACKOFF for STM32F1 boards
- Boards using stm32f103xx use the same custom config for xtimer
  which relies on the same underlying hardware timers that hang
  when sleeping for <20us so spin when approaching that limit.
2019-08-07 09:07:24 +02:00
Francisco Molina
294aff2ef1 boards: remove unused XTIMER_SHOOT_EARLY defines 2019-08-07 08:49:14 +02:00
Benjamin Valentin
8af04cd939 boards: make use of ARRAY_SIZE macro 2019-08-06 19:43:54 +02:00
Francisco
b8cd3c0724
Merge pull request #11809 from aabadie/pr/boards/stm32_timer_conf_common
boards/stm32: introduce common timer configurations and use them where possible
2019-08-06 17:07:22 +02:00
Martine Lenders
d13d49d11f
Merge pull request #11814 from aabadie/pr/doc/remove_duplicate_group_define
doc: remove duplicate definitions of Doxygen groups
2019-08-06 09:50:59 +02:00
Kevin "Bear Puncher" Weiss
9821fa8043
Merge pull request #11959 from maribu/bluepill
boards/{blue,black}pill: Fixed flashing
2019-08-05 17:34:56 +02:00
90e136405e
boards/common/esp: deduplicate common esp boards group definitions 2019-08-05 16:57:36 +02:00
31c52041e6
Merge pull request #11939 from fjmolinas/pr_add_nrf52_i2c_cfg
boards/common/nrf52: add common nrf52 i2c config
2019-08-05 16:39:33 +02:00
6b5a977f08
boards/stm32: introduce common timer config with TIM5 2019-08-05 15:00:12 +02:00
94a9e2c3de
boards/stm32: introduce common timer config with TIM2 2019-08-05 15:00:11 +02:00
Marian Buschsieweke
5da1dbc4a6
boards/{blue,black}pill: Fixed flashing
A new blue pill variant with only 32 KiB of flash (secretly coming with
64 KiB flash) instead of the use 64 KiB flash (secretly coming with 128 KiB)
is not compatible with `make flash`. This commit changes the OpenOCD config
so that both variants can be flashed.
2019-08-05 13:00:44 +02:00
Robert Hartung
7bca1cc5d5 cpu/atmega_common: implements pseudomodule-based pin change interrupts 2019-08-01 09:23:04 +02:00
Francisco Molina
8a4b4f9005 boards: use of default_i2c_cfg for nrf52 based boards 2019-07-31 10:38:34 +02:00
Francisco Molina
618ca3abcc boards/common/nrf52: add default i2c config 2019-07-31 10:38:34 +02:00
7044c95ebf
boards/nucleo-144: fix l4r5zi LED0 pin 2019-07-08 09:09:48 +02:00
0791174c1f
Merge pull request #11769 from haukepetersen/opt_softdevice_feature
ble/softdevice: add ble_nordic_softdevice feature
2019-07-04 11:23:30 +02:00
Hauke Petersen
03153acb1a ble/softdevice: add ble_nordic_softdevice feature
The softdevice is only verified to be working on nrf52832-based
boards. This feature prevents the softdevice from being build for
other, similar targets (e.g. nrf52840-based boards).
2019-07-04 09:22:46 +02:00
cladmi
ec312492ee
boards/remote: use common/remote/Makefile.features
Introduce and use a common/remote/Makefile.features.
The boards were already using the common `Makefile.include` and
`Makefile.dep`.

This makes 'include $(RIOTCPU)/cc2538/Makefile.features' be done in
the same module where 'CPU' is defined.

Preparation for moving 'CPU' definition to Makefile.features.
2019-07-01 18:09:57 +02:00
cladmi
5b00d3a942
boards/msba2-based: use common/msba2/Makefile.features
Introduce and use a common/msba2/Makefile.features.
The boards were already using the common `Makefile.include` and
`Makefile.dep`.

This makes 'include $(RIOTCPU)/lpc2387/Makefile.features' be done in
the same module where 'CPU' is defined.

Preparation for moving 'CPU' definition to Makefile.features.
2019-07-01 18:09:57 +02:00
Gaëtan Harter
6538d71ed0
boards/mspdebug: use FLASHFILE for boards using mspdebug
Update to use FLASHFILE as file to be flashed on the board.
IOTLAB_FLASHFILE also uses 'FLASHFILE' (and not the default 'ELFFILE').
2019-06-25 12:43:22 +02:00
Gaëtan Harter
201c283a8f
boards/dfu-util: use FLASHFILE for boards using dfu-util
Update to use FLASHFILE as file to be flashed on the board.
2019-06-17 18:10:38 +02:00
Gaëtan Harter
a379d95695
Merge pull request #11670 from aabadie/pr/boards/remove_features_mcu_group
boards/*: remove unused FEATURES_MCU_GROUP variable
2019-06-17 12:41:36 +02:00
Gaëtan Harter
4a085270ea
boards/esp*: use PORT in RESET_FLAGS
This allows selecting the correct device when multiple boards are connected.
2019-06-14 15:58:36 +02:00
Gaëtan Harter
1d8de6b24d
boards/esp*: update RESET and RESET_FLAGS
Update to use RESET and RESET_FLAGS variables set conditionally.
2019-06-14 15:58:36 +02:00
Marian Buschsieweke
3a92b79eea
boards/common/nrf52xxxdk: Split off SPI config
Moved SPI config from boards/common/nrf52xxxdk/include/periph_config.h to
boards/common/nrf52/include/cfg_spi_default.h. This allows all nRF52 based
boards to use this SPI config if applicable and also allows nRF52*-DK boards
to use custom SPI configs, if needed.
2019-06-14 12:02:29 +02:00
Marian Buschsieweke
d925540528
boards/common/nrf52xxxdk: Use GPIO_PIN in SPI conf 2019-06-14 12:02:29 +02:00
a68f78bb10
boards/*: remove unused FEATURES_MCU_GROUP variable 2019-06-14 11:32:15 +02:00
40577affaa
boards/nrf52: replace radio_ble provided feature by ble_nimble 2019-06-12 17:41:31 +02:00
e745078f76
particle-mesh: add usbdev feature 2019-06-11 14:17:07 +02:00
Gaëtan Harter
ec2278fff7
Merge pull request #11618 from aabadie/pr/boards/kw41z-cleanup
boards/kw41z: phynode-kw41z now also use the kw41z common Makefile.include
2019-06-11 11:37:46 +02:00
Gaëtan Harter
632da8ae0a
Merge pull request #11562 from fjmolinas/pr_kinetis_riotboot_frdm_kw41z
boards/frdm-kw41z-k64f: add riotboot
2019-06-07 19:49:08 +02:00
Gaëtan Harter
b9c15c3084
Merge pull request #11649 from smlng/pr/make/reset
make: allow to override RESET and RESET_FLAGS for all boards and tools
2019-06-07 12:09:41 +02:00
3a4dff9ddc
common/arduino-mkr: add usbdev feature 2019-06-06 17:04:35 +02:00
Sebastian Meiling
458b178d46 make: allow override of RESET for boards/common/stm32f103c8 2019-06-06 16:27:15 +02:00
Sebastian Meiling
3482bfaa2a make: allow override of RESET for boards/common/remote 2019-06-06 16:27:08 +02:00
Sebastian Meiling
8766f8bf28 make: allow override of RESET for boards/common/esp8266 2019-06-06 16:26:58 +02:00
Sebastian Meiling
44f8314a04 make: allow override of RESET for boards/common/esp32 2019-06-06 16:26:51 +02:00
francisco
5db21a4cc5 boards/kw41z: add riotboot support 2019-06-06 15:11:45 +02:00
e53b117563
Merge pull request #11625 from haukepetersen/opt_nrf51_timerrttcfg
boards/nrf51-based: split shared timer/rtt config
2019-06-05 12:00:27 +02:00
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