6741 Commits

Author SHA1 Message Date
Koen Zandberg
9a79124fba
efm32: Adapt to flashpage/flashpage_pagewise API 2020-11-11 23:16:39 +01:00
Koen Zandberg
3c10425b4c
cc2538: Adapt to flashpage/flashpage_pagewise API 2020-11-11 23:16:38 +01:00
Benjamin Valentin
d63141fb02 cpu/nrf52: remove softdevice linkerscripts
Support for softdevice was removed in 35b6ccedf31f10a5f8e4f97609ad5b10c28bdc34
Those linkerscripts were leftover, they are not used anymore.
2020-11-11 18:18:37 +01:00
benpicco
38552ed41a
Merge pull request #15413 from benpicco/cpu/efm32_rtc_helper
cpu/efm32: RTC Series 0: use RTC helper functions
2020-11-11 17:19:59 +01:00
Bas Stottelaar
9f9f8637f3 cpu/efm32: add support for ezr32wg 2020-11-10 22:59:46 +01:00
Alexandre Abadie
9d13c07e92
cpu/stm32f0: handle custom pll prediv/mul at cpu level 2020-11-10 15:55:38 +01:00
Alexandre Abadie
5d77b7d90d
cpu/stm32: show PLL params in menuconfig with CUSTOM_PLL_PARAMS 2020-11-10 14:53:37 +01:00
Alexandre Abadie
03ee0c938f
cpu/stm32: adapt Kconfig clock configuration for f0 2020-11-10 14:53:12 +01:00
Benjamin Valentin
4e8c461f46 cpu/sam0_common: flashpage: invalidate cache on _lock() 2020-11-10 14:21:47 +01:00
Benjamin Valentin
e6192a13bd cpu/sam0_common: flashpage: support unaligned writes
We can pad the unaligned bytes with 0xFF to make up a whole word that
can be written.
2020-11-10 12:18:47 +01:00
Benjamin Valentin
20f093ede6 cpu/sam0_common: flashpage: introduce functions to write to user page 2020-11-10 12:18:47 +01:00
Benjamin Valentin
360c0b27fc cpu/saml1x: add NVM User Page Mapping 2020-11-10 12:18:47 +01:00
Benjamin Valentin
fecc5bdcff cpu/saml21: add NVM User Page Mapping 2020-11-10 12:18:47 +01:00
Benjamin Valentin
c5f8742877 cpu/samd21: add NVM User Page Mapping 2020-11-10 12:18:47 +01:00
Benjamin Valentin
edbb5fe9d0 cpu/samd5x: add NVM User Page Mapping 2020-11-10 12:18:47 +01:00
Marian Buschsieweke
56a54a773e
cpu/native: Add atomic_utils_arch.h 2020-11-10 10:55:14 +01:00
Marian Buschsieweke
a892c1aa23
cpu/atmega_common: Add atomic_utils_arch.h 2020-11-10 10:55:14 +01:00
Marian Buschsieweke
3f4577d430
cpu/msp430_common: Add atomic_utils_arch.h 2020-11-10 10:55:13 +01:00
Marian Buschsieweke
ce0982485d
cpu/fe310: Add atomic_utils_arch.h 2020-11-10 10:55:13 +01:00
Marian Buschsieweke
1d2e0592d3
cpu/mips32r2_common: Add atomic_utils_arch.h 2020-11-10 10:55:13 +01:00
Marian Buschsieweke
ed6b88d5c4
cpu/esp_common: Add atomic_utils_arch.h 2020-11-10 10:55:13 +01:00
Marian Buschsieweke
9c6aed75e6
cpu/arm7_common: Add atomic_utils_arch.h 2020-11-10 10:55:13 +01:00
Marian Buschsieweke
a3e2d27799
cpu/cortexm_common: Add atomic_utils_arch.h 2020-11-10 10:55:13 +01:00
Leandro Lanzieri
95ff222316
Merge pull request #14968 from aabadie/pr/boards/stm32l4wb_clock_kconfig_only
boards/stm32l4/wb: add Kconfig for clock configuration
2020-11-10 10:51:54 +01:00
Alexandre Abadie
2f2622c76f
cpu/stm32: move stm32l5 default PLL N to cpu 2020-11-10 09:34:07 +01:00
Alexandre Abadie
36d33d38f7
cpu/stm32: move stm32l4+ default PLL N to cpu 2020-11-10 09:34:07 +01:00
Alexandre Abadie
ef5897775d
cpu/stm32l4wb: add missing define for PLL HSI source 2020-11-10 09:34:07 +01:00
Alexandre Abadie
934028c114
cpu/stm32: fix l4l5wb clock configuration
Default values were wrong for WB when using HSE 32MHz as PLL input source
Default PLL input source was wrong when not using HSE and the board
provides an HSE
2020-11-10 09:34:07 +01:00
Alexandre Abadie
f111fd8447
cpu/stm32/kconfig.clk: adapt for l4/l5/wb 2020-11-10 09:34:06 +01:00
Francisco Molina
c4edff3a59
boards cpu: move OpenWSN defintions to openwsn_defs.h 2020-11-10 07:46:35 +01:00
Benjamin Valentin
bad385ab7c cpu/efm32: RTC Series 0: use RTC helper functions
By using the RTC helper functions instead of POSIX mktime()/gmtime()
we can not only extend the RTC range beyond Y2038.

For tests/periph_rtc:

before:

   text	   data	    bss	    dec	    hex	filename
  28028	    248	   2472	  30748	   781c stk3700/tests_periph_rtc.elf

after:

   text	   data	    bss	    dec	    hex	filename
  19400	    144	   2424	  21968	   55d0 stk3700/tests_periph_rtc.elf

fixes #13277
2020-11-09 17:57:57 +01:00
Koen Zandberg
d2a46f58c2
stm32/flashpage: use void pointer for flash address 2020-11-09 14:28:42 +01:00
Marian Buschsieweke
008e2d3b97
cpu/msp430_common: Prevent conflicting defines
irq_arch.h previously included cpu.h, which in term included the vendor header
files. Those were needed to get the GIE define (general interrupt enable bit).
However, the vendor files use fancy defines like `#define N (0x0004)` that
easily conflict with application code. Due to the widespread use of the IRQ API,
it is better to not include the vendor files in irq_arch.h.

This commit adds a local define for the GIE bit and uses this instead of
including cpu.h.
2020-11-06 21:10:19 +01:00
benpicco
5c3f257223
Merge pull request #15387 from fjmolinas/pr_cc2538_flashpage
cpu/cc2538: add flashpage & flashpage_raw
2020-11-06 19:08:28 +01:00
Francisco Molina
dcfc7f1158
cpu/cc2538: add flashpage & flashpage_raw 2020-11-06 18:00:17 +01:00
Leandro Lanzieri
7185edb070
cpu/sam0_common/periph: add periph_rtc_rtt module to Kconfig 2020-11-06 15:57:56 +01:00
lutgaru
b8a8875086 cpu/cc26x0: implement setuptrimdevice function for cc26x0 2020-11-05 23:59:36 -08:00
Francisco
aa79f4da17
Merge pull request #15078 from aabadie/pr/cpu/stm32f0f1f3_mco
cpu/stm32f0f1f3: add MCO configuration and initialization
2020-11-06 08:56:43 +01:00
lutgaru
30575f9db8 cpu/cc26x0: refactor vendor code to ensure correct build in riot 2020-11-05 23:32:05 -08:00
lutgaru
5f125ea81a cpu/cc26x0: add vendor files 2020-11-05 23:25:49 -08:00
Alexandre Abadie
afba298bc1
cpu/stm32f0f1f3: configure and initialize MCO 2020-11-05 21:59:00 +01:00
Alexandre Abadie
565242f67e
Merge pull request #15073 from aabadie/pr/cpu/stm32l0l1_mco
cpu/stm32l0l1: add MCO configuration and initialization
2020-11-05 17:03:32 +01:00
Alexandre Abadie
f98f5f5b49
Merge pull request #15084 from aabadie/pr/cpu/stm32gx_mco
cpu/stm32gx: add MCO configuration and initialization
2020-11-05 16:46:04 +01:00
Benjamin Valentin
a90016740c cpu/stm32/clk/f2f4f7: add config for 25 MHz HSE 2020-11-05 15:46:11 +01:00
Alexandre Abadie
5a2409557f
cpu/stm32gx: configure and initialize MCO 2020-11-05 13:39:19 +01:00
Alexandre Abadie
4b316c593a
cpu/stm32l0l1: configure MCO 2020-11-05 13:37:34 +01:00
Alexandre Abadie
18b5f417d1
cpu/stm32l4: implement MCO configuration 2020-11-05 13:34:45 +01:00
Bas Stottelaar
6d472b5d23 cpu/efm32: extend timer isr 2020-11-04 22:11:49 +01:00
Benjamin Valentin
5ecfd67a6e native/mtd: implement .write_page() 2020-11-03 22:45:27 +01:00
Marian Buschsieweke
60802f864a
Merge pull request #15149 from benpicco/cpu/samd21-gclk7
cpu/samd21: improve GCLK7 magic
2020-11-03 18:14:09 +01:00