Francisco Acosta
b7774a2b4c
Merge pull request #6467 from OTAkeys/feat/flashpage_stm32
...
cpu/stm32f0: add flashpage driver from stm32f1 + fix stm32f1 driver
2017-02-03 15:37:44 +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
54dc75d63c
cpu/stm32f1: fix flashpage driver HSI disabling
2017-01-24 18:11:06 +01:00
Loïc Dauphin
480e966737
cpu/stm32f1: add opencm9-04 specific linker script
2017-01-20 18:10:42 +01:00
3e49d0c8c6
Merge pull request #6434 from aabadie/petersen_typo
...
cpu: fix typo in author email
2017-01-20 10:43:24 +01:00
245f60edfa
cpu: fix typo in author email
2017-01-19 21:45:23 +01:00
Oleg Hahm
7ee7801c10
*: remove trailing underscores from header guards
2017-01-19 18:30:53 +01:00
Hauke Petersen
6270283033
Merge pull request #6160 from kaspar030/introduce_new_power_management
...
Introduce new power management
2017-01-12 17:31:49 +01:00
5798beca64
cpu: stm32f1/2/4: unify periph/pm support
2017-01-12 16:26:02 +01:00
066332d6dc
cpu: stm32f1: add periph/pm support
2017-01-12 16:26:02 +01:00
0194091673
remove obsolete lpm code
2017-01-12 11:24:15 +01:00
PeterKietzmann
40976cb40a
cpu/stm32f1: optimize ACR setting and move to cpu.c
2017-01-10 17:09:23 +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
Hauke Petersen
3a00fe8e49
cpus: make use of cortexm_isr_end()
2016-12-21 11:28:46 +01:00
Ludwig Knüpfer
0d628b6dc3
Merge pull request #6110 from lebrush/stm32f1-no-pll
...
cpu/stm32f1: implement lpm + run without PLL
2016-12-18 19:33:04 +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
47b379e45d
cpu/stm32x: unified timer driver
2016-12-09 12:20:03 +01:00
Victor Arino
419dcfdf11
cpu/stm32f1: allow to run without PLL
2016-12-06 10:08:41 +01:00
Hauke Petersen
c3a4a44f49
cpu/stm32f1: added flashpage driver implementation
2016-11-30 16:51:09 +01:00
Victor Arino
163d1634a7
cpu/stm32f1: remove unnecessary line
2016-11-11 15:25:37 +01:00
Victor Arino
787d255ccd
cpu/stm32f1: implement lpm
2016-11-11 15:25:26 +01:00
Hauke Petersen
2eebf36eb2
cpu/uart: make use of named return values
2016-10-28 10:32:00 +02:00
Hauke Petersen
f2eb4618f2
boards/spark-core: added custom linkerscript
2016-10-24 17:36:31 +02:00
Hauke Petersen
ecb24e55bf
cpu/stm32f103cb: generalized linkerscript
2016-10-24 17:35:44 +02:00
PeterKietzmann
f57e185f5d
cpu/stm32f1: remove leftover from #5921
2016-10-19 12:21:42 +02:00
PeterKietzmann
bb4bf51020
cpu/stm32f1: improve SPI driver speed
2016-10-19 08:56:18 +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
5ab97fe38b
cpu: build cortexm vectors.c without LTO
2016-08-29 13:30:17 +02:00
Joakim Nohlgård
0a847d53a7
cpu: Fix array-bounds errors with GCC 6
2016-07-13 19:23:42 +02:00
René Kijewski
f31a70de60
Merge pull request #5578 from zhuoshuguo/fix_stm32f_include_headers
...
cpu/stm32: fix header include guards
2016-07-05 15:20:21 +02:00
Ian Martin
49ae438dd5
doc: eliminate clutter in adc and gpio periph docs
2016-06-29 15:08:32 -04:00
zhuoshuguo
10f8ce1118
cpu/stm32: fix include header guards.
2016-06-28 20:30:29 +02:00
Peter Kietzmann
5817d91b91
Merge pull request #5192 from DipSwitch/pr/fix_stm32f1_also_disable_hsi_on_hse
...
cpu/stm32f1: Disable HSI when using the HSE as system clock
2016-05-17 10:51:46 +02:00
DipSwitch
945f01f7e0
[SQUASH] Remove unrelevant changes
2016-04-05 23:54:01 +02:00
DipSwitch
a259cc42b0
[SQUASH] Make PLL_DIV and PLL_MUL behave the same as for the F3 and F4
2016-04-05 23:51:55 +02:00
DipSwitch
edae42281b
[SQUASH] Tested HSI
2016-04-05 23:38:32 +02:00
DipSwitch
50fda7e07f
[SQUASH] Fix timer clock calculations
2016-04-05 23:22:50 +02:00
DipSwitch
9acc33396b
cpu/stm32f1: Disable HSI when using the HSE as system clock
2016-03-29 23:55:40 +02:00
DipSwitch
bd9b3a269c
cpu/stm32/perip/dac: Move DAC implementation to stm32_common/periph since all STM32 DAC's have the same basics
2016-03-29 22:25:50 +02:00
DipSwitch
6e9f36c0c5
cpu/stm32_common/gpio: Use default gpio_t type and defines
2016-03-29 22:25:50 +02:00
Hauke Petersen
e7c8e0b1f2
cpu/stm32f1: fixed pull selection in GPIO driver
2016-03-18 11:01:08 +01:00
Hauke Petersen
141f8c9ff6
cpu/stm32f1: adapted GPIO driver
2016-03-17 14:55:30 +01:00
DipSwitch
93bce6291c
Merge pull request #5090 from haukepetersen/opt_stm_clken
...
cpu/stm32_common: added shared periph_clk_en/dis functions
2016-03-16 23:02:20 +01:00
Hauke Petersen
61f8d45e03
cpu/stm32f1/timer: use common clk_en function
2016-03-16 12:24:51 +01:00
Hauke Petersen
be2100e2eb
cpu/stm32f1: made timer rcc_bit 32-bit
2016-03-16 10:53:16 +01:00
Hauke Petersen
dff203e7dd
cpu/stm32f1: reworked UART implementation
2016-03-16 10:43:45 +01:00
Hauke Petersen
99888549af
Merge pull request #4154 from DipSwitch/add_clock_selection_stm32f1
...
cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32F1 family
2016-03-15 19:10:43 +01:00
DipSwitch
2558050d9e
cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32F1
2016-03-15 17:50:39 +01:00
Hauke Petersen
1d6d54e1f2
Merge pull request #5076 from haukepetersen/opt_periph_uart_cbtype
...
drivers/uart: use uint8_t for data in cb signature
2016-03-15 15:17:44 +01:00
Hauke Petersen
b23cde98cf
cpus: adapted UART implementations to cb type change
2016-03-15 11:02:06 +01:00
DipSwitch
4a2134fd53
cpu/stm32f1/adc: Initial import for STM32F1 ADC
2016-03-14 22:52:26 +01:00
Joakim Nohlgård
7ce5f1b5c0
cpu/stm32f1: i2c: Use {} notation for empty while loops
2016-03-13 08:14:39 +01:00
Oleg Hahm
596c25daca
Merge pull request #4943 from gebart/pr/while-loops
...
Use {} notation for empty while loops
2016-03-09 13:42:32 +01:00
6881f65f46
cpu: cortexm*: move cpu_conf.h stuff from cpu.h into cpu_conf_common.h
2016-03-05 18:20:17 +01:00
Joakim Nohlgård
96a7583c2a
cpu/stm32f1: Use {} notation for empty while loops
2016-03-03 16:31:25 +01:00
Peter Kietzmann
2f0901bc64
Merge pull request #4932 from haukepetersen/opt_f1_timer
...
cpu/stm32f1: reworked timer implementation
2016-03-03 10:00:38 +01:00
Peter Kietzmann
e186eb9f70
Merge pull request #4736 from lebrush/stm32f1-i2c-fixes
...
stm32f1 i2c fixes
2016-03-02 16:55:13 +01:00
Hauke Petersen
360e392d69
cpu/stm32f1: reworked timer driver
2016-03-01 22:39:36 +01:00
Hauke Petersen
28976ec126
cpu/stm32f1: vendor header: opt timer CCR reg defs
2016-03-01 22:39:36 +01:00
Hauke Petersen
b11a3ad74b
cpus: adapted timer implementations to API changes
2016-02-29 14:45:00 +01:00
Joakim Nohlgård
19cee2d757
cpu/stm32f1: spi: Cast enum to unsigned int for comparison
2016-02-28 00:08:00 +01:00
Hauke Petersen
c82dda9b74
Merge pull request #4815 from DipSwitch/pr/fix_stm32_exti_isr
...
STM32 GPIO: Fix exti_isr handling to only call callbacks of lines with there IRQ enabled
2016-02-21 14:11:36 +01:00
DipSwitch
df996044e2
STM32 GPIO: Fix exti_isr handling to only call callbacks of lines with have there interrupt enabled
2016-02-21 09:43:42 +01:00
Joakim Nohlgård
e43f503cb6
cpu/stm32f1: Update to match timer_init API change
2016-02-13 21:29:36 +01:00
Hauke Petersen
ea8db10524
cpu/stm32: use common CPUID implementation
2016-02-10 09:12:30 +01:00
Hauke Petersen
bae3e7185a
cpu/stm32f1: use common STM32 files
2016-02-10 09:12:29 +01:00
Hauke Petersen
975e027360
cpu: use Hauke's correct email address
2016-02-09 16:09:40 +01:00
Hauke Petersen
940097336a
cpu: cleanup and unification of CPUID implementations
...
- moved definition of CPUID_LEN to periph_cpu.h
- fixed some doxygen
- simplyfied some implementations
2016-02-08 14:36:03 +01:00
Victor Arino
b40cb6bebb
stm32f1/i2c: uncrustify untouched code
2016-02-03 17:42:42 +01:00
Victor Arino
57e20941f5
stm32f1/i2c: add support for secondary i2c
2016-02-03 17:42:42 +01:00
Victor Arino
a477d6f81d
stm32f1/i2c: do not block in case of error
...
Due to the errata of some of the stm32f1xx family, the i2c lines need
to be toggled when setting up the peripheral. This however seems to
hang some i2c slaves which do not ack the first message sent after
initialization. This caused the code to be stucked waiting for the
never coming ACK. The same situation could occur when a byte was not
acked due to whatever reason.
The previous implementation of the i2c driver didn't allow recovery
on these situations. Now the driver does not block forever but rather
returns a <0 code to indicate that the transaction was not succesful.
2016-02-03 17:42:42 +01:00
Victor Arino
da5b03df5d
stm32f1/i2c: remove duplicated code
2016-02-03 17:42:42 +01:00
Victor Arino
be3279f9bc
stm32f1/i2c: fix multi byte reading
2016-02-03 17:35:29 +01:00
Hauke Petersen
ad0abdcadd
cpus: use default isr_ctx struct in GPIO drivers
2016-01-27 17:00:37 +01:00
Hauke Petersen
7cad2577ed
cpu/stm32f1: adjusted to new vendor headers
2016-01-26 23:45:50 +01:00
Hauke Petersen
b6194fad42
cpu/stm32f1: updated vendor header files
2016-01-26 23:45:50 +01:00
Victor Arino
82796f9aea
cpu/stm32f1: uncrustified spi driver
2015-12-15 17:23:27 +01:00
Victor Arino
f753ce7809
cpu/stm32f1: allow disabling spi peripherals
...
This allows disabling SPI peripherals even if defined in periph_conf.h
by setting the definition SPI_*_EN to 0.
The peripherals were tested against ifdef which caused to include the
code even if the peripheral was disabled, which was incompatible with
the current spi.h common implementation.
2015-12-15 17:23:27 +01:00
Victor Arino
f27113b2cc
cpu/stm32f1: add linkerscript for stm32f103rb
2015-12-15 17:23:23 +01:00
Oleg Hahm
fcb5fbf7f6
Merge pull request #4398 from OlegHahm/stm_header_cleanup
...
cpu: remove superfluous definitions in ST header
2015-12-08 08:52:23 +01:00
Oleg Hahm
f3d161d97a
cpu: remove superfluous definitions in ST header
2015-12-08 01:48:21 +01:00
Oleg Hahm
aa3ef774d0
cpu stm32f1 periph spi: simplify condition
2015-12-08 01:48:21 +01:00
Oleg Hahm
20f1750fb6
cpu stm32fX: fix pedantic compiler warnings
2015-12-07 20:28:52 +01:00
Hauke Petersen
3d35c33cb2
cpu/stm32f1: fixed i2c driver
...
the _stop() function now blocks until the transfer
is complete. Not waiting can lead to concurrent bus
access and subsequent to bus errors.
2015-11-18 14:57:15 +01:00
Hauke Petersen
047f7544a4
Merge pull request #4198 from thomaseichinger/pr/fix_4197
...
stm32f1/i2c: Disable I2C module before initialization
2015-11-17 17:41:33 +01:00
Peter Kietzmann
745320dc41
Merge pull request #4232 from DipSwitch/fix_gpio_read
...
gpio: Pin direction readout of gpio_read was invalid
2015-11-09 13:18:13 +01:00
DipSwitch
4186e38976
stm32f1/gpio: pin direction readout of gpio_read was invalid
2015-11-06 16:57:10 +01:00
DipSwitch
2e2ec37846
cpu/stm32f1/spi: add SPI peripheral 1 and 2
2015-11-04 13:40:20 +01:00
Thomas Eichinger
96b6d4b1dd
stm32f1/i2c: Disable I2C module before initialization
...
When initializing multiple drivers connected to the same
I2C bus, the bus should be disabled before pin toggeling
and reinitialization.
2015-11-01 11:51:51 +09:00
Hauke Petersen
59b935bd1e
cpu/stm32f1: adapted UART driver
2015-10-27 14:59:38 +01:00
Peter Kietzmann
e539db10ee
Merge pull request #4104 from gebart/pr/drop-timer-reset
...
periph/timer: Drop timer_reset
2015-10-26 08:36:01 +01:00
Hauke Petersen
82c843a000
cpu: removed init_slave from I2C drivers
2015-10-20 16:57:39 +02:00
Joakim Nohlgård
cbaeccdb90
periph/timer: Drop timer_reset
2015-10-17 20:11:03 +02:00
Hauke Petersen
d43dc9182f
cpu: s/GPIO(x,y)/GPIO_PIN(x,y)/
2015-10-13 14:59:54 +02:00
Peter Kietzmann
4e05254eb7
Merge pull request #3893 from haukepetersen/opt_f1_baudcalc
...
cpu/stm32f1: optimized baudrate calculation
2015-09-30 17:20:08 +02:00
Joakim Nohlgård
98c465008b
all: Update @gebart family name, email
2015-09-20 13:47:39 +02:00