Hauke Petersen
fc7c25c95e
cpu/stm32f4: reworked the ADC driver
2016-03-14 13:05:46 +01:00
Joakim Nohlgård
7b4e776808
Merge pull request #4971 from DipSwitch/pr/fix_stm32f4_dma_nvic_enable
...
cpu/stm32f4/dma: Fix some miscalculations in the DMA implemenation
2016-03-13 08:39:47 +01:00
DipSwitch
e2f8d59956
cpu/stm32f4/dma: Fix the IQRn calculation for DMA channels > 8
2016-03-11 16:20:19 +01:00
DipSwitch
d72cdcaad2
cpu/stm32/gpio_exti: EXTI->PR is of type RW_w1 so don't RMW the pending status flags
2016-03-11 15:46:41 +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
7a7202034b
cpu/stm32f4: Use {} notation for empty while loops
2016-03-03 16:31:27 +01:00
Hauke Petersen
b11a3ad74b
cpus: adapted timer implementations to API changes
2016-02-29 14:45:00 +01:00
Joakim Nohlgård
c61c1207df
cpu/stm32f4: Cast enum to unsigned int for comparison
2016-02-28 00:08:12 +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
e2f7ac78f0
Merge pull request #4040 from gebart/pr/periph-timer-init-freq
...
periph/timer: Change timer_init API to support arbitrary (integer) frequencies
2016-02-15 23:36:44 +01:00
Hauke Petersen
0c375e2bae
cpu/stm32f4: adapted HWRNG implementation
2016-02-14 12:59:47 +01:00
Joakim Nohlgård
3e0d6f167f
cpu/stm32f4: Update to match timer_init API change
2016-02-13 21:29:36 +01:00
Hauke Petersen
85f85a3760
cpu/stm32f4: adapted to PWM interface changes
2016-02-12 16:10:01 +01:00
Hauke Petersen
ea8db10524
cpu/stm32: use common CPUID implementation
2016-02-10 09:12:30 +01:00
Hauke Petersen
c482bfbaed
cpu/stm32f4: use common STM32 files
2016-02-10 09:12:30 +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
Hauke Petersen
1d8d33d484
Merge pull request #4704 from haukepetersen/opt_periph_gpioisrctx
...
drivers/gpio: added default ISR context struct
2016-02-04 15:29:48 +01:00
Joakim Nohlgård
4fd7f23650
cpu/stm32f4: Fix DMA race bug ( #4716 )
2016-01-30 07:04:26 +01:00
Hauke Petersen
ad0abdcadd
cpus: use default isr_ctx struct in GPIO drivers
2016-01-27 17:00:37 +01:00
Hauke Petersen
8a96a62c42
cpu/stm32f4discovery: fixed freq return in pwm_init
2015-12-10 17:14:12 +01:00
Thomas Eichinger
0f80e688f3
Merge pull request #4115 from haukepetersen/opt_stm32f4_uart
...
cpu/stm32f4: optimized UART driver
2015-12-08 11:44:13 +01:00
Oleg Hahm
a236fabcd4
cpu stm32f4: rename HASH macro
...
The HASH macro for an address in STM32's MCU hardware implementation is prone to naming clashes.
2015-12-08 08:58:11 +01:00
Oleg Hahm
20f1750fb6
cpu stm32fX: fix pedantic compiler warnings
2015-12-07 20:28:52 +01:00
Hauke Petersen
b75e5fe407
cpu/stm32f4: adapted DMA_TypeDef struct for f401
2015-12-07 18:00:41 +01:00
Hauke Petersen
a2247a3400
cpu/stm32f4: significantly optimized UART driver
2015-12-07 18:00:40 +01:00
Hauke Petersen
b13f5cf801
cpu/stm32f4: optimized vendor header slightly
2015-12-07 18:00:40 +01:00
Peter Kietzmann
329820ddd4
Merge pull request #4119 from latsku/nucleo-f401
...
boards: Add support for Nucleo-f401
2015-11-30 10:52:24 +01:00
Lari Lehtomäki
14be504b6a
boards/nucleo-f401: Add initial support
...
cpu: Add support for STM32F401xE cpu
boards: Add support for Nucleo-f401
boards/nucleo-f401: New line fixes and comment on green led pin
board/nucleo-f401: Added LED GPIO
board/nucleo-f401: Fixed LED GPIO
board/nucleo-f401: Minor fixes
2015-11-30 11:06:34 +02:00
Cenk Gündoğan
18427a8074
cpu: stm32f4: spi: remove unused vtimer include
2015-11-10 12:27:17 +01:00
Hauke Petersen
1eb63f20a7
cpu/stm32f4: adapted UART driver
2015-10-27 14:59:38 +01:00
Hauke Petersen
97af043227
cpu/stm32f4: adapted UART driver
2015-10-27 14:59:37 +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
Hauke Petersen
d17973a060
cpu/stm32f4: optimized baudrate calculation
2015-09-18 12:21:46 +02:00
01f87b9df0
cpu: stm32f4: remove obsolete hwtimer support
2015-09-16 10:58:52 +02:00
Hauke Petersen
a4d393eea3
cpu/stm32f4: fixed typo in prescaler for timer1
2015-09-08 16:22:24 +02:00
4b15cc635e
cpu: stm32f4: use periph_common SPI functions
2015-08-14 14:46:35 +02:00
Hauke Petersen
75472eddf4
cpu: remove transceiver defines from cpu_conf files
2015-08-06 12:13:54 +02:00
Peter Kietzmann
f62bc56648
Merge pull request #3215 from haukepetersen/fix_periphcpu_addenums
...
cpu: added dev_enums.h include to all periph_cpu.h
2015-06-22 08:44:26 +02:00
Hauke Petersen
765c013834
Merge pull request #3155 from haukepetersen/opt_cortex_startup
...
cpu: centralized startup code for cortexm CPUs
2015-06-17 00:01:56 +02:00
Hauke Petersen
4ae5204b36
cpu: added dev_enums.h include to all periph_cpu.h
2015-06-16 22:41:16 +02:00
Hauke Petersen
7216f21122
cpu/stm32f4: fix init_af in GPIO driver
2015-06-15 20:41:49 +02:00
Hauke Petersen
d7e27c67c3
cpu/stm32f4: optimization of startup code
...
- make use of common startup code
- make use of common exception handlers
- renamed startup.c to vectors.c
2015-06-15 16:00:51 +02:00
Hauke Petersen
71995e7cde
cpu/stm32f4: added custom GPIO_UNDEF define
2015-06-14 16:16:39 +02:00
Hauke Petersen
69d16af81c
cpu/stm32f4: remodeled GPIO implementation
2015-06-12 19:10:48 +02:00
Peter Kietzmann
6dc0e789e1
Merge pull request #3101 from gebart/pr/warning-fixes
...
Various warning fixes
2015-05-31 17:03:49 +02:00
Hauke Petersen
744ec88a74
cpu: use cortexm common linkerscript
2015-05-30 13:43:19 +02:00
Joakim Gebart
c09a8484e2
cortexm: Move ldscripts into separate directory
...
Less clutter inside the cpu/* directories by placing linker scripts
under cpu/*/ldscripts/CPUNAME.ld
2015-05-30 12:20:07 +02:00
Hauke Petersen
79d9391d3b
cpu/stm32f4: adapted to centralized cpu conf
2015-05-29 16:44:52 +02:00
Joakim Gebart
ea597a3bf3
stm32f4: random fix sign-compare
2015-05-29 14:23:02 +02:00
Joakim Gebart
18ea5561f8
stm32f4: spi_transfer_bytes fix sign-compare, reduce scope
2015-05-29 14:23:02 +02:00
Joakim Gebart
13bdc21c9e
stm32f4: i2c_init_slave fix unused-parameter
2015-05-29 14:23:01 +02:00
haukepetersen
0d5c8546f3
cpu: adapted Makefiles to unified cortexm module
2015-05-28 19:30:07 +02:00
Hauke Petersen
9943f51080
global: renamed cpu-conf.h into cpu_conf.h
2015-05-28 15:45:05 +02:00
Hauke Petersen
669544daaa
cpu/stm32f4: make use of hwtimer_compat module
2015-05-27 10:02:37 +02:00
8a8d547711
cpu: stm32f4: use cortex common makefile and newlib module
2015-05-26 10:46:24 +02:00
Lucas Jenss
426170b064
Improve naming of thread stacksize/priority constants
...
As discussed in #2725 , this commit renames a number of stacksize constants to
better convey their intended usage. In addition, constants for thread priority
are given a `THREAD_` prefix. Changes are:
* KERNEL_CONF_STACKSIZE_PRINTF renamed to THREAD_EXTRA_STACKSIZE_PRINTF
* KERNEL_CONF_STACKSIZE_DEFAULT renamed to THREAD_STACKSIZE_DEFAULT
* KERNEL_CONF_STACKSIZE_IDLE renamed to THREAD_STACKSIZE_IDLE
* KERNEL_CONF_STACKSIZE_MAIN renamed to THREAD_STACKSIZE_MAIN
* Move thread stacksizes from kernel.h to thread.h, since the prefix changed
* PRIORITY_MIN renamed to THREAD_PRIORITY_MIN
* PRIORITY_IDLE renamed to THREAD_PRIORITY_IDLE
* PRIORITY_MAIN renamed to THREAD_PRIORITY_MAIN
* Move thread priorities from kernel.h to thread.h since the prefix has changed
* MINIMUM_STACK_SIZE renamed to THREAD_STACKSIZE_MINIMUM for consistency
2015-05-21 00:14:23 +02:00
BytesGalore
369e7bbf43
Merge pull request #2540 from josephnoir/topic/cpp-stl-compatibility
...
Add replacement headers for std thread, mutex and condition_variable
2015-05-19 07:56:54 +02:00
Joseph Noir
bddaee751d
Add replacement headers for thread, mutex and cond
...
These headers do not provide full stl functionality,
but a small subset:
* thread and this_thread
* condition_variable (some timed functions are missing)
* mutex, lock_guard and unique_lock
2015-05-18 13:57:02 +02:00
Joakim Gebart
6000b29440
stm32f4: Replace tabs by spaces
2015-05-18 07:10:52 +02:00
Joakim Gebart
43b9150460
stm32f4: pwm_init: return actual frequency
2015-05-16 10:17:02 +02:00
Joakim Gebart
cc27846ac3
cpu/stm32f4/include/stm32f415xx.h: Trailing whitespace
2015-05-09 09:17:27 +02:00
James Hollister
722835989d
cpu/stm32f4: added cpuid_get to stm32f4
2015-03-08 12:18:37 -07:00
Ludwig Ortmann
cec87139a5
core, cpu, drivers, tests: remove trailing space
2015-02-18 13:52:48 +01:00
Fabian Nack
36025280de
cpu/stm32f4: Add low power mode implementation
2015-02-11 10:04:26 +01:00
Fabian Nack
870a695a38
cpu/stm32f4: Adapt PWM implementation to allow timers with < 4 channels
2015-01-22 02:24:00 +01:00
Thomas Eichinger
8821e0edcf
cpu/stm32f4: make i2c thread-safe
2015-01-19 12:20:09 +01:00
Hauke Petersen
70a5df67a5
cpu/stm32f4: made SPI driver thread safe
2015-01-17 15:13:51 +01:00
Hauke Petersen
c3cdfe7ef7
Merge pull request #2315 from fnack/spi_clock
...
cpu/stm32f4: Fix SPI baud rate control settings
2015-01-16 11:19:18 +01:00
Fabian Nack
672a362f2e
cpu/stm32f4: Corrected wrong spi baud rate control settings
2015-01-16 09:24:48 +01:00
Hauke Petersen
23ecb09f12
cpu/stm32f4: added lost port clock eanble
2015-01-15 14:23:06 +01:00
Fabian Nack
dc658f8be0
boards - msbiot: prepare msbiot for new cc110x driver
2014-12-01 17:14:09 +01:00
Hauke Petersen
3026e55c14
Merge pull request #1868 from haukepetersen/fix_stm32f4_gpiootp
...
cpu/stm32f4: optimized GPIO driver implementation
2014-11-26 23:40:50 +01:00
Simon Brummer
5a4b966d9c
Basic DAC Driver, implementation on stm32f4discovery
2014-11-25 22:37:32 +01:00
BytesGalore
a4d2ee307c
cpu: added extern "C"
to headers
2014-11-24 19:10:15 +01:00
Hauke Petersen
2220a9fab0
core/cpu/boards: removed fw_puts from RIOT
2014-11-21 13:09:02 +01:00
Hauke Petersen
62b6522e01
cpu: moved reboot_arch for cortex cpus
2014-11-20 17:22:39 +01:00
PeterKietzmann
6d091245a4
Initial import of i2c lowlevel driver for stm32f4
2014-11-20 14:46:13 +01:00
9ce0b676b4
core: sys: move ringbuffer to core
2014-11-19 14:18:39 +01:00
BytesGalore
0de260f5a2
Merge pull request #1985 from BytesGalore/EasyCPPMixing_stm32f4discovery_support_fix
...
squashed, changed comment and go.
2014-11-14 12:53:22 +01:00
BytesGalore
8c5418e9e5
initial support for c++ for this cpu/board
2014-11-14 11:19:34 +01:00
Thomas Eichinger
2b0d49c8b1
Merge pull request #1954 from haukepetersen/fix_cortex_irqstacksize
...
cpu: adjusted IRQ stack sizes for Cortex CPUs
2014-11-14 10:50:51 +01:00
Ian Martin
7bbdbcc7cb
Allow the application's makefile to specify a custom linker script, for example:
...
LINKERSCRIPT = custom-linkerscript.ld
2014-11-10 14:28:35 -05:00
Hauke Petersen
72b68bc9f0
cpu: adjusted IRQ stack sizes for Cortex CPUs
2014-11-06 15:16:33 +01:00
Benjamin Valentin
879768397e
malloc: check if the requested memory is really available
2014-11-05 12:11:24 +01:00
Hinnerk van Bruinehsen
e3aa222d6c
lint: fix nullPointer errors
2014-10-31 01:24:30 +01:00
Hauke Petersen
e7fbaf3815
cpu: removed NAKED attribute from ISRs
...
- removed the __attribute__((naked)) from ISRs
- removed ISR_ENTER() and ISR_EXIT() macros
Rationale: Cortex-Mx MCUs save registers R0-R4 automatically
on calling ISRs. The naked attribute tells the compiler not
to save any other registers. This is fine, as long as the
code in the ISR is not nested. If nested, it will use also
R4 and R5, which will then lead to currupted registers on
exit of the ISR. Removing the naked will fix this.
2014-10-30 19:33:32 +01:00
Hauke Petersen
a51bfeb5d7
SQUASH: cpu/f4: changed order of irq enabling seq
2014-10-30 13:59:19 +01:00
Hauke Petersen
a057f3aa74
SQUASH: cpu: fixed some typos
2014-10-30 13:59:19 +01:00
Hauke Petersen
4546a87ded
cpu/stm32f4: optimized GPIO driver implementation
2014-10-30 13:59:19 +01:00
Oleg Hahm
c33e1b5dad
Merge pull request #1844 from OlegHahm/doxygen_cleanup
...
Doxygen cleanup
2014-10-24 16:04:01 +02:00
Hauke Petersen
616ff64929
Merge pull request #1771 from PeterKietzmann/correct_stm32f4_spi_return_values
...
cpu/stm32f4: Changed SPI return values to API definitions
2014-10-24 15:37:22 +02:00
Oleg Hahm
6d8c0d74c3
doc: some doxygen cleanups
...
* removed RIOT unrelated cpu documentation
* introduced cpu_specific prefix to mark such documentation
* put oneway_malloc and crypto into sys group
2014-10-23 17:29:25 +02:00
Fabian Nack
45b3da9be7
cpu - multiple: adapt spi drivers to interface extension
2014-10-16 17:47:10 +02:00
PeterKietzmann
4da6329684
cpu/stm32f4 changed SPI-return values to API defs
2014-10-07 12:16:37 +02:00
PeterKietzmann
d481af752f
initial import of stm32f4discovery spi low-level driver
2014-09-30 13:18:27 +02:00
Thomas Eichinger
d0b0af6d81
stm32f*: rename STDIO buffer and enable getchar with UART0
2014-09-26 14:16:59 +02:00
Thomas Eichinger
c83e4cb361
stm32f1: unify UART0 use
2014-09-26 14:16:59 +02:00
Thomas Eichinger
aefa818338
stm32f4: be UART0 aware
2014-09-26 14:16:31 +02:00
Hauke Petersen
3d797d8f4b
cpu/stm32f4: fixed doxygen
2014-09-24 17:51:37 +02:00
Hinnerk van Bruinehsen
129e9b0bfa
cpu: multiple: change size_t to ptrdiff_t for_sbrk_r
2014-09-14 22:07:05 +02:00
Hinnerk van Bruinehsen
57b998e4a1
cpu/examples/sys/drivers: reduce scope of variables
2014-09-13 19:03:40 +02:00
Fabian Nack
edb6a4ddf4
cpu - stm32f4: added support for more channels/devices in periph impls
2014-09-01 21:29:56 +02:00
Fabian Nack
47657ac7d9
cpu - stm32f4: add support for stm32f415rg
2014-09-01 21:29:56 +02:00
Hauke Petersen
373e69e5c9
cpu/stm32f4: added random number generator driver
2014-08-25 13:54:15 +02:00
René Kijewski
2cb4166c3e
all over the place: use sched_active_pid
...
In many places we needlessly use `sched_active_thread->pid` whilst we
already have `sched_active_pid` with the same value, and one less
indirection.
`thread_getpid()` is made `static inline` so that there is no penalty in
using this function over accessing `sched_active_pid` directly.
2014-08-17 21:04:25 +02:00
Hauke Petersen
13894fa70c
cpus: adjusted uart implementations for changed IF
...
- adjusted stm32f0
- adjusted stm32f3
- adjusted stm32f4
- adjusted sam3x8e
- adjusted nrf51822
2014-08-15 12:23:39 +02:00
Hauke Petersen
037820d6a6
board/cpu: adjusted uart driver implementations
...
for
- sam3x8e
- stm32f0
- stm32f4
- sam3x8e
- nrf51822
2014-08-11 15:08:20 +02:00
Hauke Petersen
cc6ee1dc05
board/cpu: added pwm driver for stm32f4discovery
2014-08-07 16:15:39 +02:00
Oleg Hahm
8890470783
Merge pull request #1514 from cgundogan/remove_tabs_cpu
...
converting tabs to spaces in cpu (#1439 )
2014-07-31 22:58:17 +02:00
Cenk Gündoğan
3989945679
converting tabs to spaces in cpu ( #1439 )
...
This PR converts tabs to white spaces.
The statement I used for the conversion:
```find . -name "*.[ch]" -exec zsh -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;```
Afterwards, I had a quick overview of the converted files to prevent odd indentation.
2014-07-31 20:46:28 +02:00
Hauke Petersen
b451de05e4
cpu/board: added ADC driver for stm32f4discovery
2014-07-31 17:51:01 +02:00
Hauke Petersen
2fa9b4de82
cpu: Initial import of stm32f4
2014-07-16 17:20:46 +02:00