1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

48 Commits

Author SHA1 Message Date
Hauke Petersen
3ede8e9d95 cpu: force size of CPU specific vector table 2017-09-04 15:13:43 +02:00
Hauke Petersen
1a20ef8223 cpu: unified cortex-m base interrupt vector 2017-09-04 15:13:32 +02:00
acfa727151 Merge pull request #7477 from OTAkeys/pr/fix_stm32_clk
cpu/stm32f[2|4|7]: unify stmclk and improve PLL configuration
2017-08-29 21:35:06 +02:00
Vincent Dupont
d2a4acecd9 cpu/stm32_common: unify stmclk for stm32f[2|4|7] and adapt to use clk_conf 2017-08-28 17:51:00 +02:00
1bcb13d6ef cpu/stm32f2: cleanup interrupt vectors definitions 2017-08-23 22:20:26 +02:00
Hauke Petersen
5422f0da72 stm32: unified parts of stmclk implementations
- unified dbp, hsi, and lfclk functions
- all of them now work for all STM32 CPUs
- renamed from bdp to dbp as this is the expression used
  in the reference manuals (old naming was a typo...)
2017-08-21 17:40:22 +02:00
Hauke Petersen
73ede74cd8 cpu/stm32: unified and cleaned up DAC driver
- removed neccessity to define empty `DAC_NUMOF 0` for each STM
  base board
- adapted all board configs to this
- joined stm32f2 to use common DAC driver
- improved code of DAC driver
2017-06-29 13:03:12 +02:00
Hauke Petersen
a2bc258af0 drivers/dac: clarified doc and named return values
- added more comprehensive doc to dac_init and dac_set
- named return values for dac_init
- use named return values in existing implementations
2017-06-27 12:52:12 +02:00
smlng
692cf96297 doc: fix doxygen grouping of cpu periph drivers 2017-06-26 14:42:11 +02:00
Vincent Dupont
73e0fa25e4 cpu/stm32f2: convert to stmclk 2017-06-08 19:10:55 +02:00
Vincent Dupont
91e601280c cpu/stm32f2: update vendor headers 2017-06-08 19:10:55 +02:00
Joakim Nohlgård
339a4da9dc Makefiles: move to new directory /makefiles 2017-04-04 15:11:54 +02:00
Hauke Petersen
2a6a82ce2c cpu/stm32_common: unified hwrng driver 2017-03-30 17:18:31 +02:00
Vincent Dupont
7b686b3015 cpu/stm32_common: unify gpio driver 2017-03-13 15:09:12 +01:00
Hauke Petersen
997244f9d7 cpu/stm32f2: fixed blank lines at EOF 2017-03-07 08:55:16 +01:00
Hauke Petersen
37d4f44379 cpus: mv vendor headers to include/vendor/. 2017-03-07 08:55:15 +01:00
Hauke Petersen
2f9e3c89e1 periph/hwrng: use void* buf for hwrng_read() 2017-02-07 13:20:39 +01:00
ac82506d7d cpu: stm32: remove SPI rework leftovers 2017-01-26 11:16:31 +01:00
Hauke Petersen
5bdb3bfa61 misc: aggregated doxygen fixes 2017-01-25 16:46:46 +01:00
Hauke Petersen
4bfce892d3 drivers/periph&cpu: add and use common periph_init() 2017-01-25 16:46:46 +01:00
Hauke Petersen
0edef2a0e1 cpu/stm32*+boards: adapted to new SPI API
- adapted the SPI driver
- adapted all boards using the CPU
2017-01-25 16:46:45 +01:00
Vincent Dupont
05475f9600 cpu/stm32_common: unified RTC driver 2017-01-24 15:16:47 +01:00
5798beca64 cpu: stm32f1/2/4: unify periph/pm support 2017-01-12 16:26:02 +01:00
0194091673 remove obsolete lpm code 2017-01-12 11:24:15 +01:00
Hauke Petersen
625d804fcb cpu/stm32_common: unified UART driver 2017-01-05 11:00:18 +01:00
Hauke Petersen
5afb191027 cpu/stm32x: unified gpio_init_af() function 2017-01-05 10:58:54 +01:00
Oleg Hahm
ea83b8c14f Merge pull request #5856 from OTAkeys/pr/stm32f2_pll_i2s
stm32f2: add initialization of PLL I2S for MCO2
2016-12-23 10:47:29 +01:00
Hauke Petersen
3a00fe8e49 cpus: make use of cortexm_isr_end() 2016-12-21 11:28:46 +01:00
Pieter Willemsen
a0835ccb1d stm32: use periph_clk_en/dis functions for clock changes 2016-12-16 15:01:56 +01:00
Hauke Petersen
4d09d09ee4 cpu/stm32x: unified PWM driver 2016-12-15 12:18:39 +01:00
Vincent Dupont
283f0c3b29 stm32f2: improve MCO2 clock output support
MCO2 output prescaler can be set by using:

Valid values are in range 1 - 5
2016-12-14 10:56:46 +01:00
Toon Stegen
5f6b182a8d stm32f2: add initialization of PLL I2S for MCO2
To use it, add the following defines to your periph_conf.h:
/* prescaler for 8MHz I2S clock */
#define ENABLE_PLLI2S_MCO2  1
#define CLOCK_PLL_I2S_R     (6U)
#define CLOCK_PLL_I2S_N     (240U)
2016-12-14 10:56:46 +01:00
Hauke Petersen
0aa70faa3d cpu/stm32f2: temporarily removed PWM driver 2016-12-09 12:20:03 +01:00
Hauke Petersen
47b379e45d cpu/stm32x: unified timer driver 2016-12-09 12:20:03 +01:00
Hauke Petersen
e50479f84f cpu/stm32: changed TIM->CCR def in vendor headers 2016-12-09 12:20:03 +01:00
Peter Kietzmann
e547ff1d60 Merge pull request #6013 from haukepetersen/opt_periph_uartreturntypes
periph/uart: added names to return values
2016-11-29 19:14:09 +01:00
zhuoshuguo
672b99c9e1 cpu/stm32f2: fix include guards. 2016-11-16 11:29:55 +01:00
Hauke Petersen
2eebf36eb2 cpu/uart: make use of named return values 2016-10-28 10:32:00 +02:00
Kees Bakker
bac5cda1e3 periph/i2c: convert char to uint8_t where applicapable
In general, data transferred through I2C are bytes and thus should have
type uint8_t, not char.

Also convert uint8_t ptrs to void ptrs
2016-10-04 20:26:39 +02:00
Toon Stegen
77c9ee043f stm32f2: add adc and lpm
changes taken from DipSwitch's board: EMW3162 #4498 PR.
- Adds a functional implementation of the ADC
- Implements low power mode
2016-07-25 10:34:57 +02:00
Toon Stegen
7a0e81923b stm32f2: fix dac compilation
this is copied from DipSwitch's pr
2016-07-19 12:10:16 +02:00
Toon Stegen
71dce7584f stm32f2: i2c: update driver
Remove unneeded workaround from stm32f1
Make pullup configurable
Fix OAR1 register initialization
improve i2c read functions with repeatead start conditions
avoid to any loop to become infinite
improve i2c driver error handling
add missing coma in array initializers
2016-04-22 14:03:21 +02:00
Vincent Dupont
70c8bff842 stm32f2: update timer and pwm drivers 2016-04-14 14:44:19 +02:00
Aurelien Gonce
d01da278ac stm32f2: Update hwrng driver 2016-04-13 15:47:12 +02:00
Hermann Lelong
182be862bb stm32f2: Improve UART driver
Add missing DMA interrupts for UART
Improve baudrate intialization:
 - Return error if baudrate is theorically unreachable
 - Implement oversampling by 8 method for high baudrates
Add UART hardware flow control support
Ensure uart tx thread safety with a mutex
Allow setting of pins mode per UART
2016-04-01 16:38:49 +02:00
Vincent Dupont
ab8f9f148e stm32f2: Add RTC driver
The driver was imported from stm32f0
Fixes:
 - Fix 12/24h handling (CR flag badly used)
 - Fix interrupt flag clearance and interrupt name
2016-03-31 16:34:04 +02:00
Vincent Dupont
15b6814d9b stm32f2: Update with last api changes
* Update headers from ST
* Add linker scripts
2016-03-23 15:26:18 +01:00
DipSwitch
4064858e8d stm32f2: add initial support for stm32f2 2015-12-13 11:00:06 +01:00