Jannes
1848b0a5c2
cpu/stm32_common/periph: Fix multicast filtering
2020-02-26 15:57:59 +01:00
Jannes
4bb0d8bd6c
cpu/stm32_common/periph: Fix addr filtering
...
- Set MACFFR to unicast filtering
- Change byte-order of the MAC
2020-02-21 11:41:39 +01:00
bd844435af
stm32: Add dw USB OTG FS usbdev driver
2020-02-11 15:50:18 +01:00
Karl Fessel
b4b9ffe362
cpu/stm32/eth: luid_get_eui48 match type information
...
changed type of hwaddr to eui48
moved hwaddr declaration where it is needed
2020-01-29 16:58:36 +01:00
Karl Fessel
7483826356
cpu/stm32/eth: Use luid_get_eui48 to generate local, non group EUI
...
luid_get may generate non compliant EUI (MAC-address) luid_get_eui48
fixes that.
2020-01-29 15:57:54 +01:00
a32c1074ad
cpu/stm32: move all dependencies to Makefile.dep
2020-01-28 13:18:39 +01:00
9ae1cc9d74
cpu/stm32: remove use of export for LINKFLAGS
2020-01-02 09:50:35 +01:00
William MARTIN
1d54137295
cpu/stm32l0: add stm32l010xx family
...
This adds support for members of the stm32l010xx family.
Co-authored-by: William MARTIN <wysman@gmail.com>
2019-12-13 14:14:28 +01:00
Jannes
e88bbb0d6e
cpu/stm32_common: Edit documentation
2019-11-27 14:15:57 +01:00
6dbd5eeab9
cpu/stm32_common: fix typos
2019-11-23 22:39:36 +01:00
Francois Berder
4a31f94cfc
many typo fixes
...
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2019-11-23 22:39:07 +01:00
Yegor Yefremov
df7e760588
doxygen/I2C: don't include overridden typedefs
...
Add missing #ifndefs to overridden I2C typedefs.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2019-11-15 10:35:33 +01:00
Jue
b037bce7ab
cpu/stm32_common: fixed RAM_LEN for stm32f105__ and stm32f107__
2019-11-13 19:58:44 +01:00
Jue
ef9363a509
cpu/stm32_common: fixed RAM_LEN for stm32f103_c
2019-11-13 19:57:59 +01:00
benpicco
926bdc9a9f
Merge pull request #12579 from bergzand/pr/stm32/lpclk_en_dis
...
stm32/cpu: Add functions for low power mode clock config
2019-11-01 23:16:37 +01:00
799823b630
stm32/cpu: Add functions for low power mode clock config
2019-11-01 20:19:41 +01:00
fd2d30c6e7
cpu/stm32_common: fix i2c_1 build with llvm toolchain
2019-10-27 15:44:07 +01:00
60748aee5d
Merge pull request #12571 from MrKevinWeiss/pr/fix/stm32/i2c/rreadbytes
...
stm32_common/i2c_2: Fix repeated read condition
2019-10-25 12:20:06 +02:00
MrKevinWeiss
df19d33b77
stm32_common/i2c_2: Fix repeated read condition
...
Fix the condition to return -ENOPNOTSUPP when i2c repeated read attempted.
Currently the error occures even if a read after write is attempted.
This is the standard way to i2c_read_reg which should be supported.
The -EOPNOTSUPP requires the previous R/W state to be reading.
This means a `I2C_SR2_TRA` must be checked to be 0.
2019-10-25 10:35:48 +02:00
Yannick Gicquel
d37adee32d
boards/stm32-based: allow SPI signals routed on multiple alternate functions
...
There is no hardware limitation for custom boards based on STM32 to uses
SPI bus with signals coming from different PORT and alternate functions.
This patch allow alternate's function definition per pin basis, thus enable
the support of SPI bus signals routed on differents PORT.
Signed-off-by: Yannick Gicquel <ygicquel@gmail.com>
2019-10-25 06:27:41 +02:00
5eedd9c629
stmclk: Fix M-factor shift for SAI PLL
2019-10-20 18:22:18 +02:00
Sebastian Meiling
742a23c75b
Merge pull request #12007 from MrKevinWeiss/devfixi2cflag
...
cpu/stm32: Fix read bytes flag for i2c_2
2019-10-17 09:14:26 +02:00
Gunar Schorcht
02d81b717e
Merge pull request #12063 from maribu/i2c_release
...
drivers/periph/i2c: Updated i2c_release() to return void
2019-10-01 19:50:38 +02:00
Gaëtan Harter
4b93f27d83
cpu: use makefiles/utils uppercase
...
Convert the variables to uppercase using the 'makefiles/utils' function.
2019-09-30 17:25:24 +02:00
711854562b
Merge pull request #12236 from twostairs/cpu_stm32_common_periph_gpip-pd
...
cpu/stm32_common/periph/gpio: Pull-down on gpio_init_af
2019-09-18 20:02:40 +02:00
Marius
e87529b4e4
Pull-up on RX pin
2019-09-15 23:55:39 +02:00
aed12b4853
Merge pull request #11252 from fjmolinas/pr_wdg_stm32
...
cpu/stm32_common: add watchdog for stm32
2019-09-13 09:16:18 +02:00
Francisco Molina
f54c2dbbda
cpu/stm32_common: add watchdog for stm32
2019-09-12 19:07:40 +02:00
Benjamin Valentin
b1724a7d1b
periph/rtc: normalize struct tm before usage
...
A naive implementation may set a RTC alarm in 30s by calling
struct tm now;
rtc_get_time(&now);
now.tm_sec += 30;
rtc_set_alarm(&now, _cb, NULL);
This works for RTC implementations that use a RTT internally and call
mktime() to convert the struct tm to a unix timestamp, as mktime() will
normalize the struct in the process.
Call rtc_tm_normalize() when the RTC uses separate registers for time / date
components to ensure it is normalized.
This also modifies tests/periph_rtc to exercise this case.
2019-09-12 11:32:31 +02:00
3d8c4d52d1
Merge pull request #12100 from OTAkeys/pr/fix_uart_poweroff
...
cpu/stm32_common/uart: fix rare uart failure
2019-09-10 10:25:46 +02:00
88e07c06d2
Merge pull request #11367 from maribu/arm_early_stdio
...
cpu: Moved stdio_init() prior to periph_init() for ARM targets
2019-09-09 16:52:30 +03:00
Francisco Molina
516e62688a
cpu/stm32_common: fix STM32F7 CLOCK_LSI definition
2019-09-09 10:11:57 +02:00
Marian Buschsieweke
df27dbef7a
cpu: Moved stdio_init() into cpu_init()
...
- Removed stdio_init() from newlib's _init(), as this is too late in the boot
process to allow DEBUG()ing during periph_init()
- Added stdio_init() to the various cpu_init() routines of the ARM CPUs just
before periph_init()
2019-09-06 16:54:23 +02:00
Toon Stegen
95b61a1970
cpu/stm32_common/uart: fix typos in rts/cts pins
2019-08-30 14:17:14 +02:00
Gaëtan Harter
1be5b7b10b
cpu: do not locally export compilation variables
...
These are already exported by `makefiles/vars.inc.mk`.
It is a prerequisite to allow handling compilation without global exports.
2019-08-29 10:35:53 +02:00
Toon Stegen
3f74a8a7b4
cpu/stm32_common/uart: init rts at right time
...
once hardware flow control is enabled, rts should only be initialized
after the uart is enabled by setting the UE flag. This is stated in the
stm32f4 errata.
2019-08-27 19:15:47 +02:00
Toon Stegen
ac1d1ffda2
cpu/stm32_common: enable/disable uart peripheral
...
in uart_poweroff the peripheral should be disabled through the register
instead of just disabling the peripheral clock. In uart_poweron the
peripheral should be enabled after enabling the clock.
Not explicitely disabling the peripheral causes some bad signals on the
uart line sometimes.
2019-08-27 19:09:36 +02:00
Marian Buschsieweke
b604934189
cpu/stm32_common: Updated i2c_release()
2019-08-22 12:03:08 +02:00
MrKevinWeiss
b0c05431f7
cpu/stm32: Fix 16 bit reg endianess for i2c_1
...
Since i2c_1 i2c_write_regs is cpu specific reg endianess must be swapped there
Change reg from little endian to big endian
2019-08-16 15:04:13 +02:00
MrKevinWeiss
fb38cf37fd
cpu/stm32: Fix read bytes flag for i2c_2
...
This commit stops a repeated start read which causes slave bus lockup
When trying to do a repeaded start i2c_read_bytes it returns -EOPNOTSUPP error
2019-08-14 16:32:28 +02:00
fabian18
2c001f5a6c
drivers/include/periph/eeprom: Changed uint8_t* to void* in API
2019-08-09 17:27:32 +02:00
Benjamin Valentin
b8c4ab5b69
cpu: make use of ARRAY_SIZE macro
2019-08-06 19:43:54 +02:00
51e40084c1
Merge pull request #11832 from fjmolinas/pr_optimize_pm_stm32l1
...
cpu/stm32l1: optimize power consumption
2019-08-06 09:34:07 +02:00
c2d81fc246
stm32-common/spi: add customizable gpio modes for spi pins
2019-08-05 16:46:41 +02:00
Francisco Molina
3cd72441bd
cpu/stm32_common: minimize consumption for STM32L1
...
- With this PR all GPIOs are set as AIN on start up.
Co-authored-by: Oleg Artamonov <oleg@unwds.com>
2019-08-05 15:40:35 +02:00
d99879eb32
Merge pull request #11489 from fjmolinas/pr-update_stm32l1-cmsis
...
stm32l1/vendor: update vendor files to v2.3.0
2019-08-05 15:03:09 +02:00
f4d65e10cd
Merge pull request #11897 from fjmolinas/pr_stm32_common_define_alignment
...
cpu/stm32_common: uniformize define alignments
2019-08-05 11:27:36 +02:00
francisco
e4a49f023e
stm321l1/vendor: migrate to new v2.3.0 vendor files
...
- remove old header files
- fix new DMA header file macro definitions
- remove old cpu type groups (STM32L1XX_MD, STM32L1XX_MDP,
STM32L1XX_HD, STM32L1XX_XL)
2019-08-05 11:13:08 +02:00
Francisco Molina
c166b73e61
cpu/stm32_common: uniformize define alignments
2019-07-24 09:02:47 +02:00
Francisco Molina
128e6ed2c9
stm32_common/gpio: remove unused guard
2019-07-23 17:05:37 +02:00