Matthew Peddie
ea15d962ab
Remove redundant access size argument in F4 flash code.
2013-04-25 17:13:51 -07:00
millerd
6313af8869
Small improvements of using FLASH memory in STM32F1XX
2013-04-24 15:55:15 -07:00
Nicolas Schodet
b2df978eae
Add support for static constructors and destructors
2013-04-24 22:49:25 +02:00
Nicolas Schodet
cba01fff5e
Synchronise linker scripts which are supposed to be identical
...
This also report bug fixes about data alignment and bss storage to EFM32 &
LM3S targets.
Note: removed chrysn copyright statement as the file is a verbatim copy of
previous files.
2013-04-24 22:49:25 +02:00
Felix Ruess
a12614054c
[stm32][f4] ld file for f405x6
2013-04-23 17:55:04 +02:00
Gautier Hattenberger
a4b582f91d
add 16MHz resonator for stm32f4
2013-04-23 17:52:27 +02:00
Piotr Esden-Tempski
8545d9d565
Using while(1) instead of exit.
...
The exit function can significantly increase code size, and adds
dependency on stdlibc.
2013-04-21 19:13:35 -07:00
Alan Braithwaite
67903bfbfe
API change to remove dual loading default case for dac_load_data_buffer_single
...
Also change dac_data from u32 to u16
2013-04-20 00:31:30 +02:00
Ken Sarkies
1374d2622b
Place generic USB header and source files into the documentation tree.
2013-04-19 10:26:01 +09:30
Alan Braithwaite
2288e35739
Fixed bug with dac_load_data_buffer_dual with register offsets
2013-04-17 09:36:28 +02:00
molnarkares
93007d20d9
Fixes:
...
CAN RX: ID conversion was incorrect
2013-04-16 17:12:10 -07:00
molnarkares
162522b3b2
can speed optimizations
2013-04-16 17:10:56 -07:00
molnarkares
9585e59df1
CAN2 on STM32F1 is slave and its filter banks are configured thru CAN1 FMR
2013-04-16 17:10:03 -07:00
molnarkares
867b57a1d2
can.c >> bug fixed in receive
2013-04-16 17:08:50 -07:00
Andrey Smirnov
6cb7d8abf3
Add a "noreturn" attribute to 'scb_reset_system'
...
Adding this attribute allows to avoid warnings issued by GCC in cases
when 'scb_reset_system' is used as a last call in a function with
"noreturn" attribute set(usually reset handler of some sorts)
2013-04-16 16:57:58 -07:00
Ken Sarkies
1627cd60c3
Documentation structures added to place the non-STM32 families into the documentation tree.
...
Actual documentation has not been added. Volunteers?
2013-04-14 15:30:02 +02:00
Karl Palsson
69902568d1
[stm32-l1] Turn on the DMA code.
...
It appears to be the same dma peripheral as in the F1 and F3, so just
enable it as is.
2013-04-14 14:51:30 +02:00
Karl Palsson
4636eb134c
[stm32l1] Update linker scripts
...
Add the M+ and H density parts, and include the EEPROM sizes
2013-04-14 14:49:57 +02:00
Ken Sarkies
5b8953124e
This mainly moves the STM32 timers' code to the common area.
...
F2 and F4 have a common section to deal with the options register (TIM2 and TIM5 only)
L1 has been made common with timer_common_all as its options register has very different settings to F2/F4. Code is in the L1/timer.c L1/timer.h files
Note that F3 and F05 timers should fit into this scheme, with F3 having additional features.
Bundled with this is L1/pwr.h to change a documentation setting
Also all the Doxyfiles have added "ENABLE_PREPROCESSING = NO" to fix a problem introduced by commit 118.
2013-03-09 14:39:01 +10:30
Ken Sarkies
a9a85f080b
Add test in common headers for improper inclusion of such files in application.
...
(prevents inclusion and also issues warning)
Changes to some source files to remove references to common headers.
Changes to rng.h to make guard symbols the same in f2 and f4.
2013-03-07 18:35:04 +10:30
Ken Sarkies
e2022f5884
Repair to documentation (most documented files)
...
to remove errors, duplications and inconsistencies.
File lib/stm32/f1/pwr.c - all code removed as it duplicates that in common/pwr_common.c
Remaining changes do not affect code. Compiles OK.
TODO efm32 has no code so generates no modules
TODO F2 needs pwr.c
TODO L1 needs dma.h and dma.c
2013-03-07 11:14:06 +10:30
Austin Palmer
31aa3b6f5a
EXTI: Added function to get flag status
2013-03-01 10:36:57 -08:00
Michael Aherne
93f2b1ad5b
Fixing some errors introduced with #107 .
...
Namely:
- I never added rtc to the makefile, so it wasn't getting compiled
- I missed 2 includes that are needed once it's actually compiling
2013-02-27 13:21:21 -08:00
Michael Aherne
dd75633245
Adding some useful functions for wakeup timer interrupts
2013-02-26 21:22:58 -08:00
Michael Aherne
a121769785
Adding f4-specific rtc functions
...
These should also work with the f2
2013-02-26 21:22:58 -08:00
Zachary Crockett
9d24a480ae
Implement SPI clean disable from TODO comment
2013-02-26 19:59:15 -08:00
Piotr Esden-Tempski
3d3ddc7014
Fixed all warnings for examples.
2013-02-26 19:33:42 -08:00
Piotr Esden-Tempski
9c552e7585
Fix all remaining lib warnings.
2013-02-26 17:32:07 -08:00
Piotr Esden-Tempski
ea67d6a36a
Fixed all warnings in stm32l1 lib.
2013-02-26 17:28:20 -08:00
Piotr Esden-Tempski
1a025b5379
Fix all warnings for stm32f4 lib.
2013-02-26 17:19:22 -08:00
Piotr Esden-Tempski
7cd9b43529
Fix all warnings for stm32f2 lib.
2013-02-26 17:17:43 -08:00
Piotr Esden-Tempski
80fd23580a
Fix all warnings for stm32f1 lib.
2013-02-26 17:14:31 -08:00
Piotr Esden-Tempski
b0233ae6fb
Added more warning CFLAGS to all makefiles.
2013-02-26 16:42:20 -08:00
Piotr Esden-Tempski
5e7ec39440
FLASH: Make sure that the flash unlock register state is cleared before trying to unlock the flash.
2013-02-26 15:25:55 -08:00
Vegard Storheil Eriksen
bc853e7ebd
Fixed gpio_primary_remap; swjdisable is pre-shifted and therefore needs to be u32.
2013-02-26 13:49:42 +01:00
Piotr Esden-Tempski
1e1859e8c7
ADC: Fix CR usage in adc_enable_discontinuous_mode_regular. Fixes #101
2013-02-25 17:15:43 -08:00
alexn
aa54eae5be
CAN support STM32F4
2013-02-25 14:04:18 +01:00
Felix Ruess
3ef44bff54
[cm3] fix doxygen for systick_get_value, add systick_get_reload
...
Fix the reload value in the examples:
to get a SysTick interrupt every N clock pulses: set reload to N-1
see http://infocenter.arm.com/help/topic/com.arm.doc.dui0552a/BGBEEJHC.html#BABGACGG
2013-02-19 19:22:49 +01:00
Piotr Esden-Tempski
46263e90b4
Merge pull request #88 "Fix logical operator error in tim_ic_set_input reported by hmjack2008"
...
Merge remote-tracking branch 'ksarkies/timer'
2013-02-18 14:19:53 -08:00
Piotr Esden-Tempski
b4634ba8ff
Merge pull request #92 "DMA tidyup"
...
Merge remote-tracking branch 'karlp/dma_tidy'
2013-02-18 14:14:22 -08:00
Piotr Esden-Tempski
b13e55da8c
Adjusted code for l1 to the new api introduced by karlp in pr #84
2013-02-18 14:12:48 -08:00
Piotr Esden-Tempski
6eef01ce26
Merge pull request #84 "Pr flash reg rename"
...
Merge remote-tracking branch 'karlp/pr_flash-reg-rename'
Conflicts:
include/libopencm3/stm32/l1/flash.h
2013-02-18 14:09:31 -08:00
Piotr Esden-Tempski
9095f58fa3
Merge pull request #79 "More L1 support (and f2/f4 rtc)"
...
Merge remote-tracking branch 'karlp/pr_more_l1_rtc'
2013-02-18 14:06:02 -08:00
Piotr Esden-Tempski
b903ae75d8
Merging pull request #78 "Remove assembly forcing stack."
...
Merge remote-tracking branch 'karlp/destroy-all-the-asm'
2013-02-18 14:03:19 -08:00
Piotr Esden-Tempski
daf4cc0feb
Merging pull request #76 "LM4F clock api"
...
Merge remote-tracking branch 'mrnuke/lm4f_clock_api'
2013-02-18 13:53:57 -08:00
Karl Palsson
e4c0a50286
[stm32-dma] Eliminate redundant write.
...
Clearing a single bit in DMA_CCR, then immediately writing a 0 over the
entire register is completely redundant on the F1, F3 and L1 DMA
peripherals. (Unlike the F2 & F4 DMA Peripheral, where this is
required)
2013-02-06 11:43:20 +00:00
Ken Sarkies
e20ef7a416
Fix logical operator error in tim_ic_set_input reported by hmjack2008
2013-02-01 21:44:00 +10:30
Piotr Esden-Tempski
c9276b7aa2
Fixing gpio_set_af now really...
2013-01-29 13:42:11 -08:00
Piotr Esden-Tempski
ae55194d4a
Fix gpio_set_af register usage.
2013-01-29 13:33:58 -08:00
Karl Palsson
40d9d630f0
[flash] f4: use "proper" bit definition naming.
...
Part 4 of 4: updated f4 to use flash_<reg>_bit instead of just
flash_bit
2013-01-23 13:58:11 +00:00