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

31925 Commits

Author SHA1 Message Date
dd8eec540a
boards/stm32f3*: adapt to new clock configuration 2020-09-24 11:27:24 +02:00
e9bf08e6d5
boards/stm32f1*: adapt to new clock configuration 2020-09-24 11:27:24 +02:00
042a550f0d
boards: cpu: stm32f1/f3: rework clock configuration and init 2020-09-24 11:27:24 +02:00
Francisco
07f0745015
Merge pull request #15063 from leandrolanzieri/pr/kconfig/fix_missing_out_config
makefiles/kconfig: fix dependencies for out.config target
2020-09-24 10:57:44 +02:00
Francisco
2cfb4f49cb
Merge pull request #14799 from maribu/waspmote-pro
boards/waspmote: Fix timer config
2020-09-24 09:33:17 +02:00
MrKevinWeiss
7893158b5a drivers/dev_enums: Remove unused dev_enums.h 2020-09-24 09:27:39 +02:00
benpicco
baedd20e68
Merge pull request #14972 from maribu/riscv-none-elf
build system: use riscv-none-elf as triplet
2020-09-24 00:50:46 +02:00
Marian Buschsieweke
f465ada642
boards/waspmote: Update XTIMER{,_ISR}_BACKOFF 2020-09-23 20:12:06 +02:00
Marian Buschsieweke
bf5cebb6b3
tests/periph_timer: Fix frequency for waspmote-pro
The waspmote-pro cannot run at 250 kHz, as no available divider can divide
its core frequency down to that. Instead, the board can be tested at its
core clock frequency.
2020-09-23 20:12:06 +02:00
Marian Buschsieweke
d5c0e30a11
boards/waspmote: Fix timer config
- Set XTIMER_HZ to something that is actually possible to generate with one
  of the available clock dividers from the core frequency
- Use xtimer_on_ztimer if xtimer is used and not ztimer_xtimer_compat is used
    - This is needed because xtimer is simply not compatible with any of the
      possible clock frequencies of this board
2020-09-23 20:12:06 +02:00
Viktor Gal
7ea8f738fd
Add support for Adafruit Seesaw Soil moisture sensor (#14835)
drivers/seesaw_soil: Add support for Adafruit Seesaw Soil moisture sensor
2020-09-23 17:35:33 +02:00
e719eaf97c
Merge pull request #15003 from kaspar030/ztimer_now64_tick
ztimer/core: ensure half-period tick when ztimer_now64 is used
2020-09-23 14:14:52 +02:00
Martine Lenders
711ea275e9
Merge pull request #15042 from maribu/gnrc_dont_include_xtimer_when_not_used
sys/net/gnrc/netif: Fix compilation on waspmote-pro
2020-09-23 13:37:36 +02:00
18852cf30c ztimer/core: ensure half-period tick when ztimer_now64 is used 2020-09-23 13:11:29 +02:00
97a0ba33c2
Merge pull request #14557 from bergzand/pr/cortexm_common/pendsv_priority
cortexm_common: Make no_thread_idle compatible with cortex-m0
2020-09-23 11:49:41 +02:00
chrysn
9295f69da4
Merge pull request #15062 from kaspar030/fix_efm32_16b_timer_set_absolute
cpu/efm32/periph/timer: fix timer_set_absolute() in 16bit case
2020-09-23 11:28:00 +02:00
eb73515e2c
cortexm_common: Enable no_thread_idle for all architectures 2020-09-23 11:02:01 +02:00
ba58273b04
cortexm_common: Enable using pendsv IRQ at lower priority
This modifies the cortex-m thread specifics to allow running the PendSV
interrupt continuously at lower priority and removes the priority
modifications during the interrupt itself. Interrupts are disabled
during the scheduling itself, but enabled briefly after the sleep to
ensure that they are handled if activated during the scheduling or the
sleep.
2020-09-23 11:01:29 +02:00
chrysn
d8d56e5e3a periph/timer: Document that set_absolute is expected to wrap
Most timers are implemented this way already, and keeping (documenting)
it that way allows the generic timer_set implementation to stay as
simple as it is.
2020-09-23 10:59:18 +02:00
0806b4b173
Merge pull request #15061 from bergzand/pr/tests_timer_periodic/use_fmt
tests/periph_timer_periodic: Use fmt for in-irq printing
2020-09-23 09:52:00 +02:00
Leandro Lanzieri
4fbbb94bff
makefiles/kconfig: fix dependencies for out.config target
Kconfig.dep depends on FORCE, so it is always generated when compiling
with Kconfig under normal conditions. Whan TEST_KCONFIG=1 is set, this
file is no longer a dependency for out.config. So when cleaning the
'bin' directory, out.config has no direct dependencies that force its
rebuilding (the generated directory is order only). This causes the file
not to be produced when calling `TEST_KCONFIG=1 make clean all`.

This PR changes the dependency on the 'generated' directory to a direct
dependency when `CLEAN` is set and leaves it as order-only when not.
This allows to generate out.config only when needed by not depending on
FORCE.
2020-09-23 09:49:44 +02:00
Francisco
195b7e6e16
Merge pull request #14945 from aabadie/pr/boards/stm32l0l1_clock_kconfig
boards/stm32l0l1: rework clock initialization and configuration
2020-09-23 09:30:19 +02:00
Kevin "Tristate Tom" Weiss
dc5631e8e3
Merge pull request #14996 from MrKevinWeiss/pr/removeenums
drivers/periph: Remove TIMER from device_enums.h
2020-09-23 09:25:21 +02:00
57f2bd9934
tests/periph_timer_periodic: Use fmt for in-irq printing
This replaces the printf statement in the timer callback with fmt-based
printing and a single puts. This is less heavy on the stack usage than
printf, making this test a bit easier to digest on the smaller
platforms.
2020-09-23 08:59:30 +02:00
dcb25eb3fc cpu/efm32/periph/timer: fix timer_set_absolute() in 16bit case 2020-09-22 23:15:23 +02:00
c14d7ec7db
cpu/stm32l0l1: refactor clock initialization sequence 2020-09-22 22:30:20 +02:00
425a2f69a2
cpu/stm32l0l1: ensure PLL is enabled when required
PLL is required for the 48MHz output used by HWRNG and also when it's used as system clock
2020-09-22 22:30:20 +02:00
8ac1909ea3
cpu: boards: stm32l0l1: use IS_ACTIVE where possible in stmclk 2020-09-22 22:30:19 +02:00
5e886a76c9
boards/stm32l0/l1: merge default clock configuration headers 2020-09-22 22:30:19 +02:00
4bdb3db0f9
boards/stm32l1: override default LSE in boards where needed 2020-09-22 22:30:19 +02:00
67a1c029b4
boards/stm32l0: set LSE to 0 default, override in boards 2020-09-22 22:30:19 +02:00
23117a844e
boards: cpu: stm32l0: rework clock configuration 2020-09-22 22:30:19 +02:00
4a5d9a30b1
boards/stm32l0*: rename shared clock config header 2020-09-22 22:30:08 +02:00
benpicco
4db66d1110
Merge pull request #15057 from maribu/kernel_defines_cast_align
core/include/kernel_defines.h: Fix container_of()
2020-09-22 21:41:13 +02:00
Martine Lenders
5e4c285323
Merge pull request #15056 from maribu/gnrc_pktbuf_static_alignment
sys/net/gnrc/pktbuf_static: Fix alignment
2020-09-22 17:07:07 +02:00
MrKevinWeiss
cc1c2ab811 drivers/periph: Remove unused timer enum from dev_enums 2020-09-22 16:26:01 +02:00
MrKevinWeiss
d95452b979 cpu/native: Remove unused TIMER_0_EN 2020-09-22 16:26:01 +02:00
MrKevinWeiss
a65ce2a058 cpu/ezr32wg: fix comment 2020-09-22 16:26:01 +02:00
MrKevinWeiss
263aea60cb cpu/lpc1768: Cleanup timer to remove dev_enums 2020-09-22 16:26:01 +02:00
MrKevinWeiss
7c3082a7a3 cpu/lm4f120: Update timer macros to timer_config_t 2020-09-22 16:26:01 +02:00
Martine Lenders
db6355fb13
Merge pull request #15054 from haukepetersen/fix_emcute_msgupdate
net/emcute: fix buffer overflow in _willupd_msg()
2020-09-22 15:51:05 +02:00
Marian Buschsieweke
59321065db
core/thread.c: Silence -Wcast-align flase positives
Verified that each warning generated by -Wcast-align is indeed a false positive
and used an (intermediate) cast to `uintptr_t` to silence the warnings.
2020-09-22 15:15:28 +02:00
a3b0a17185
Merge pull request #15018 from maribu/doc_driver_guide
doc/driver-guide.md: Update doc on return value
2020-09-22 15:14:30 +02:00
Marian Buschsieweke
85e506e893
core/include/kernel_defines.h: Fix container_of()
container_of() is safe to use in regard to alignment requirements, when used
correctly. Using `uintptr_t` instead of `char *` for applying the offset results
in -Wcast-align not complaining.
2020-09-22 15:13:03 +02:00
Marian Buschsieweke
28d4bf7751
sys/net/gnrc/pktbuf_static: Fix alignment
The buffer _pktbuf was previously only aligned to a 1 byte boundary. This could
result in run time issues.
2020-09-22 15:04:56 +02:00
Francisco
f3a5ee69e0
Merge pull request #14936 from kaspar030/ztimer_sleep_adjust
sys/ztimer: allow compensation of ztimer_sleep() overhead
2020-09-22 14:56:56 +02:00
Marian Buschsieweke
4a016adebb
doc/driver-guide.md: Update doc on return value
Change driver guide to expect drivers to return negative errno codes instead of
enums for error codes. Those have the following advantages:

- More efficient implementation of POSIX compatibility wrappers:
    - In case of error, just an `errno = -retval; return -1` is needed
- Better interoperability
    - A lot of code within RIOT and in external code is doing so already.
      Applying this consistently allows passing error codes through, rather
      than translating between errno codes and custom enum values
- Not reinventing the wheel
    - Defining and documenting custom error codes for each driver is unneeded
      effort
    - The error classes that device driver have to report are largely the same.
      There is no reason to have dozens of error codes for an input/output
      error, each with a unique spelling a programmer needs to memorize
2020-09-22 14:38:56 +02:00
Marian Buschsieweke
8a5d301caa
sys/net/gnrc/netif: Fix compilation on waspmote-pro
xtimer.h must not be included, when the xtimer module is not use. Otherwise
compilation on the waspmote-pro with https://github.com/RIOT-OS/RIOT/pull/14799
will not longer work. gnrc_netif_pktq includes xtimer.h and uses xtimer, but
gnrc_netif includes gnrc_netif_pktq.h regardless of whether gnrc_netif_pktq
is used. This makes sure that gnrc_netif_pktq.h is only included when actually
used.
2020-09-22 11:51:09 +02:00
Marian Buschsieweke
1d1b446d6b
sys/net/gnrc/netif: use IS_USED macro 2020-09-22 11:50:18 +02:00
ec65e8a776 tests/xtimer_usleep: fix test to allow zero (perfect) offset 2020-09-22 11:50:02 +02:00