Gilles DOFFE
7a2550da9b
cpu/stm32: add stm32mp1 peripheral busses
...
Add stm32mp1 peripheral busses AHB1, AHB2, AHB3 and AHB4 with
enable/disable functions.
Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com>
2020-11-13 10:43:08 +01:00
Gilles DOFFE
67f37950a0
cpu/stm32: default i2c configuration
...
* Setup i2c speed to I2C_SPEED_LOW by default
* enable i2c_write_regs() function.
* i2c frequency needs to be specified into board periph_conf.h
Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com>
2020-11-13 10:43:08 +01:00
Gilles DOFFE
f39aa979af
cpu/stm32: setup CLOCK_LSI for stm32mp1
...
Set stm32mp1 family LSI clock frequency to 32KHz as specified in datasheet.
STM32MP157C example:
https://www.st.com/resource/en/datasheet/stm32mp157c.pdf
Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com>
2020-11-13 10:43:08 +01:00
Gilles DOFFE
ba5f8e1cda
cpu/stm32: consider starting white spaces in gen_vectors.py
...
In some CMSIS headers, "typedef enum" could be preceded by white
spaces. Thus consider them when parsing the line.
Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com>
2020-11-13 10:43:08 +01:00
Leandro Lanzieri
0e52e2747e
drivers: remove netif as dependency for network device drivers
2020-11-13 09:25:59 +01:00
Leandro Lanzieri
d4be753df8
cpu/native: remove unused can_linux module
...
b4f29035ce6ee12949df1227ee463340ea8e8571 adapted the can_linux module to
the periph_can interface. This is a cleanup of some things that stayed
behind. Here the makefile is removed, the references to can_linux in the
dependency resolution and configuration Makefile are changed to the
standard periph_can, and the startup code is adapted.
2020-11-13 09:11:50 +01:00
benpicco
d9598a0f54
Merge pull request #15412 from bergzand/pr/flashpage/merge_raw
...
periph_flashpage: Make pagewise API optional
2020-11-12 22:32:21 +01:00
benpicco
93b978bb66
Merge pull request #15258 from lutgaru/cc26x0setuptrimdevice
...
Cc26x0setuptrimdevice
2020-11-12 22:20:32 +01:00
Alexandre Abadie
792e031a95
Merge pull request #14331 from maribu/atomic_utils
...
sys/atomic_utils: Functions for atomic access
2020-11-12 21:44:53 +01:00
Koen Zandberg
1c063a74ea
stm32: Adapt to flashpage/flashpage_pagewise API
2020-11-11 23:16:42 +01:00
Koen Zandberg
72d7a903a2
sam0: Adapt to flashpage/flashpage_pagewise API
2020-11-11 23:16:41 +01:00
Koen Zandberg
61052dbed7
msp430: Adapt to flashpage/flashpage_pagewise API
2020-11-11 23:16:41 +01:00
Koen Zandberg
e176649266
nrf5x: Adapt to flashpage/flashpage_pagewise API
2020-11-11 23:16:40 +01:00
Koen Zandberg
f85594eb55
kinetis: Adapt to flashpage/flashpage_pagewise API
2020-11-11 23:16:39 +01:00
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