Nicolas Schodet
12a73ce052
Use ODR instead of IDR to toggle an output GPIO
...
IDR represents the level on pin input while ODR is the value requested by the
programmer. This makes a difference for example when using the output as open
drain.
2012-05-31 00:08:23 +02:00
Piotr Esden-Tempski
7011d47c70
Mark reg32 variables as used. So that the compiler does not complain.
2012-05-25 17:56:15 -07:00
Piotr Esden-Tempski
3596075ee0
Fixed the linker scripts to be the way Tomaz Solc proposed.
...
Something went wrong when cherrypicking his commits in the pull request.
Sorry about that. :(
2012-04-25 17:34:07 +02:00
Piotr Esden-Tempski
3b20a5e34e
Removed the load address statement from the .bss section.
...
Otherwise the linker will complain: "section has both a load address and
a load region"
2012-04-24 09:34:39 +02:00
Tomaz Solc
bf65589183
Support for exception handling in linker scripts.
...
This is needed even in plain C when 64 bit variable (e.g. long long int)
arithmetic is used. For example it is required when newlib is compiled with
--enable-newlib-io-long-long.
Conflicts:
lib/stm32/f1/libopencm3_stm32f1.ld
lib/stm32/f2/libopencm3_stm32f2.ld
2012-04-24 09:16:22 +02:00
Gareth McMullin
567faa9b61
Corrected parameters of timer_set_mode() to u32.
2012-04-07 20:31:56 +12:00
Piotr Esden-Tempski
4fbd42148a
Added basic exception handling to the stm32 linker scripts. Thanks Mike Smith!
2012-03-18 22:59:31 -07:00
Piotr Esden-Tempski
789ae97212
Some additional LGPL3+ license change cleanups.
...
Changed the license to LGPL3+ for some makefiles that got ommited in the
previous big patch commit.
Corrected a find and replace error in a linker file.
2012-03-02 15:39:15 -08:00
Piotr Esden-Tempski
43561de329
License change of the library to LGPL, version 3 or later.
...
Agreed to by all the significant contributors to the library.
2012-03-02 14:44:49 -08:00
Piotr Esden-Tempski
cbef43ddd8
Added set priority group convenience function.
2012-02-24 16:43:37 -08:00
Gareth McMullin
03e44e91e3
Linker scripts provide stack pointer at the top of RAM.
...
Thanks to Tomaz Solc.
2012-02-12 15:00:09 -08:00
Piotr Esden-Tempski
1a3ad6e998
Added the entry point definiton to all stm32 linker scripts. This allows gdb to reset the target correctly on exit.
2012-02-11 22:24:41 -08:00
Uwe Hermann
9532195e65
More coding-style and cosmetic fixes.
2012-02-06 23:39:06 +01:00
Fergus Noble
ac29b654a9
Fix nasty bug with GPIO alternate function setup on F2/F4 (sorry guys).
2012-02-06 23:08:06 +01:00
Fergus Noble
fae83c43c1
Discard .ARM.exidx section to make newlib 64bit (long long) printf support work. This may need to be fixed if using C++.
2012-02-06 23:08:06 +01:00
Fergus Noble
8cc888a030
Fixing small bug/typo in F2 rcc code.
2012-02-06 23:08:06 +01:00
Piotr Esden-Tempski
c6f30043fd
Added UART4 and UART5 gpio definitions for stm32f1. Also corrected the naming everywhere. Both peripherals are UARTS not U_S_ARTS.
2011-11-16 18:17:56 -08:00
Uwe Hermann
d97c937b8e
lib: More small fixes.
2011-11-17 00:09:29 +01:00
Uwe Hermann
50f680f3f7
lib/stm32/f2: Coding-style fixes.
2011-11-17 00:09:27 +01:00
Gareth McMullin
7546ad9736
Fixed loading of .data in linker scripts.
...
This fixes a problem where the linker included some padding
bytes between the end of the .text section (_etext) and the
start of the .data section.
The C runtime copies from _etext, so all static initialised data
was corrupted. This change forces the .data section to be written
at _etext to avoid this problem.
2011-11-12 21:29:41 +13:00
Stephen Caudle
4c18313da6
Fix alignment issue in data section
2011-11-07 23:23:16 -05:00
Stephen Caudle
d9a76c75c2
Add timer support for STM32F2 & STM32F4
2011-11-02 14:26:36 -04:00
Stephen Caudle
62c105abeb
Fix APB1 & APB2 frequencies in STM32F4 RCC table
2011-11-02 14:26:33 -04:00
Stephen Caudle
05bc9d10f1
Add generic STM32F2 RCC clock function
2011-10-31 00:17:53 -04:00
Stephen Caudle
68d2e0d1e3
Fix stm32f2 RCC PLL values for 120MHz
2011-10-30 18:17:33 -04:00
Stephen Caudle
eb47f0cfc0
Add SCB from stm32f1
2011-10-30 17:42:49 -04:00
Stephen Caudle
1dc4645732
Update makefiles to reflect stm32 lib folder name changes
2011-10-30 17:42:49 -04:00
Stephen Caudle
b3a710b0bc
Rename stm32 lib folders to be consistent with include
2011-10-30 17:42:49 -04:00