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

33392 Commits

Author SHA1 Message Date
Akshai M
95394c4ba7 drivers/rn2xx3 : Update Kconfig
Expose CONFIG_RN2XX3_DEFAULT_AR to Kconfig
2020-12-08 11:34:03 +01:00
Akshai M
bfd3a903fb drivers/rn2xx3 : r/LORAMAC_DEFAULT_AR/CONFIG_RN2XX3_DEFAULT_AR
Move 'LORAMAC_DEFAULT_AR' to drivers/rn2xx3 i.e
'RN2XX3_DEFAULT_AR'
Move 'RN2XX3_DEFAULT_AR' to 'CONFIG_' namespace

Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-12-08 11:33:44 +01:00
Leandro Lanzieri
f74cb053b2
Merge pull request #15547 from akshaim/Kconfig_driver_ili9341
drivers/ili9341 : Expose configurations to Kconfig
2020-12-07 09:49:33 +01:00
benpicco
e3558a4482
Merge pull request #15567 from iosabi/qn908x_rtc
cpu/qn908x: Add the RTC module.
2020-12-06 23:20:49 +01:00
iosabi
3890091ced cpu/qn908x: Add the RTC module.
This patch implements the real time clock module for the QN908X cpus.

This module is very straightforward with only the one notable drawback
that it doesn't have a match register like the CTIMER block to implement
the alarm function. Instead, this driver can only use the interrupt
generated ever 1 second to implement the alarm match comparison in
software.
2020-12-06 20:49:51 +00:00
benpicco
0fcecdeaca
Merge pull request #15568 from iosabi/qn908x_gpio_int
cpu/qn908x: Fix triggering GPIO IRQ.
2020-12-06 19:38:24 +01:00
iosabi
ac4c4d6132 cpu/qn908x: Fix triggering GPIO IRQ.
The IRQ for each GPIO port needs to be enabled in the NVIC on top of
enabling the corresponding bit in the GPIO port.

This was not caught in tests before because I was testing with a larger
stack of commits (including UART and timers) which also had this fix.

Manually poking the GPIOs while using tests/periph_gpio now properly
fires the interrupts.
2020-12-06 18:07:44 +00:00
benpicco
f72e98d0a0
Merge pull request #15557 from iosabi/qn908x_ctimer
cpu/qn908x: Add timer driver based on CTIMER.
2020-12-05 17:36:36 +01:00
iosabi
ef4b58f4f0 cpu/qn908x: Add timer driver based on CTIMER.
The QN908x CPU has several timer modules: one RTC (Real-Time Clock) that
can count from the 32kHz internal clock or 32.768 kHz external clock,
four CTIMER that use the APB clock and have four channels each and one
SCT timer with up to 10 channels running on the AHB clock.

This patch implements a timer driver for the CTIMER blocks only, which
is enough to make the xtimer module work. Future patches should improve
on this module to support using the RTC CNT2 32-bit free-running
counter unit and/or the SCT timer.
2020-12-04 23:18:27 +01:00
iosabi
80bd203b4d cpu/qn908x: Add missing gpio & uart enum values.
GPIO_BOTH gpio_flank_t; UART_PARTY_MARK and UART_PARTY_SPACE in
uart_parity_t; and UART_DATA_BITS_5 and UART_DATA_BITS_6
uart_data_bits_t enum values where missing from the periph_cpu.h header
since they are not supported by the CPU. This was causing some tests to
fail to compile, but only after adding the periph_timer module.

This patch adds those missing macros and makes the corresponding
functions fail when trying to use them.

A minor fix to the NWDT_TIME_LOWER_LIMIT value setting it to 1U to avoid
a -Werror=type-limits error in the tests/periph_wdt test. In theory 0
is a totally valid value although a bit useless since it will trigger
the WDT right away.
2020-12-04 23:18:27 +01:00
benpicco
ffebb5d792
Merge pull request #15529 from chrysn-pull-requests/nrf5x-periph_timer_periodic
cpu/nrf5x: implement periph_timer_periodic
2020-12-04 22:02:50 +01:00
chrysn
e3e89fe513 cpu/nrf5x: implement periph_timer_periodic 2020-12-04 19:03:44 +01:00
Martine Lenders
5673adaf48
Merge pull request #14706 from maribu/sock-aux-dtls
pkg/tinydtls: Implement sock_aux_local
2020-12-04 17:08:00 +01:00
Marian Buschsieweke
f222a3f2e9
pkg/tinydtls: Implement sock_aux_local 2020-12-04 16:00:32 +01:00
Martine Lenders
599c2a145e
Merge pull request #15558 from aabadie/pr/ci/murdock_no_static_tests
.murdock: don't run static-tests on Murdock
2020-12-04 13:59:38 +01:00
Martine Lenders
ba89d8641e
Merge pull request #14704 from maribu/sock-aux-gnrc
net/gnrc/sock: Implement sock_aux_local
2020-12-04 13:55:27 +01:00
Martine Lenders
172183e078
Merge pull request #14705 from maribu/sock-aux-lwip
pkg/lwip: Implement sock_aux_local
2020-12-04 13:27:25 +01:00
2f8d770134
.murdock: don't run static-tests on Murdock 2020-12-04 13:20:08 +01:00
Marian Buschsieweke
e97ed09c3c
tests/lwip_sock_ip: Added test for sock_aux_local 2020-12-04 12:51:49 +01:00
Marian Buschsieweke
1282ab1203
tests/lwip_sock_udp: Added test for sock_aux_local 2020-12-04 12:51:49 +01:00
Marian Buschsieweke
77b39c5550
pkg/lwip: Implement sock_aux_local
Provide address the IP packet / UDP datagram was received on in the auxiliary
data, if module sock_aux_local is used.
2020-12-04 12:51:48 +01:00
Marian Buschsieweke
3e1417c75d
tests/gnrc_sock_ip: Added test for sock_aux_local 2020-12-04 12:48:00 +01:00
Marian Buschsieweke
f97c190117
tests/gnrc_sock_udp: Added test for sock_aux_local 2020-12-04 12:48:00 +01:00
Marian Buschsieweke
1d69f067d1
sys/net/gnrc: Implement sock_aux_local
Provide address the IP packet / UDP datagram was received on in the auxiliary
data, if module sock_aux_local is used.
2020-12-04 12:47:59 +01:00
benpicco
1eab23a8ad
Merge pull request #15554 from benpicco/tests/driver_ds3231
tests/driver_ds3231: blacklist on CI
2020-12-04 00:44:05 +01:00
benpicco
a1e9d3b360
Merge pull request #15550 from iosabi/qn908x_uart
cpu/qn908x: Add support for UART.
2020-12-04 00:25:37 +01:00
Benjamin Valentin
c82e331e57 tests/driver_ds3231: blacklist on CI
The test needs real hardware to run, so including it in the automated
CI tests will always fail.
2020-12-03 21:05:40 +01:00
benpicco
1a25df9d34
Merge pull request #15471 from maribu/event-threads-multi
sys/event: Allow single event_thread handling all queues
2020-12-03 21:04:36 +01:00
iosabi
bd929a3746 cpu/qn908x: Add support for UART.
The QN908x has four FLEXCOMM interfaces that support a subset of UART,
SPI or I2C each one. This patch adds generic support for dealing with
the FLEXCOMM initialization and interrupts and adds a driver for
RX/TX support in UART.

With this patch is now possible to use a shell on the device over UART.
2020-12-03 20:53:49 +01:00
benpicco
838aafb621
Merge pull request #15552 from aabadie/pr/dist/tools_changed_files
dist/tools/changed_files: fix default list of exclude
2020-12-03 20:31:54 +01:00
b979fb3262
ci/changed_files: exclude lpc2k_pgm tool 2020-12-03 19:17:58 +01:00
e04085622b
Revert "dist/tools/externc: exclude code in dist/tools"
This reverts commit 4567c108a1.
2020-12-03 19:17:33 +01:00
benpicco
0427e28f17
Merge pull request #15546 from iosabi/qn908x_checksum
boards/common/qn908x: Compute the image checksum
2020-12-03 18:33:33 +01:00
iosabi
3f600d869e boards/common/qn908x: Compute the image checksum
QN908X CPUs require the image to have a valid checksum. The checksum is
a simple addition of the first 7 uint32_t values stored in the 8th
position of the image header. This position is a reseved entry of the
Cortex-M Vector Table and its value depends on other fields that are
computed at link time. Performing this checksum at link time seems
hard to do, so instead this patch uses a python script to patch the
checksum from the ELF file. This redefines the value of FLASHFILE
to the new .elf file with the checksum fixed.

With this patch, OpenOCD can program and verify QN908X images since
now they have a valid checksum value.
2020-12-03 17:47:33 +01:00
Martine Lenders
5b25ad31aa
Merge pull request #15551 from janosbrodbeck/pr/dtls/change_documentation
sock/dtls: remove usage of sock_dtls_session_create in documentation
2020-12-03 16:36:08 +01:00
Marian Buschsieweke
78aec672dd
tests/pkg_tinydtls_sock_async: fix use of internals
event_queue_medium was never part of the public API, instead of using
`&event_queue_medium` one should use `EVENT_PRIO_MEDIUM`.
2020-12-03 15:28:35 +01:00
Marian Buschsieweke
ae5845c372
tests/event_threads: drop use of deprecated module 2020-12-03 15:28:35 +01:00
Marian Buschsieweke
06c87dfe97
makefiles: add mechanism to deprecate modules
Add event_thread_lowest as first deprecated module
2020-12-03 15:28:35 +01:00
Marian Buschsieweke
10471a33b3
tests: Add event_thread tests for shared thread 2020-12-03 15:28:35 +01:00
Marian Buschsieweke
c6211cc6c2
sys/event: Allow shared thread for multiple queues
Allow using `event_loop_multi()` to handle event queues of multiple priorities
in an single thread. In the extreme case, all three event queues are handled
by a single thread (thus saving two stacks). This comes for the price of
increased worst case latency, as already running event handlers will no longer
be preempted by higher priority events.

With this, all three event queue priorities are always provided. Using modules,
the old behavior of one thread per event queue can be restored for better worst
case latency at the expense of additional thread size.
2020-12-03 15:28:35 +01:00
János Brodbeck
18fb081d50
sock/dtls: remove usage of sock_dtls_session_create in documentation 2020-12-03 14:45:38 +01:00
Akshai M
d65a4b3f97 drivers/ili9341 : Update documentation 2020-12-03 14:20:34 +01:00
Akshai M
64ddd8384e drivers/ili9341 : Expose to Kconfig
Group display drivers in menuconfig.
2020-12-03 14:20:34 +01:00
Akshai M
9f81956e41 drivers/ili9341 : Model 'CONFIG_ILI9341_LE_MODE' as BOOL 2020-12-03 14:20:34 +01:00
Akshai M
a322c6d4c0 drivers/ili9341 : Move 'ILI9341_VCOML' to 'CONFIG_' 2020-12-03 14:20:34 +01:00
Akshai M
d6935cd7bb drivers/ili9341 : Move 'ILI9341_VCOMH' to 'CONFIG_' 2020-12-03 14:20:34 +01:00
Akshai M
7bb83f9e01 drivers/ili9341 : Move 'ILI9341_GVDD' to 'CONFIG_' 2020-12-03 14:20:34 +01:00
Marian Buschsieweke
9d46bc7d7f
Merge pull request #14703 from maribu/sock-aux-api
net/sock: Add access to auxiliary data (API only)
2020-12-03 12:08:49 +01:00
benpicco
a80631a297
Merge pull request #15074 from maribu/ptp-clock
drivers/periph/ptp_clock
2020-12-03 09:59:07 +01:00
benpicco
72621bcfcf
Merge pull request #15525 from firas-hamdi/fix/suit_coap_wo_progressbar
sys/suit: fix use w/o progress bar
2020-12-03 09:34:38 +01:00