Marian Buschsieweke
0dfd83938f
{cpu,drivers}/periph_gpio_ll: add missing include
...
For `gpio_ll_print_conf()` we need to include `<stdio.h>`, when not
using `fmt.h`.
2024-11-27 09:06:56 +01:00
Benjamin Valentin
4eb1c35fe3
cpu/sam0_eth: fix return values of sam0_eth_send()
2024-11-20 18:17:22 +01:00
Marian Buschsieweke
0222b8c54c
cpu/sam0_common/periph_gpio_ll: fix gpio_query_conf()
...
For the other MCUs, we take the input register state instead of the
output register state when the pin is configured as input. Let's do
the same here, as this is a lot more useful and intuitive.
2024-11-18 14:27:14 +01:00
Marian Buschsieweke
a89c924682
cpu/sam0_common/periph_adc: add work around for errata 2.1.6
...
This adds a delay between enabling the ADC and starting to sample
on the SAMD5x MCUs when the internal bandgap reference is used.
Co-authored-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-11-14 22:44:23 +01:00
Marian Buschsieweke
c2c2cc8592
drivers/periph_gpio: let gpio_read() return bool
...
Since https://github.com/RIOT-OS/RIOT/pull/20935 gpio_write()
uses a `bool` instead of an `int`. This does the same treatment for
`gpio_read()`.
This does indeed add an instruction to `gpio_read()` implementations.
However, users caring about an instruction more are better served with
`gpio_ll_read()` anyway. And `gpio_read() == 1` is often seen in
newcomer's code, which would now work as expected.
2024-10-23 13:24:09 +02:00
Benjamin Valentin
4627f66caa
drivers/periph/gpio: make gpio_write() take a bool
2024-10-22 16:39:48 +02:00
Marian Buschsieweke
702ad02b33
cpu/sam0_common/periph_dma: Fix API mismatch
...
Match the signature of the implementation of the dma_prepare() with the
declaration to fix:
/home/marian.buschsieweke@ml-pa.loc/Repos/software/RIOT/master/cpu/sam0_common/periph/dma.c:172:6: error: conflicting types for 'dma_prepare' due to enum/integer mismatch; have 'void(dma_t, uint8_t, const void *, void *, size_t, uint8_t)' {aka 'void(unsigned int, unsigned char, const void *, void *, unsigned int, unsigned char)'} [-Werror=enum-int-mismatch]
172 | void dma_prepare(dma_t dma, uint8_t width, const void *src, void *dst,
| ^~~~~~~~~~~
In file included from /home/marian.buschsieweke@ml-pa.loc/Repos/software/RIOT/master/cpu/samd5x/include/periph_cpu.h:26,
from /home/marian.buschsieweke@ml-pa.loc/Repos/software/RIOT/master/cpu/sam0_common/periph/dma.c:21:
/home/marian.buschsieweke@ml-pa.loc/Repos/software/RIOT/master/cpu/sam0_common/include/periph_cpu_common.h:1186:6: note: previous declaration of 'dma_prepare' with type void(dma_t, uint8_t, const void *, void *, size_t, dma_incr_t)' {aka 'void(unsigned int, unsigned char, const void *, void *, unsigned int, dma_incr_t)'}
1186 | void dma_prepare(dma_t dma, uint8_t width, const void *src, void *dst,
| ^~~~~~~~~~~
2024-10-09 23:00:06 +02:00
mariemC
7df7886a69
cpu/sam0_common/periph: fix rtt reset after hibernation
2024-08-29 17:08:54 +02:00
Dylan Laduranty
25a04e6757
cpu/sam0/periph: remove bitfield usage in watchdog driver
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-06-25 16:13:17 +02:00
Dylan Laduranty
707fecbc38
cpu/sam0/periph: remove bitfield usage in usbdev driver
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-06-25 16:13:17 +02:00
Dylan Laduranty
f31ac8a978
cpu/sam0/periph: remove bitfield usage in UART driver
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-06-25 16:13:16 +02:00
Dylan Laduranty
6ccaca1e76
cpu/sam0/periph: remove bitfield usage in timer driver
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-06-25 16:13:16 +02:00
Dylan Laduranty
925e98b115
cpu/sam0/periph: remove bitfield usage in SPI driver
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-06-25 16:13:16 +02:00
Dylan Laduranty
7c1e66bdae
cpu/sam0/periph: remove bitfield usage in RTC/RTT driver
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-06-25 16:13:16 +02:00
Dylan Laduranty
a66eebb8ac
cpu/sam0/periph: remove bitfield usage in I2C driver
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-06-25 16:13:16 +02:00
Dylan Laduranty
37b03d8172
cpu/sam0/periph: remove bitfield usage in trng driver
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-06-25 16:13:16 +02:00
Dylan Laduranty
38c65b9531
cpu/sam0/periph: remove bitfield usage in PWM driver
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-06-25 16:13:16 +02:00
Dylan Laduranty
8af7b3b465
cpu/sam0/periph: remove bitfield usage in gpio_ll driver
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-06-21 09:42:46 +02:00
Dylan Laduranty
b2bbc4c6f1
cpu/sam0/periph: remove bitfield usage in gpio_ll_irq driver
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-06-21 09:42:46 +02:00
Dylan Laduranty
1e7167d9bf
cpu/sam0/periph: remove bitfield usage in gpio driver
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-06-21 09:42:46 +02:00
Dylan Laduranty
ae7ed4612a
cpu/sam0/periph: remove bitfield usage in flashpage driver
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-06-21 09:31:41 +02:00
Dylan Laduranty
1140241128
cpu/sam0/periph: remove bitfield usage in GMAC driver
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-06-21 09:31:41 +02:00
Dylan Laduranty
9d298137d6
cpu/sam0/periph: remove bitfield usage in DMAC driver
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-06-21 09:31:41 +02:00
Dylan Laduranty
292111a244
cpu/sam0/periph: remove bitfield usage in DAC driver
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-06-21 09:29:58 +02:00
Dylan Laduranty
3c64901b5e
cpu/sam0/periph: remove bitfield usage in ADC driver
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-06-21 09:29:58 +02:00
Benjamin Valentin
4d1a5aa62c
cpu/sam0_common: eth: port to new netdev API
2024-05-23 17:19:32 +02:00
MrKevinWeiss
e0fdc3c16c
*Kconfig*: Modify Kconfig to remove dep model
2024-03-27 10:28:12 +01:00
Dylan Laduranty
92c36df77b
cpu/sam0: don't enable TRFAIL interrupts
...
these interrupts were used to generate USBDEV_EVENT_TR_FAIL which is deprecated and will be removed
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-03-19 16:39:59 +01:00
Benjamin Valentin
6389b3c83b
Revert "cpu/sam0_common: RTC: avoid negative month after POR"
...
This reverts commit 897a3ceda9
.
2024-03-07 13:52:35 +01:00
Benjamin Valentin
8c4d0c53f2
cpu/sam0_common: RTC: avoid negative month after POR
2024-03-07 13:52:35 +01:00
Benjamin Valentin
897a3ceda9
cpu/sam0_common: RTC: avoid negative month after POR
2024-03-06 18:48:26 +01:00
Benjamin Valentin
a21acf0858
cpu/sam0_common: flashpage: disable interrupts while writing
2024-01-30 18:48:01 +01:00
Marian Buschsieweke
807fcd7614
cpu/sam0_common/periph_gpio_ll: fix doc
...
Fix some copy-paste bugs in the doc.
2024-01-23 15:51:36 +01:00
Marian Buschsieweke
1484d305bf
cpu/sam0_common: implement periph_gpio_ll_irq
...
Co-authored-by: benpicco <benpicco@googlemail.com>
2024-01-22 16:28:30 +01:00
Marian Buschsieweke
855756524f
cpu/sam0_common: Implement periph_gpio_ll
...
Co-authored-by: benpicco <benpicco@googlemail.com>
2024-01-22 16:28:16 +01:00
Benjamin Valentin
fbeb1f9a26
drivers/periph/spi: move DMA threshold to common code
2023-12-23 17:35:29 +01:00
benpicco
208790a5f1
Merge pull request #20108 from benpicco/drivers/dose-uart_ondemand_tx
...
drivers/periph/uart: add periph_uart_tx_ondemand feature
2023-12-14 20:42:55 +00:00
Benjamin Valentin
60f8468191
cpu/sam0_common: implement uart_tx_ondemand
2023-12-14 18:30:38 +01:00
Benjamin Valentin
6b86e274d9
cpu/sam0/uart: implement uart_pin_cts()/uart_pin_rts()
2023-12-12 20:26:17 +01:00
Marian Buschsieweke
b6a7815b48
cpu/sam0_common: implement periph_timer_query_freqs
2023-12-07 16:18:09 +01:00
Benjamin Valentin
1e9b1992df
cpu/sam0_common: fix adc_continuous_sample()
2023-12-01 19:45:54 +01:00
benpicco
c93a5b84a3
Merge pull request #20020 from gompper/periph/freqm
...
drivers/include/periph: add FREQM peripheral driver
2023-11-27 16:06:52 +00:00
Urs Gompper
4c97a27826
cpu/sam0_common: implement freqm peripheral
2023-11-23 20:37:51 +01:00
Benjamin Valentin
5abdc7eb5f
cpu/sam0_common: adc_continuous: fix uninitialized access
2023-11-10 18:35:09 +01:00
Benjamin Valentin
b289d69b4f
cpu/sam0_common: implement periph_adc_continous
2023-11-10 12:10:49 +01:00
Marian Buschsieweke
edc43201db
tree-wide: fix typos in doc and comments
...
This should not change any generated binary
2023-10-16 12:17:48 +02:00
Benjamin Valentin
4ebf58d47a
cpu/sam0_common: gpio: warn if EXTI line is re-used
2023-09-04 16:03:40 +02:00
Benjamin Valentin
2a255ff3e8
cpu/sam0_eth: interrupt based link detection/auto-negotiation
2023-06-14 14:21:52 +02:00
Benjamin Valentin
04b895ce8a
cpu/sam0_eth: use 64 bit bus
2023-06-05 11:42:55 +02:00
Benjamin Valentin
385d260069
cpu/sam0_eth: disable PHY when MAC is sleeping
...
- idle 13.88 mA
- MAC off 11.48 mA
- MAC+PHY off 10.73 mA
2023-05-31 14:08:50 +02:00