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

29557 Commits

Author SHA1 Message Date
Benjamin Valentin
c0203ad35c cpu/sam0_common: GPIO default to MAIN clock for EXTI, make configurable
Currently only samd21 used the 32 kHz clock for EXTI which makes it miss fast events.
All newer members of the family use the MAIN clock.

While touching this, also make the clock source configurable to this can be overwritten,
e.g. in the board config if desired.
2020-06-19 13:27:48 +02:00
Dylan Laduranty
00b14cce27
Merge pull request #14106 from benpicco/cpu/saml1x/pm_deep_flag
cpu/saml1x: pm: set deep flag
2020-06-17 22:02:34 +02:00
Dylan Laduranty
6bf0a41399
Merge pull request #13600 from benpicco/sam0-gpio
cpu/sam0_common: GPIO IRQ optimizations
2020-06-17 21:23:19 +02:00
Leandro Lanzieri
3ce8efd4cb
Merge pull request #14138 from akshaim/Kconfig_mac
gnrc/mac : Expose configurations to Kconfig
2020-06-17 18:12:40 +02:00
Marian Buschsieweke
f3af071b19
Merge pull request #11432 from maribu/pulse_counter_c11_atomics
drivers/pulse_counter: Use C11 atomics & bugfix
2020-06-17 17:03:48 +02:00
Leandro Lanzieri
7201fdfaad
Merge pull request #14019 from akshaim/Kconfig_at
drivers/at : Expose Configurations to Kconfig
2020-06-17 15:42:39 +02:00
benpicco
7ea26cb118
Merge pull request #14295 from benpicco/core/include/macros/units_convenience
core/include: don't use 64 bit for MHZ & MiB macros
2020-06-17 15:01:44 +02:00
Benjamin Valentin
0862a3c512 core/include: Don't use 64 bit for MHZ & MiB macros
Those macros are all about convenience. However, always using 64 bit makes casts
nececcary that goes against the idea of having a convenience macro.

E.g. when printing a frequency in KHZ one might want to do

	printf("freq: %lu kHz\n", freq / KHZ(1));

leads to an error

> error: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'long long unsigned int'

Now we would have to cast - `%llu` is not available with newlib-nano and wholly
uneccecary.

Only use 64 bit artithmetic where necessary (GHZ, GiB), not for smaller units.
2020-06-17 12:50:50 +02:00
Francisco
112ff81f3e
Merge pull request #14176 from leandrolanzieri/pr/kconfig/atmega_boards_symbols
boards/atmega328p-based: Model features in Kconfig
2020-06-17 12:22:31 +02:00
07c78efc83
Merge pull request #14285 from fjmolinas/pr_uart_nb_race
sam0/stm32: fix possible uart_nonblocking deadlock
2020-06-17 12:14:25 +02:00
Francisco
4c05c0207f
Merge pull request #14300 from benpicco/cpu/sam0_common/uart_txinv
cpu/sam0_common: UART: implement inverted RX & TX
2020-06-17 11:44:46 +02:00
Akshai M
e672ca2010 drivers/at : Expose to Kconfig
Expose configurations to Kconfig:
Model choice for CONFIG_AT_SEND_EOL
Allow value to be configured as exponent for AT_BUF_SIZE
2020-06-17 14:52:21 +05:30
Akshai M
f9741b3ed5 drivers/at : Add CONFIG_
Add CONFIG_ prefix to AT_SEND_EOL,  AT_SEND_SKIP_ECHO,
CONFIG_AT_RECV_OK, CONFIG_AT_RECV_ERROR
2020-06-17 14:52:21 +05:30
Akshai M
921badbf38 drivers/at : Inverse Logic
Inverse logic for AT_SEND_ECHO
2020-06-17 14:52:21 +05:30
Leandro Lanzieri
4a1f6e5946
test/kconfig_features: Add atmega328p-based boards to list 2020-06-17 10:59:31 +02:00
Leandro Lanzieri
1a3d7aaa90
boards/atmega328p: Add Kconfig symbols 2020-06-17 10:59:31 +02:00
Leandro Lanzieri
688d06e38a
boards/arduino-nano: Add Kconfig symbols 2020-06-17 10:59:30 +02:00
Leandro Lanzieri
5299c2c1d7
boards/arduino-uno: Add Kconfig symbols 2020-06-17 10:59:29 +02:00
Leandro Lanzieri
002f7cd54a
boards/arduino-duemilanove: Add Kconfig symbols 2020-06-17 10:59:29 +02:00
Leandro Lanzieri
9c6e3ea91a
boards/common/arduino-atmega: Add Kconfig symbols 2020-06-17 10:59:29 +02:00
Leandro Lanzieri
981aecf9cc
cpu/atmega328p: Add Kconfig symbols 2020-06-17 10:52:24 +02:00
Leandro Lanzieri
19bdb11548
cpu/atmega_common: Add Kconfig symbols 2020-06-17 10:52:23 +02:00
Francisco
5bb8c4b303
Merge pull request #14296 from leandrolanzieri/pr/cpu/adapt_kconfig_classification
cpu/kconfig: Rename CPU classification symbols
2020-06-17 10:26:20 +02:00
Bas Stottelaar
219f631d20
Merge pull request #14233 from benemorius/pr/efm32-lfrco-jitter
cpu/efm32: disable default LFRCO options that break LEUART > 1800 baud
2020-06-17 10:23:49 +02:00
benpicco
0d8fea429e
Merge pull request #13126 from basilfx/feature/mh-z19
drivers/mhz19: initial support
2020-06-17 10:15:40 +02:00
Francisco Molina
80d682becd
cpu/sam0: avoid deadlock on nonblocking write
If a write to a full tsrb is attempted with disabled interrupts
or in a interrupt then a deadlock will occure. To avoid this make
space in the ringbuffer by synchronously writing to uart.
2020-06-17 10:01:21 +02:00
Francisco Molina
09f0fd4526
cpu/stm32: avoid deadlock on nonblocking write
If a write to a full tsrb is attempted with disabled interrupts
or in a interrupt then a deadlock will occure. To avoid this make
space in the ringbuffer by synchrnously writing to uart.
2020-06-17 10:01:21 +02:00
Francisco Molina
f7d124e141
tests/periph_uart_nonblocking: test print with disabled irq 2020-06-17 10:01:20 +02:00
Francisco Molina
0b8adb2d27
cpu/sam0-stm32/uart: rename tx buf size to UART_TXBUF_SIZE 2020-06-17 10:01:20 +02:00
Francisco Molina
dd331c91d3
cpu/stm32/uart: enable irq for non blocking uart 2020-06-17 10:01:19 +02:00
9059c053a7
Merge pull request #13098 from basilfx/feature/ucglib_refactoring_and_fixes
pkg/ucglib: refactoring and fixes
2020-06-17 08:51:20 +02:00
Thomas Stilwell
e987abe9fc cpu/efm32: disable default LFRCO options that break LEUART > 1800 baud 2020-06-17 01:47:29 -05:00
a94155bc11 tests/mhz19: add test application 2020-06-17 08:41:41 +02:00
ebc147d058 drivers/mhz19: initial support 2020-06-17 08:41:41 +02:00
Bas Stottelaar
35920a205e tests/pkg_ucglib: updated tests 2020-06-17 00:47:54 +02:00
Bas Stottelaar
7d73e8acaf pkg/ucglib: refactor the Ucglib package
- Passing RIOT-OS specific data as user_ptr
- Added necessary macros to Makefile.dep
- Added missing explicit dependency to xtimer module
- Added ucg_riotos.h with the RIOT-OS specific functionality
- Removed the now-obsolete patch of Ucglib
- Other minor fixes
2020-06-17 00:47:54 +02:00
Bas Stottelaar
3d4a330153
Merge pull request #14273 from aabadie/pr/pkg/ucglib_make
pkg/ucglib: improve build system integration
2020-06-17 00:32:48 +02:00
Bas Stottelaar
0455bacec7
Merge pull request #14272 from aabadie/pr/pkg/u8g2_make_enh
pkg/u8g2: improve build system integration
2020-06-17 00:26:50 +02:00
Benjamin Valentin
585dc15f99 cpu/sam0_common: UART: implement inverted RX & TX
The UART TX and TX lines on SAMD5x and SAML1x can be inverted.
However, the flags don't do exactly what one would expect.

See errata 2.18.5: SERCOM-UART: TXINV and RXINV Bits Reference:

> The TXINV and RXINV bits in the CTRLA register have inverted functionality.
>
> Workaround:
> In software interpret the TXINV bit as a functionality of RXINV, and conversely,
> interpret the RXINV bit as a functionality of TXINV.
2020-06-16 22:55:37 +02:00
Francisco
e3c9894402
Merge pull request #14282 from aabadie/pr/pkg/openthread_make_rework
pkg/openthread: improve package Makefile
2020-06-16 21:13:04 +02:00
Dylan Laduranty
5e625adcf5
Merge pull request #12132 from ant9000/pr/saml21_usbdev_48mhz_clock
cpu/saml21: enable 48mhz clock for usbdev
2020-06-16 21:02:41 +02:00
56962f86fb
Merge pull request #14293 from kaspar030/fix_ztimer_frac_slowdown_max_value
ztimer: convert_frac: use self->scale_now for max_value
2020-06-16 19:30:54 +02:00
4b087a73a5
Merge pull request #14299 from fjmolinas/pr_pkg_git_patch
pkg/pkg.mk: explicitly exclude state files
2020-06-16 19:28:51 +02:00
Leandro Lanzieri
2546f92d37
Merge pull request #14251 from aabadie/pr/pkg/make_enh
pkg: avoid copying Makefiles in package source when possible
2020-06-16 17:00:30 +02:00
Francisco Molina
1a069f2631
pkg/pkg.mk: explicitly exclude state files 2020-06-16 16:27:57 +02:00
80023c408a
Merge pull request #14259 from fjmolinas/pr_rtt_min_offset
drivers/periph/rtt: introduce RTT_MIN_OFFSET
2020-06-16 16:22:04 +02:00
Martine Lenders
1f2c3f7547
Merge pull request #12604 from maribu/luid-doc
sys/luid: Added postcondition to luid_get()
2020-06-16 15:24:51 +02:00
Semjon Kerner
20276d9d01
Merge pull request #14258 from benpicco/boards/nrf52840dongle_usb_reset
boards/nrf52840dongle: enable automatic reset to bootloader
2020-06-16 14:57:48 +02:00
Leandro Lanzieri
d87f0cc66b
cpu/kconfig: Rename CPU classification symbols
This removes the `CPU_FAMILY` and `CPU_SERIES` common CPU symbols and
adds `CPU_FAM` instead.
2020-06-16 14:27:27 +02:00
Francisco
3935c7630f
Merge pull request #14266 from haukepetersen/opt_nimble_mbufinit
pkg/nimble/netif: simplify mbuf pool initialization
2020-06-16 14:02:55 +02:00