Dylan Laduranty
bc188c5a48
cpu/saml21: avoid the use of bitfield
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-05-30 17:29:00 +02:00
Jue
75295df810
cpu/saml21/pm: allow blocking IDLE mode
2022-10-31 22:18:00 +01:00
Jue
d0c11e568a
cpu/saml21/pm: specify power mode names
2022-10-31 22:18:00 +01:00
Benjamin Valentin
669104d841
cpu/sam0_common: SPI: don't perform DMA transfer for small buffers
...
Setting up a DMA transfer can take longer than sending out a buffer
byte by byte if the buffer is small.
DMA only shows advantages for large buffers, using it for every transfer
will cause a net slowdown.
Since we did not come up with a good way to determine the treshold based
on the SPI frequency, just use a fixed buffer for now so that DMA can be
used without slowing things down overall.
2021-11-19 17:22:51 +01:00
Bas Stottelaar
22243aec7a
cpu/*: realign ENABLE_DEBUG
2020-10-23 00:46:26 +02:00
Benjamin Valentin
3f95d3d2e3
cpu/saml21: pm: set deep flag
...
Set the deep flag for consistency with other family members.
2020-04-02 17:25:13 +02:00
Benjamin Valentin
7e156dd2e5
cpu/saml1x, saml2x: PM_NUM_MODES is a valid mode
...
The mode PM_NUM_MODES is the IDLE mode, so do not skip it.
2020-04-01 18:10:23 +02:00
Juergen Fitschen
1265efc785
cpu/sam0*: Wrap cortexm_sleep call
2020-02-24 11:48:13 +01:00
Benjamin Valentin
6f2cdb95da
cpu/saml21: pm: don't check individual part numbers
...
Just check if the define is availiable instead.
2020-02-12 11:44:20 +01:00
Benjamin Valentin
9df377d699
cpu/sam*: pm: make use of DEBUG_PUTS()
...
`pm_set()` gets called by the idle thread whose stack is too small
for normal DEBUG()/printf().
Use DEBUG_PUTS() instead to print the static debug strings.
2019-11-22 01:30:03 +01:00
dylad
e189d085b0
cpu/sam0: add support for SAMR34 MCU
2019-09-26 10:48:03 +02:00
Benjamin Valentin
849dd4cdce
sam0_common: make Timer implementation common across all sam0 MCUs
...
The currently supported SAM0 MCUs (samd21, saml21, saml1x) share the same
Timer peripheral, yet each of them carries it's own copy of the Timer
driver.
This introduces a new timer driver that is common for all sam0 MCUs and
uses structs for configuration instead of defines.
2019-05-21 11:47:59 +02:00
Benjamin Valentin
077056b949
sam0_common: make RTT implementation common across all sam0 MCUs
...
The currently supported SAM0 MCUs (samd21, saml21, saml1x) share the
same RTC peripheral, yet each of them carries it's own copy of the RTT
driver.
Unify the drivers and move them to sam0_common.
2019-05-09 20:54:00 +02:00
Benjamin Valentin
9aa8c619c1
sam0_common: make RTC implementation common across all sam0 MCUs
...
The currently supported SAM0 MCUs (samd21, saml21, saml1x) share the
same RTC peripheral, yet each of them carries it's own copy of the RTC
driver.
Unify the drivers and move them to sam0_common.
2019-04-15 22:25:47 +02:00
13654a950b
cpu/samr30: add support for samr30g18a
...
Co-authored-by: biboc <bapclenet@gmail.com>
2018-10-01 10:15:08 +02:00
Juan Carrano
da85094b65
cpu/saml21: Fix possibly uninitialized variable in pm.c.
2018-06-11 18:35:41 +02:00
dylad
20ac4b060d
cpu/saml21: fix RTC wrong condition for #if
2018-03-06 21:36:18 +01:00
smlng
b283b7784c
make: fix various compile errors with Wextra
...
pkg, nordic_softdevice_ble: disable CFLAGS to omit compiler error
sys, pm_layered: fix casting nonscalar to the same type
cpu, stm32_common: fix type-limits, remove always true assert
cpu, stm32f4: fix pointer arithmetic in periph/i2c
drivers, at86rf2xx: fix type-limits where condition always true
saul, gpio: fix if no gpio configured for saul
cpu, saml21: add frequency check to periph/timer
driver, cc110x: fix unused param and type-limts errors
boards, wsn430-common: fix old-style-declaration
make: fix old style definition
drivers, sdcard_spi: fix old style typedef
driver, at30tse: remove unnecessary check
driver, nrf24: fix type-limit
driver, pn532: change buffer from char to uint8_t
tests/driver_sdcard: fix type limits
boards, feather-m0: add missing field inits
driver, tcs37727: fix type limits
pkg, emb6: disable some compiler warnings
tests/emb6: disable some compiler warings
pkg, openthread: fix sign compare and unused params
tests/trickle: fix struct init
tests/pthread_cooperation: fix type limits
board, mips-malta: remove feature periph_uart
shell: fix var size for netif command
gnrc, netif: fix sign-compare
gnrc, nib: fix sign-compare
shell: fix output in netif command
posix: fix type-limits in pthread_cond
2017-11-28 18:31:43 +01:00
Hauke Petersen
b3962f8d2c
cpu/sam0: removed guards form periph drivers
2017-11-09 12:57:02 +01:00
a20745b6c5
cpu: make use of Makefile.periph
2017-11-06 12:01:19 +01:00
dylad
1e5262506d
cpu/sam0: merge GPIO driver
2017-10-01 14:48:12 +02:00
dylad
89c885ea40
sam0/uart: merge samd21 & saml21 uart driver
...
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2017-08-29 21:26:42 +02:00
Hauke Petersen
10d394802d
Merge pull request #6932 from dylad/saml21_multiple_exti
...
saml21/gpio: Allow multiple EXTI at the same time
2017-08-28 17:35:00 +02:00
Francisco Acosta
f2efd88f98
Merge pull request #7129 from haukepetersen/opt_periph_sharetimerset
...
cpu: add and use shared code for timer_set()
2017-08-01 15:09:48 +02:00
smlng
692cf96297
doc: fix doxygen grouping of cpu periph drivers
2017-06-26 14:42:11 +02:00
biboc
0e41861db0
Change my email address:
...
<baptiste.clenet@xsoen.com>
to
<bapclenet@gmail.com>
2017-06-19 10:38:16 +02:00
Hauke Petersen
a1499f4190
cpu: add and use shared code for timer_set()
2017-06-02 12:21:56 +02:00
8f239e4c61
Merge pull request #6812 from haukepetersen/fix_cortexm_usecommonsleep
...
cpu/sam0|stm32: use common cortexm_sleep()
2017-05-11 14:44:05 +02:00
dylad
600e6ec2ae
saml21/gpio: Allow multiple EXTI at the same time
...
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2017-04-19 12:43:09 +02:00
dylad
c960eaa491
saml21/gpio: Enable EXTI0 on PB00
...
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2017-04-09 19:30:50 +02:00
Hauke Petersen
190f319066
cpu/sam0|stm32: use common cortexm_sleep()
2017-03-28 20:00:03 +02:00
Hauke Petersen
ea07a6817c
cpu/sam0+boards: adapted to new SPI API
...
- adapted the SPI driver
- merged SPI driver for samr21 and saml21
- adapted all boards using the CPU
2017-01-25 16:46:45 +01:00
Oleg Hahm
d0316fa7ae
periph timer: remove timer_irq_(en|dis)able
2017-01-14 15:34:53 +01:00
Hauke Petersen
6270283033
Merge pull request #6160 from kaspar030/introduce_new_power_management
...
Introduce new power management
2017-01-12 17:31:49 +01:00
Hauke Petersen
3faf8f6799
Merge pull request #6242 from ant9000/saml21_update_to_xdk3.33
...
SAM L21 update to ASF xdk 3.33
2017-01-12 17:07:10 +01:00
a8c5fcc5eb
cpu: saml21: add periph/pm support
2017-01-12 16:26:02 +01:00
Hauke Petersen
3a00fe8e49
cpus: make use of cortexm_isr_end()
2016-12-21 11:28:46 +01:00
Antonio Galea
9421152cb8
SAML21: updated periph driver to match ASF-3.33 includes
2016-12-19 18:27:47 +01:00
Hauke Petersen
74bba2a183
cpu/saml21: removed unused saml21_periph.h
2016-12-15 11:59:54 +01:00
Hauke Petersen
2eebf36eb2
cpu/uart: make use of named return values
2016-10-28 10:32:00 +02:00
Hauke Petersen
9bd848f113
cpu/saml21: adapted GPIO driver
2016-03-17 14:39:11 +01:00
Hauke Petersen
b23cde98cf
cpus: adapted UART implementations to cb type change
2016-03-15 11:02:06 +01:00
Oleg Hahm
1c260c2228
Merge pull request #4655 from bapclenet/SAML21/RTC
...
Driver RTC for the board SAML21 by FWX
2016-03-09 13:44:50 +01:00
Baptiste
455555304c
SAML21/RTC: Add RTC driver
2016-03-09 09:28:42 +01:00
Joakim Nohlgård
e607de5b95
cpu/saml21: Use {} notation for empty while loops
2016-03-03 16:31:29 +01:00
Hauke Petersen
b11a3ad74b
cpus: adapted timer implementations to API changes
2016-02-29 14:45:00 +01:00
Joakim Nohlgård
f0584f8ee0
cpu/saml21: spi: Cast enum to unsigned int for comparison
2016-02-28 00:09:29 +01:00
Joakim Nohlgård
3d8c8b295d
cpu/saml21: Update to match timer_init API change
2016-02-13 21:29:36 +01:00
Hauke Petersen
722b342df3
cpu/sam21_common: unified CPUID implementation
2016-02-08 18:55:43 +01:00
Hauke Petersen
940097336a
cpu: cleanup and unification of CPUID implementations
...
- moved definition of CPUID_LEN to periph_cpu.h
- fixed some doxygen
- simplyfied some implementations
2016-02-08 14:36:03 +01:00