Leandro Lanzieri
0dd776a9e6
core/kernel_defines: Introduce 'IS_ACTIVE' macro.
...
IS_ACTIVE allows to evaluate macro definitions in non-preprocessor
expressions. It takes a macro that may be defined to 1 or not defined at
all and expands to 1 or 0 respectively.
2019-11-11 12:53:03 +01:00
benpicco
e4f1b67612
Merge pull request #12617 from benpicco/atmega_cpu_id
...
atmega_common: provide CPU ID for every device
2019-11-08 17:36:09 +01:00
Benjamin Valentin
5b6d56efd5
atmega_common: provide CPU ID for every device
...
ATmega128RFA1/ATmega256RFR2 do not have a unique CPU ID.
Use the RC oscillator callibration byte as an impromptu CPU ID and rely
on bootlader constants present on all ATmega families for the remaining
bytes.
This way we can provide a faux CPU ID on all ATmega MCUs and typical hobbyists
with no access to JTAG adapters or high voltage programmer capable of writing
the user signature have a good chance that the CPU IDs of their device do not collide.
2019-11-08 16:58:03 +01:00
7ee8c059c9
Merge pull request #12672 from maribu/lpc2387-cleanup
...
cpu/lpc2387: Add MCU features to Makefile.features
2019-11-08 15:27:50 +01:00
Gunar Schorcht
c247f4e544
Merge pull request #12660 from maribu/coding_rules
...
Added CODING_CONVENTIONS_C++.md
2019-11-08 14:13:03 +01:00
Marian Buschsieweke
9a0657af9b
boards: Refactored avsextrem & msba2
...
- Removed features already provided at CPU level
- Sorted features alphabetically
2019-11-08 14:02:42 +01:00
Marian Buschsieweke
72714aefea
cpu/lpc2387: Added MCU provided features
...
Added features provided by the LPC2387 MCU to cpu/lpc2387/Makefile.features
2019-11-08 14:02:35 +01:00
507a7b9cb7
Merge pull request #12670 from benpicco/driver_hd44780-revert
...
Revert "drivers/hd44780: add short delay after each character"
2019-11-08 13:56:21 +01:00
Marian Buschsieweke
80a23ea1f3
CODING_CONVENTIONS_C++.md: Fixed typos and links
...
- Fixed broken links
- Fixed typos
- Reformatted markdown to better comply with the 80 chars line limit
2019-11-08 10:36:27 +01:00
Benjamin Valentin
d213bbc6f5
Revert "drivers/hd44780: add short delay after each character"
...
This reverts commit cf01c743a8
.
Adding an unexplained delay seemed wrong in the first place, but it fixed
the display on the MCB2388.
Turns out the display was erroneously operating in 8-bit mode due to the
uninitialized flag register.
Why the delay helped here I don't know.
But with #12634 fixing this, this hack is not needed anymore.
2019-11-07 22:40:01 +01:00
Leandro Lanzieri
66d5e4d05f
Merge pull request #12637 from benpicco/lpc2387-uart
...
cpu/lpc2387: update the UART driver
2019-11-07 22:21:50 +01:00
Benjamin Valentin
9e68556393
boards/msba2: configure remaining UARTs
...
All UARTs on the MSBA2 are exposed through pin headers on the board.
Configure them according to the data sheet.
2019-11-07 21:55:25 +01:00
Benjamin Valentin
90aef98ca0
boards/avsextrem: adapt to updated UART driver
2019-11-07 21:55:25 +01:00
Benjamin Valentin
3e053d1db9
boards/msba2: adapt to updated UART driver
2019-11-07 21:55:25 +01:00
Benjamin Valentin
c544c41804
cpu/lpc2387: fix indent
2019-11-07 21:55:24 +01:00
Benjamin Valentin
d6a94d4e18
cpu/lpc2387: uart driver overhaul
...
This converts the hard-coded UART driver to the new ways.
- allow the board to configure the RX & TX pins
- allow for more than one UART
- allow setting the baudrate
- implement poweron()/poweroff() functions
2019-11-07 21:55:24 +01:00
benpicco
9ca9f07c04
Merge pull request #12592 from benpicco/luid-fix
...
sys/luid: add luid_get_eui48() / luid_get_eui64()
2019-11-07 18:34:37 +01:00
Cenk Gündoğan
635ec9fd67
Merge pull request #12666 from leandrolanzieri/pr/examples/dtls_interfaces
...
examples/dtls-*: Use passed interface if present
2019-11-07 18:25:42 +01:00
Leandro Lanzieri
c96b85da02
examples/dtls-echo: Use passed interface if present
2019-11-07 17:34:32 +01:00
Gunar Schorcht
0a852805fd
Merge pull request #12118 from maribu/arduino-spi
...
sys/arduino: Added SPI interface
2019-11-07 17:33:29 +01:00
Leandro Lanzieri
85e16cf55a
examples/dtls-wolfss: Use passed inerface if present
2019-11-07 17:29:30 +01:00
benpicco
c1edee074a
Merge pull request #12661 from benpicco/xtimer_fix_doc
...
sys/xtimer: fix generation of documentation
2019-11-07 14:27:58 +01:00
Martine Lenders
a132b2b413
Merge pull request #12220 from miri64/gnrc_sixlowpan_frag/feat/srf-config
...
gnrc_sixlowpan_frag: initial import of SRF parameters
2019-11-07 14:13:15 +01:00
Marian Buschsieweke
0168ea807d
Added CODING_CONVENTIONS_C++.md
...
Copied 8d2a6c8a0c
to CODING_CONVENTIONS_C++.md without any change.
2019-11-07 13:48:04 +01:00
Benjamin Valentin
6add264f6a
sys/xtimer: fix generation of documentation
...
cd1ce6b98d
accidentally disabled generating documentation for
`xtimer_msg_*()` functions.
Always define those functions when building the documentation.
2019-11-07 13:34:27 +01:00
Marian Buschsieweke
8a53e072f9
sys/arduino/doc: Removed SPI from ToDo
...
The SPI interface has been added, so it should no longer be listed on the ToDo
list.
2019-11-07 13:04:47 +01:00
Marian Buschsieweke
83a955fa49
sys/arduino/doc: Removed I2C from ToDo
...
The I2C (Wire) interface has been added, so it should no longer be listed on the
ToDo list.
2019-11-07 13:04:47 +01:00
Marian Buschsieweke
c449467125
sys/arduino: Enable C++11 support
...
Arduino is always enabling C++11 support, so sketches and libs are depending on
it. Every C++ compiler has been enabling C++11 by default for some years now.
Still, Ubuntu's avr-gcc is so **horrible** out of date, that it is not enabled
there. As a simple work around, -std=c++11 is now passed to the C++ compiler if
Arduino is used.
2019-11-07 13:04:47 +01:00
Marian Buschsieweke
cc50da690b
sys/arduino: Added SPI interface
...
Added an Arduino compatible SPI API on top of RIOT's SPI API.
2019-11-07 13:04:46 +01:00
7e42f6e4d5
Merge pull request #12659 from aabadie/pr/cpu/atmega_common_wdt
...
cpu/atmega_common: add implementation for watchdog
2019-11-07 12:32:46 +01:00
Martine S. Lenders
da74936020
gnrc_sixlowpan_frag: initial import of SRF parameters
...
This imports the protocol parameters for Selective Fragment Recovery
(SFR). For the values I took some educated guesses based on my
experience with previous experimentation with fragment forwarding.
The defines currently are based on [draft v7].
[draft v7]: https://tools.ietf.org/html/draft-ietf-6lo-fragment-recovery-07#section-7.1
fixup! gnrc_sixlowpan_frag: initial import of SRF parameters
2019-11-07 12:16:30 +01:00
José Alamos
20ea18637f
Merge pull request #10485 from miri64/gnrc_netif/enh/default-init
...
gnrc_netif: assume `netif->ops->init()` to be set to at least a default
2019-11-07 11:41:05 +01:00
d22404b8b7
cpu/atmega_common: add implementation for watchdog
2019-11-07 11:35:29 +01:00
benpicco
9f0a29dfc3
Merge pull request #12656 from basilfx/feature/efm32_gecko_sdk_26
...
pkg/geck_sdk: update to version 2.6
2019-11-07 11:22:44 +01:00
Martine Lenders
8eee53b7bd
tests/gnrc_ipv6_ext_frag: add bl*pill to BOARD_INSUFFICIENT_MEMORY
2019-11-07 11:04:58 +01:00
Martine Lenders
6493a9e69f
gnrc_netif: assume netif->ops->init()
to be set
2019-11-07 11:00:36 +01:00
Martine Lenders
14a2f6bc18
gnrc: use gnrc_netif_default_init() for all implementations
2019-11-07 11:00:36 +01:00
Martine Lenders
a1d402e015
Merge pull request #12559 from miri64/gnrc_sixlowpan_frag/enh/factor-out-frag-buf
...
gnrc_sixlowpan_frag: factor-out and rename fragmentation buffer
2019-11-07 09:47:46 +01:00
Bas Stottelaar
d0ff9530d3
cpu/efm32: update vendor code
2019-11-06 23:25:53 +01:00
Bas Stottelaar
f5ddc372e7
pkg/gecko_sdk: update to version 2.6
2019-11-06 23:11:39 +01:00
Martine Lenders
09b5db28f1
gnrc_netif: expose common init function as default
2019-11-06 18:45:16 +01:00
Martine Lenders
4b82a56c89
gnrc_netif: introduce common init function
2019-11-06 18:45:15 +01:00
08e1cf2d8e
Merge pull request #12634 from aabadie/pr/drivers/hd44780_fix_sam0
...
drivers/hd44780: fix potential hardfault during initialization
2019-11-06 17:18:16 +01:00
62d299459f
drivers/hd44780: optimize detection of 4 and 8 bit modes
...
The driver can only be used with either 4 or 8 bit modes. Checking if the 5th pin is set in the configuration is enough the determine if 8bit mode should be used or not
2019-11-06 16:27:39 +01:00
6c56972dba
drivers/include/hd44780: avoid use of magic numbers
2019-11-06 16:25:27 +01:00
c7fac09d42
drivers/hd44780: fix potential hardfault on initialization
...
Co-authored-by Benjamin Valentin <benpicco@googlemail.com>
2019-11-06 16:14:39 +01:00
benpicco
8c181d8ecd
Merge pull request #12653 from benpicco/sam0-fix-opencd-debug
...
makefiles/sam0: fix debugging with edbg
2019-11-06 16:04:50 +01:00
Benjamin Valentin
756cab9385
makefiles/sam0: fix debugging with edbg
...
OpenOCD should *always* be included for debugging if JLinkExe is not used.
fixes #12652
2019-11-06 15:43:15 +01:00
Marian Buschsieweke
cd298b9c4e
Merge pull request #12649 from aabadie/pr/boards/atmega256rfr2-xpro_fixes
...
boards/atmega256rfr2-xpro: update clock configuration/stdio baudrate + a test timeout
2019-11-06 15:21:32 +01:00
bd39ce3179
tests/periph_gpio: increase timeout for automatic test
...
periph_gpio requires more time to complete on slow platforms, like AVR
2019-11-06 12:46:28 +01:00