1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 22:32:44 +01:00
Commit Graph

45789 Commits

Author SHA1 Message Date
Marian Buschsieweke
43f07fa261
cpu/msp430: implement power management
This implements `pm_set_lowest()` for the MSP430. Unlike most other
platforms, it intentionally does not use pm_layered. It is pretty
similar to `pm_layered` in that is does use reference counters, but it
uses them for two independent clock sources.

The main difference is that the low frequency clock domain can be
disabled even when the high frequency clock is still active. With the
layers, disabling layer n-1 while layer n is still blocked would not
work.
2024-04-26 15:52:41 +02:00
Marian Buschsieweke
01caa1900b
cpu/msp430: use SR alias instead of r2
The register r2 is the status register, which has the SR alias. Using
SR is a lot more readable than r2.
2024-04-26 15:52:41 +02:00
benpicco
70c70e2afc
Merge pull request #20623 from maribu/cpu/msp430/periph_usci/fix-prescaler
cpu/msp430/perriph_usci: fix prescaler values for ACLK
2024-04-26 09:42:25 +00:00
Marian Buschsieweke
4c0d6f8f7d
cpu/msp430/perriph_usci: fix prescaler values for ACLK
For super low symbol rates the auxiliary clock (ACLK) is used to
conserve power. But with only 32,678 Hz clock just prescaling will
result in poor bit timing, hence correct modulation control settings
to compensate are needed. Since computing this is too expensive, a
look-up table (as switch statement) for the four most common symbol
rates was used.

The datasheet gave the prescaler values ordered by ascending symbol
rate, the switch statement was ordered descending.
This changes the order to match the datasheets order and matches the
correct prescaler setting to the corresponding symbol rate.

Fixes https://github.com/RIOT-OS/RIOT/issues/20620
2024-04-25 22:39:45 +02:00
Teufelchen
925644e4ce
Merge pull request #20596 from Teufelchen1/fix/esp_print
cpu/esp: Handle format print errors
2024-04-25 13:58:12 +00:00
Teufelchen
5409364222
Merge pull request #20595 from Teufelchen1/fix/vfs_cmd
shell/vfs: Handle print failure in genfile cmd gracefully
2024-04-25 13:46:16 +00:00
Teufelchen1
01e78ed333 cpu/esp: Handle format print errors 2024-04-25 15:19:02 +02:00
Teufelchen1
8bd1de8259 shell/vfs: Handle print failure in genfile cmd gracefully 2024-04-25 15:16:42 +02:00
Marian Buschsieweke
690ce96234
Merge pull request #20610 from LukeTheEngineer/RIOT-Spelling
doc: fix spelling in CONTRIBUTING.md
2024-04-25 09:06:33 +00:00
LukeTheEngineer
63020d1cf2
doc: fix spelling in CONTRIBUTING.md 2024-04-25 11:03:33 +02:00
benpicco
9761456363
Merge pull request #20564 from benpicco/go-coap_workaround
gnrc, nanocoap: add optional work-arounds for buggy CoAP servers
2024-04-24 13:46:41 +00:00
Marian Buschsieweke
05034b584b
Merge pull request #20616 from dylad/pr/cpu/cortexm/rework_break_on_panic
cpu/cortexm: rework bkpt instruction call on panic
2024-04-24 13:06:45 +00:00
benpicco
772bc7a876
Merge pull request #20617 from Enoch247/simplify-stm32-ifdefs
boards/common/stm32: simplify ifdef logic
2024-04-24 12:57:47 +00:00
Dylan Laduranty
e784794b37 cpu/cortexm: uncrustify panic.c
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-04-24 13:20:59 +02:00
Dylan Laduranty
5d3324d3a9 cpu/cortexm: rework bkpt instruction call on panic
Only call this instruction if a debug session is active otherwise it will trigger a hardfault

Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-04-24 13:19:45 +02:00
Joshua DeWeese
3152301c3f boards/common/stm32: simplify ifdef logic 2024-04-23 16:31:01 -04:00
benpicco
34222e1451
Merge pull request #20614 from krzysztof-cabaj/nucleo144-pinouts
boards/nucleo144: add pinout diagrams to boards documentation
2024-04-23 19:57:25 +00:00
benpicco
b1552c5118
Merge pull request #20611 from krzysztof-cabaj/doc-terminal-programs
doc/terminals: add putty and sort terminals
2024-04-23 19:57:11 +00:00
benpicco
009d76e4fe
Merge pull request #20615 from Enoch247/revert-whitespace-changes
boards/common/nucleo144: revert waitespace changes
2024-04-23 18:00:23 +00:00
Joshua DeWeese
fe3a6ba462 boards/common/nucleo144: revert waitespace changes
This commit reverts the whitespace changes from commit
53d53d8cc8
2024-04-23 11:13:48 -04:00
krzysztof-cabaj
9db2603203 boards/nucleo144: add pinout to doc page for 412zg and 413zh 2024-04-23 15:41:41 +02:00
krzysztof-cabaj
b3b342a7d3 boards/nucleo144: add pinout file for f412zg and f413zh 2024-04-23 15:28:17 +02:00
Marian Buschsieweke
3ae63a14ef
Merge pull request #20612 from mguetschow/psa-test-timeout
tests/sys/psa_crypto: increase timeout
2024-04-23 10:54:08 +00:00
Mikolai Gütschow
db12864596
tests/sys/psa_crypto: increase timeout
to account for slow software implementation
2024-04-23 12:46:09 +02:00
krzysztof-cabaj
b443c70a1d doc/terminals: add to putty TOC link 2024-04-23 12:14:47 +02:00
krzysztof-cabaj
ec6de471d6 boards/nucleo144: add pinout to doc for f207, f429, f439 and f767 2024-04-23 12:10:22 +02:00
krzysztof-cabaj
91a8b00dee boards/nucleo144: add pinout file for f207, f429, f439 and f767 2024-04-23 11:10:45 +02:00
krzysztof-cabaj
cbf48bbe5c boards/nucleo144: add pinout to doc page for f446ze and f722ze 2024-04-23 10:45:41 +02:00
krzysztof-cabaj
68c37f653b boards/nucleo144: add pinout file for f446ze and f722ze 2024-04-23 10:33:57 +02:00
krzysztof-cabaj
a51e99d03c doc/terminals: sort terminals alphabetically 2024-04-23 09:16:59 +02:00
krzysztof-cabaj
bea0e38148 doc/terminals: add putty 2024-04-22 16:09:04 +02:00
Marian Buschsieweke
a8ffb340fc
Merge pull request #20599 from crasbe/pr/nrf52840_jlink
boards/nRF52xx: correctly set JLINK_DEVICE
2024-04-22 11:53:15 +00:00
crasbe
6f0e81fb34 boards/nRF52xx: correctly set JLINK_DEVICE 2024-04-22 11:25:08 +02:00
benpicco
5a7bcc9f87
Merge pull request #20601 from maribu/cpu/msp430/clock
cpu/msp430: clean up and fix clock driver
2024-04-22 08:44:20 +00:00
benpicco
3cd83c7709
Merge pull request #20602 from maribu/cpu/msp430/get_caller_pc
cpu/msp430: implement get_caller_pc
2024-04-22 08:41:56 +00:00
benpicco
0ed00168ae
Merge pull request #20600 from mguetschow/doc-serial-permission
doc/getting-started: add hint for correct access rights on serial device
2024-04-22 08:41:54 +00:00
Dylan Laduranty
4a4101b3b8
Merge pull request #20605 from chrysn-pull-requests/nfc-warnings
boards/doc: Explicitly warn when nRF chips are advertised as NFC supporting
2024-04-22 06:55:10 +00:00
chrysn
169671dccf boards/doc: Explicitly warn when nRF chips are advertised as NFC supporting 2024-04-21 20:17:00 +02:00
Marian Buschsieweke
f01fb53529
cpu/msp430: implement get_caller_pc
This "implements" the `get_caller_pc()` function by simply wiring up
compiler intrinsics.
2024-04-19 21:21:32 +02:00
Marian Buschsieweke
024832aa6d
cpu/msp430: clean up and fix clock driver
- The validity test for the high frequency crystal did not take
  into account the higher range supported by the MSP430 F2xx / G2xx
  family. This fixes the issue.
    - The CPU family used is exposed to C as `CPU_FAM_<NAME>` macro
- Unused headers where dropped
- The status register is aliased `SR`, so let's use that more readable
  name.
2024-04-19 19:17:18 +02:00
Mikolai Gütschow
e6fb623947
doc/getting-started: add hint for correct access rights on serial device 2024-04-19 17:31:31 +02:00
chrysn
3ba49d5479
Merge pull request #20597 from chrysn-pull-requests/adafruit-sense-is-popular
boards/doc: Adafruit Feather nRF52840 Sense is popular
2024-04-19 10:13:05 +00:00
Karl Fessel
f130ebfccc
Merge pull request #20140 from krzysztof-cabaj/tests-drivers-at
tests/drivers/at: add check if device is initialized before sending command
2024-04-19 09:25:00 +00:00
chrysn
5b01060f28 boards/doc: Adafruit Feather nRF52840 Sense is popular 2024-04-19 11:05:53 +02:00
Karl Fessel
4a7dc817d7
Merge pull request #20594 from krzysztof-cabaj/nucleo-f429zi-f439zi-DOC
boards/nucleo-f429zi & f439zi: documentation improvements
2024-04-18 19:48:20 +00:00
Dylan Laduranty
efab4dd9ea
Merge pull request #20593 from firas-hamdi/fix/correct_debug_output
cpu/samd5x: reword & correct debug output
2024-04-18 14:36:40 +00:00
Dylan Laduranty
c4157585e2
Merge pull request #20590 from dylad/pr/cpu/nrf53/pm_off
cpu/nrf5x: implement pm_off() for nRF53/9160
2024-04-18 14:06:07 +00:00
Firas Hamdi
599967fe26 cpu/samd5x: reword & correct debug output 2024-04-18 15:42:57 +02:00
Dylan Laduranty
7aa7e7954e cpu/nrf5x: implement pm_off() for nRF53/9160
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-04-18 13:33:36 +02:00
Marian Buschsieweke
daa6b9da84
Merge pull request #20587 from Teufelchen1/fix/mtd
drivers/mtd: Add check for interger overflow
2024-04-18 10:59:40 +00:00