Hauke Petersen
a956d71a67
cpu/stm32_common/gpio: use gpio_irq feature
2018-09-21 08:19:51 +02:00
MichelRottleuthner
2db68b600b
Merge pull request #9505 from PeterKietzmann/pr_puf_stm32
...
cpu/stm32_common: add PUF SRAM feature to makefile
2018-08-17 13:08:21 +02:00
Martine Lenders
9478274bd9
stm32_common/eeprom: fix DEBUG formatting
...
This fixes compilation for `periph_eeprom` with LLVM/clang and also is
more in accordance with our [coding conventions].
[coding conventions]: https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions#-wformat
2018-08-14 14:56:44 +02:00
a008b983b3
cpu/stm32_common: add flashpage support for stm32l4
2018-08-06 12:33:03 +02:00
Martine Lenders
6f78a7f331
stm32_common: i2c_2: fix for -Wunused-function
...
This came up when compiling an application for a STM32-based board
with LLVM/clang. The function is not used if I²C is not provided.
2018-08-03 16:12:52 +02:00
dylad
69297a0939
cpu/stm32_common: remove scl_af/sda_af attribut for STM32F1
2018-07-25 15:17:43 +02:00
5f1d5e0d83
cpu/stm32_common: various improvements in i2c_1 driver
...
- dont send stop if bus is busy and before any action is done on bus
- and bus check that looks for bus error, arbitration and nack events
- check for ACK (TXIS) before writing bytes on bus and not between each write
2018-07-25 12:01:39 +02:00
MrKevinWeiss
e8c56ceadc
cpu/stm32_common/i2c: Fix return error code
2018-07-25 12:01:39 +02:00
MrKevinWeiss
6016266c77
cpu/stm_common/i2c: Fix error code
2018-07-25 12:01:38 +02:00
MrKevinWeiss
6a3f9f35dc
cpu/stm32_common/i2c: Fix extra clear_addr
2018-07-25 12:01:38 +02:00
MrKevinWeiss
6f6c3d7926
cpu/stm_common/i2c: style fix
2018-07-25 12:01:38 +02:00
MrKevinWeiss
6c4f144e25
cpu/stm32_common/i2c: fix addr nack and flags
2018-07-25 12:01:38 +02:00
99b3bb88bd
cpu/stm32_common: update return values to error codes
2018-07-25 12:01:37 +02:00
Vincent Dupont
c0c9ea034c
cpu/stm32_common: add timeouts in stm32f4 i2c driver
2018-07-25 12:01:37 +02:00
06e11c5586
cpu/stm32_common: adapt i2c driver to stm32f1
2018-07-25 12:01:37 +02:00
9166fb27fa
cpu/stm32_common: split common i2c periph in 2
...
- i2c_1 is built for f0, f3, f7, l0 and l4
- i2c_2 is built for f4
2018-07-25 12:01:36 +02:00
ebc17acb59
cpu/stm32{f0,f3,f7,l0,l4}: unify i2c driver and use new API
2018-07-25 12:01:35 +02:00
Michel Rottleuthner
b36131eea6
cpu/stm32_common: add variable for SRAM2 length on stm32l47xxx
2018-07-17 17:52:12 +02:00
Michel Rottleuthner
5610894ebe
stm32_common: fix ram length for MCUs with non-contiguous ram
...
stm32l47xxx see RM0351, Rev 6, page 75
https://www.st.com/resource/en/reference_manual/dm00083560.pdf#page=75
stm32f303xx see RM0316, Rev 8, page 53
https://www.st.com/resource/en/reference_manual/dm00043574.pdf#page=53
stm32f334xx see RM0364, Rev 3, page 47
https://www.st.com/resource/en/reference_manual/dm00093941.pdf#page=47
2018-07-17 17:12:57 +02:00
Vincent Dupont
bdac278c18
cpu/stm32_common/hwrng: use CPU_LINE for for stm32f410-specific code
2018-07-09 11:52:05 +02:00
Vincent Dupont
654595221d
cpu/stm32_common: use CPU_LINE for stm32f410-specific code
2018-07-09 11:51:39 +02:00
PeterKietzmann
45d47ea22f
cpu/stm32_common: add PUF SRAM feature to makefile
2018-07-05 16:21:14 +02:00
Vincent Dupont
f4c01499c6
Merge pull request #9096 from OTAkeys/pr/stm32_cpu_line
...
cpu/stm32: add CPU_LINE_* variable and use it for stm32f0 and stm32f4
2018-06-27 00:21:02 -07:00
Vincent Dupont
e1ce7e5026
cpu/stm32_common: add STM32_FLASHSIZE constant
2018-06-19 14:31:23 +02:00
Vincent Dupont
4d7a195d33
cpu/stm32_common: add CPU_LINE_ variable
2018-06-19 14:22:46 +02:00
600727453b
cpu/stm32_common/flashpage: clear EOP bit
...
This was taken from STM32 Cube generated code
2018-05-30 14:14:29 +02:00
f7b61b6ac1
cpu/stm32_common/flashpage: force waiting for pending operations
...
Moving the while loop in a separate function ensures no ordering
optimizations is applied silently by gcc.
This commit fixes the flashpage not working on iotlab-m3.
2018-05-30 14:12:24 +02:00
c73ec5c00f
cpu/stm32_common/periph: don't lock if flash is already locked
2018-05-30 14:09:17 +02:00
cb089a2f74
cpu/stm32_common/periph: cleanup flashpage
...
- improve debug messages
- fix missing space before comment
- use a comment instead of debug message (the same message is displayed by the function called after)
2018-05-30 14:09:17 +02:00
89e0389f27
cpu/stm32_common: implement eeprom access functions
2018-05-24 14:07:55 +02:00
Vincent Dupont
8fc63738f6
cpu/stm32_common: adapt UART driver to use DMA
2018-05-23 11:09:46 +02:00
Vincent Dupont
6551d896be
cpu/stm32_common: adapt SPI driver to use DMA
2018-05-23 11:09:46 +02:00
Vincent Dupont
d399518ac6
cpu/stm32_common: add DMA implementation for F2/F4/F7
2018-05-23 11:09:46 +02:00
83e8a52176
Merge pull request #9089 from gebart/pr/ldscript-attrs
...
cpu: ldscript memory attribute corrections
2018-05-09 09:26:20 +02:00
Joakim Nohlgård
986000492d
stm32_common: Adjust ldscript memory segment attributes
2018-05-09 06:49:29 +02:00
Vincent Dupont
4e86e12247
cpu/stm32_common: add info-stm32 make target
2018-05-04 15:30:56 +02:00
Vincent Dupont
549bf0ef78
cpu/stm32: use const pointer in flashpage
2018-03-14 16:28:33 +01:00
67190a31ef
cpu/stm32_common: unify flashpage support
2018-03-13 16:30:04 +01:00
Aurelien Fillau
0368239a63
cpu/stm32l0: power management updated
...
Now, MCU is able to go in stop mode if necessary when
periph_pm feature is activated.
Regarding LPSDSR bit that deactivates or not regulator in stop
mode, it is up to the user to set/clear this bit. In order
to save power, voltage regulator can be set in low power state
during stop mode but it increases wakeup time.
Signed-off-by: Aurelien Fillau <aurelien.fillau@gmail.com>
2018-03-11 11:01:25 +01:00
7f150d6041
Merge pull request #7787 from OTAkeys/pr/stm32_pm_periph
...
cpu/stm32: add pm support in uart, spi and i2c (f4)
2018-03-06 16:34:44 +02:00
Hauke Petersen
e78b055787
Merge pull request #8556 from kaspar030/stm32_gpio_read
...
cpu: stm32_common: always do gpio_read() from input register
2018-03-06 15:30:01 +01:00
Vincent Dupont
34e8609f2c
cpu/stm32_common: add pm support in spi driver
2018-03-06 15:13:01 +01:00
Vincent Dupont
1aee2f1f14
cpu/stm32_common: add pm support in uart driver
2018-03-06 15:13:00 +01:00
Vincent Dupont
c01e8629ec
cpu/stm32_common: add PM modes
2018-03-06 15:12:58 +01:00
58e172e4df
cpu/stm32_common: always enable PWR module
2018-03-06 14:55:32 +01:00
3b42fb49b5
cpu/stm32: unify cpu_init()
2018-03-05 12:35:00 +01:00
Gilles DOFFE
bee493ac71
cpu/stm32_common: add qdec implementation
...
* Add support for the STM32 encoder interface
* The STM32 only supports X2 and X4 modes.
* Enable interrupt handler on counter overflow
* Add simple test code for QDEC based on nucleo-f401 board
Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2018-02-23 23:17:26 +01:00
83bff5c643
cpu: stm32_common: always do gpio_read() from input register
2018-02-13 21:51:45 +01:00
Vincent Dupont
972eeefe6e
stm32_common/rtt: add support for stm32f4
2018-02-08 17:39:39 +01:00
Francisco Acosta
38880acad8
Merge pull request #7799 from kYc0o/factorise_stm32_ld
...
ld: refactor stm32 linker scripts
2017-11-30 14:28:51 +01:00