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

21278 Commits

Author SHA1 Message Date
Francisco Acosta
d208cba464 boards: leverage avrdude.inc.mk for atmega based boards.
Additionally, it removes unnecessary exports and cleans up
waspmote-pro toolchain variables (not needed) which are taken
from atmega_common.
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
Francisco Acosta
2bdcdddd76 cpu/atmega*: make use of common atmega.inc.mk and remove redundancies
Everything is now defined in atmega.inc.mk, following the common
RIOT-like reusability of rules and variables (e.g. cortexm.inc.mk).
2019-02-05 17:12:03 +01:00
Francisco Acosta
6bbf372d7d makefiles: factor out avrdude configuration
Allows to use avrdude as a flashing tool in any context
(e.g. not dependent on arduino or atmega) though it only
works (AFAIK) on atmega, but I thought it's better to
have it here as we have other flashing tools.
2019-02-05 17:12:02 +01:00
Francisco Acosta
c897773daf makefiles: add atmega arch generic makefile 2019-02-05 17:12:01 +01:00
5a35e6e109
Merge pull request #10825 from maribu/fe310_periph_init
cpu/fe310: Add call to periph_init()
2019-02-05 13:12:45 +01:00
Martine Lenders
7220b66708
Merge pull request #10936 from miri64/sam0_common/fix/check-adc-numof
sam0_common: check ADC_NUMOF on adc_init()
2019-02-04 16:41:41 +01:00
Kees Bakker
458c95a854
Merge pull request #10914 from keestux/describe-saml1x-source
cpu/sam0_common: update README for SAML1x addition
2019-02-04 16:29:15 +01:00
Peter Kietzmann
ee3efa3436
Merge pull request #10930 from silkeh/fix-hdc1000-param-renew
Fix hdc1000 renew interval documentation
2019-02-04 13:01:15 +01:00
Kevin "Bear Puncher" Weiss
7dc243e3cc
Merge pull request #10220 from bergzand/pr/crypto/chacha20poly1305
chacha20poly1305: Initial implementation of AEAD cipher.
2019-02-04 12:52:24 +01:00
Silke Hofstra
3cf3742f8c hdc1000: fix documentation for HDC1000_PARAM_RENEW_INTERVAL
The documentation refers to the `HDC1000_PARAM_RENEW_INTERVAL` as
`HDC1000_RENEW_INTERVAL`.
2019-02-04 11:28:31 +01:00
Peter Kietzmann
2c5d1b013e
Merge pull request #10918 from maribu/cc110x_mtu
drivers/cc110x: Fixed MTU calculation
2019-02-04 09:44:10 +01:00
f4a4f5d0b1
chacha20poly1305: Provide a test based on the rfc
Add a test case to the crypto tests testing the chacha20poly1305
algorithm with the test vectors from rfc 8439.
2019-02-04 09:29:26 +01:00
1990e1629a
crypto: Add chacha20poly1305 AEAD algorithm 2019-02-04 09:29:26 +01:00
Martine Lenders
39e90502af sam0_common: check ADC_NUMOF on adc_init() 2019-02-04 09:28:13 +01:00
Marian Buschsieweke
dae680dcb2
sys/net: Added NETDEV_TYPE_CC110X to MTU init 2019-02-04 09:16:29 +01:00
Peter Kietzmann
b927c6ffa6
Merge pull request #10923 from maribu/ifconfig_l2pdu
shell/ifconfig: Add L2-PDU info
2019-02-04 08:55:32 +01:00
Kees Bakker
e4325ed802 cpu/sam0_common: update README for SAML1x addition
Rewrite the README to reflect the recent addition of SAMR30 and
SAML10/SAML11.
2019-02-01 23:33:31 +01:00
Dylan Laduranty
3995fd8761
Merge pull request #10880 from fedepell/sam0_write_intflag
sam0 flashpage: wait for READY bit in INTFLAG after write command
2019-02-01 21:55:08 +01:00
Martine Lenders
72df5b234c
Merge pull request #10924 from jia200x/pr/release_notes_2018_10_1
release-notes.txt: Add Release 2018.10.1 notes
2019-02-01 18:40:57 +01:00
Jose Alamos
bade7bea81 release-notes.txt: Add Release 2018.10.1 notes 2019-02-01 17:51:39 +01:00
Martine Lenders
ff0e487510
Merge pull request #10922 from maribu/ifconfig
shell/ifconfig: Fixed stringification
2019-02-01 17:01:50 +01:00
Marian Buschsieweke
996a837fff
shell/ifconfig: Add L2-PDU info
When IPv6 is enabled, the MTU is given. So users(*) sending IPv6 packets can
easily figure out what the supported maximum protocol unit is.

However, when IPv6 is disabled and a user wants to send layer 2 frames directly,
no information about the maximum PDU is available using the shell.

When 6LoWPAN is used, a user may be interested in the layer 2 PDU as well in
order to avoid layer 2 fragmentation.

This PR adds the L2-PDU info to the output of the ifconfig shell command, which
is printed regardless of the use of IPv6.

(*): Here "users" refers to human beings interacting with the shell.
Applications can get the maximum PDU of each layer more easily using
gnrc_netapi_get() with NETOPT_MAX_PACKET_SIZE instead of using a shell command.
2019-02-01 16:55:16 +01:00
Marian Buschsieweke
0351577e18
shell/ifconfig: Fixed stringification 2019-02-01 16:22:37 +01:00
aa90f93de3
Merge pull request #10891 from kaspar030/fix_native_thread_yield_higher
cpu/native: fix race in thread_yield_higher()
2019-02-01 16:10:54 +01:00
Martine Lenders
49f2715986
Merge pull request #9793 from smlng/pr/netstats_l2
net stats: move layer 2 netstats from netdev driver to gnrc_netif
2019-02-01 15:21:09 +01:00
Marian Buschsieweke
fc1b7f1e35
drivers/cc110x: Fixed get NETOPT_MAX_PACKET_SIZE
netdev_driver_t::get(NETOPT_MAX_PACKET_SIZE) used to return the maximum frame
size instead of the maximum layer 2 PDU size.
2019-02-01 12:24:34 +01:00
Marian Buschsieweke
4183e16820
drivers/cc110x: Replaced magic number
Introduced CC110X_L2_HDR_SIZE to get rid of magic numbers.
2019-02-01 12:23:22 +01:00
Sebastian Meiling
734524aead gomach: fix reassign before usage error 2019-02-01 11:25:27 +02:00
smlng
03698502e3 netstats_l2: remove obsolete struct from xbee_t 2019-02-01 11:25:27 +02:00
smlng
b8d9610316 netstats_l2: remove obsolete struct from netdev_t 2019-02-01 11:25:27 +02:00
smlng
6183d5f5c5 netdev: remove layer2 netstats from netdev drivers
Removing usage of netdev->stats in all net drivers, as it is
handled by gnrc_netif.
2019-02-01 11:25:27 +02:00
Martine Lenders
73d72c0c52
Merge pull request #10893 from aabadie/pr/tests/periph_rtt
tests/periph_rtt: add Python script for automatic testing + use 5s delay between Hellos
2019-02-01 10:20:46 +01:00
smlng
a0324bdb43 netdev: remove netapi call for layer 2 netstats
This removes the netopt to get layer 2 netstats from netdev.
2019-02-01 10:35:03 +02:00
smlng
6d0384f068 netstats: collect layer 2 netstats in gnrc_netif
This the first step in moving the collection of layer 2 netstats from
the low level driver to a central location, ie. gnrc_netif, to avoid
code duplication.
2019-02-01 10:35:03 +02:00
Kevin "Bear Puncher" Weiss
1d693403b6
Merge pull request #10743 from yegorich/uart-enhanced-settings
RFC: UART enhanced settings
2019-01-31 17:11:28 +01:00
MichelRottleuthner
a1e91bd62e
Merge pull request #10913 from leandrolanzieri/pr/drivers/sds011_saul_read_return
drivers/sds011: Fix error return value on SAUL driver
2019-01-31 16:20:12 +01:00
Leandro Lanzieri
af7220c2be drivers/sds011: Fix SAUL read error return 2019-01-31 15:35:19 +01:00
Sebastian Meiling
805efb69c5
Merge pull request #10458 from MichelRottleuthner/pr_driver_sds011
add driver for SDS011 active laser dust sensor
2019-01-31 15:54:09 +02:00
Yegor Yefremov
2673b662af tests/periph_uart: add tests for uart_mode
Add positive and negative tests for data bits, stop bits and parity:

- 7E1, 7O1
- 8E1, 8O1
- 8N2

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2019-01-31 14:15:20 +01:00
Yegor Yefremov
738cbf685b tests/periph_uart: add support for changing serial
Add command mode that will be used like this:

mode <dev> <data bits> <parity> <stop bits>

This command must be called after init otherwise
the UART won't be fully initialized.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2019-01-31 14:15:20 +01:00
Yegor Yefremov
60f745a033 cpu/stm32_common: add support for uart_mode routine
Add support for specifying data bits, stop bits and parity at
runtime.

Introduce feature periph_uart_modecfg for uart_mode() till all
other CPUs implement it.

STM32 L1, F1, F2, F4 supports following modes:

* 7E1, 7E2
* 7O1, 7O2
* 8N1, 8N2
* 8E1, 8E2
* 8O1, 8O2

STM32 L0, L4, F0, F3, F7 supports following modes:

* 6E1, 6E2
* 6O1, 6O2
* 7E1, 7E2
* 7O1, 7O2
* 7N1, 7N2
* 8N1, 8N2
* 8E1, 8E2
* 8O1, 8O2

Use USART_CR1_M1 macro to detect 7-bit support because
even inside one family there could be devices that don't
support 7-bit mode. So just using a family macro is not
enough.

As stated in the datasheets for L0, L4, F0, F3, F7 devices,
data bits can only be changed when UART is disabled (UE=0).
Introduce uart_stop() routine to satisfy this requirement.

STM32 UART adds parity to the MSB of a byte to send. The same
also applies to the received bytes. As a result this bit must
be masked in order to get the pure data.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2019-01-31 14:15:20 +01:00
Yegor Yefremov
ddf19783d7 periph/uart: add support for enhanced serial settings
As suggested in PR#5899 add a routine uart_mode() that will
setup data bits, stop bits and parity at runtime.

uart.h provides a set of enums defining these settings and each
platform will override them to specify values corresponding to
its configuration registers.

The idea behind the enums is to specify default settings i.e. 8N1
through the 0 value item. Invoking uart_mode(uart, 0, 0, 0) will
setup 8N1 mode.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2019-01-31 14:15:11 +01:00
6a570f3a82
tests/periph_rtt: add automatic testing script 2019-01-31 10:47:05 +01:00
aee4771a42
tests/periph_rtt: use a 5s delay between each hello 2019-01-31 10:46:56 +01:00
fd2ffd9ef7
Merge pull request #10903 from aabadie/pr/pkg/semtech-loramac_improve_send
pkg/semtech-loramac: improve TX status management after sending a message
2019-01-30 20:10:14 +01:00
bb8bdadd69
examples/lorawan: fix potential hang in example 2019-01-30 18:58:43 +01:00
f6e616d48f
tests/pkg_semtech-loramac: fix send return value management 2019-01-30 18:58:43 +01:00
afc85e3daa
pkg/semtech-loramac: improve send and recv functions doc 2019-01-30 18:58:43 +01:00
1f0b2c390e
pkg/semtech-loramac: better handle TX status from the MAC 2019-01-30 18:58:28 +01:00