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
Gareth McMullin
651917aeb4
Added USB example for stm32f4.
...
Moved clock enable for OTG_FS back into applications. This and gpio config
are the only differences between f107 and f2xx/f4xx.
2011-12-17 14:11:39 +13:00
Piotr Esden-Tempski
8af809a12a
Reverted the api of the usart_set_baudrate function to hide the clock rail selection again.
2011-11-16 18:41:48 -08:00
Piotr Esden-Tempski
bf4f8480a6
Added address legend to the interrupt vector. Made it easier to crosscheck for correctness.
2011-11-16 18:41:48 -08: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
608ca2a811
stm32/f1/gpio.c: Add some Doxygen comments.
2011-11-17 00:12:47 +01:00
Uwe Hermann
d97c937b8e
lib: More small fixes.
2011-11-17 00:09:29 +01:00
Uwe Hermann
0d25aa3fcd
lib/stm32/f4: Coding-style fixes.
2011-11-17 00:09:28 +01:00
Uwe Hermann
50f680f3f7
lib/stm32/f2: Coding-style fixes.
2011-11-17 00:09:27 +01:00
Uwe Hermann
8725bc5171
lib/stm32/f1: Coding-style fixes.
2011-11-17 00:09:27 +01:00
Uwe Hermann
6e7403f769
lib/stm32/*.c: Coding-style fixes.
2011-11-17 00:09:26 +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
Uwe Hermann
6462a646d1
stm32/spi.c: Coding style fixes and typo fixes.
2011-11-10 22:45:56 +01: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
c26abb6c25
Add pwr to STM32F4 makefile
2011-11-02 14:26:31 -04:00
Stephen Caudle
5a89d44591
Add initial support for STM32F4
2011-10-31 00:41:19 -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
Fergus Noble
424b094ce8
Renaming lib code for stm32 f1 series.
2011-10-12 22:13:01 -04:00
Piotr Esden-Tempski
03a4a18ed6
Switched all makefiles to arm-none-eabi default.
2011-10-04 13:08:35 -07:00
Uwe Hermann
089bb73018
Merge remote-tracking branch 'gsmcmullin/master'.
2011-04-28 19:42:35 +02:00
Gareth McMullin
3ac0ae839d
Added extra interrupt vectors for STM32 connectivity line.
2011-04-24 14:31:56 +12:00
Gareth McMullin
692266bf67
Fixes CAN identifiers on send and receive.
2011-03-23 17:36:17 +13:00
Gareth McMullin
7faea389e8
Added dependency generation. Abort loops on error.
2011-03-14 16:45:17 +13:00
Piotr Esden-Tempski
1f3e431527
Usart baud rate setting function now uses the new apb1 and apb2 frequency variables. And calculates the full BRR value.
2011-03-11 19:51:48 -08:00
Piotr Esden-Tempski
3d20f37b27
RCC now has two variables to hold the current apb1 and apb2 frequency.
2011-03-11 19:49:23 -08:00
Piotr Esden-Tempski
7073637430
Added 12MHz external clock rcc setup routine.
2011-03-09 14:06:58 -08:00
Gareth McMullin
e64a9d2bf9
Minor cleanup of usb. Template driver for STM32F107 added.
2011-02-10 19:58:51 +13:00
Uwe Hermann
0a0ce22762
Add rcc_clock_setup_in_hse_8mhz_out_24mhz().
...
Thanks Marko Kraljevic <krasnaya.zvezda@gmail.com> for the patch!
2011-02-09 02:48:51 +01:00
Uwe Hermann
e0a488f586
gpio_toggle(): Add support for multiple GPIOs.
...
Thanks Marko Kraljevic <krasnaya.zvezda@gmail.com> for the patch!
2011-02-09 02:48:50 +01:00
Uwe Hermann
447c333cec
Minor cosmetics, whitespace.
2011-02-09 01:06:43 +01:00
Uwe Hermann
729a48c655
Cosmetics, whitespace, reduced indentation level.
2011-02-03 02:17:15 +01:00
Piotr Esden-Tempski
c7587f11ec
Added get flag and get counter functions to timer. Allow proper interrupt handling and recording timer counter values.
2011-02-01 22:43:18 -08:00
Piotr Esden-Tempski
d40fb96fcf
Added set prescaler and set repetition counter functions to timer.
2011-01-31 22:08:37 -08:00
Piotr Esden-Tempski
92edc113f9
Added timer reset function.
2011-01-31 16:30:12 -08:00
Piotr Esden-Tempski
e85c55a9a7
Added timer flag reset function.
2011-01-31 16:15:09 -08:00
Piotr Esden-Tempski
dd0018ffdf
Added interrupt and event generation handling functions to timer. Updated pwm 6step example to use those and commutate on button press using PWM ON scheme.
2011-01-31 13:28:54 -08:00
Piotr Esden-Tempski
59293a9640
Added break and dead time convenience functions. Adapted 6step example to reflect that.
2011-01-28 16:04:36 -08:00
Piotr Esden-Tempski
a1bd228c87
Replaced OC mode selection with an enum, makes it simpler to use.
2011-01-28 15:11:52 -08:00
Piotr Esden-Tempski
5975750e5e
Added output compare channel convenience functions and adapted the pwm_6step example accordingly.
2011-01-27 22:18:34 -08:00
Piotr Esden-Tempski
d608049563
Started a pwm 6step output example. Enabled timer convenience functions and some minor fixes that showed themselves while writing the bare bone example.
2011-01-27 17:03:13 -08:00
Uwe Hermann
1cabc38c3a
EXTI bugfix in exti_select_source().
...
AFIO_EXTICR[1 to 4] registers were not beeing set correctly. You have to
force a 0 on the bits that are 0 for the mutex to work.
Thanks Linus Casassa <linus@lin.cl> for the patch!
2011-01-07 17:07:25 +01:00
Uwe Hermann
8f251e8a9d
Some more file/path restructuring.
...
All #includes now explicitly use the "<libopencm3/stm32/rcc.h>" format.
If you want to get rid of the "libopencm3" prefix in your local project you
can add a respective -I entry in your Makefile (not recommended though).
All .ld files and .a libs are installed in $(TOOLCHAIN_DIR)/lib
directly (as before), but are now renamed to avoid potential
conflicts now or in the future. Examples:
libopencm3_lpc13xx.a
libopencm3_lpc13xx.ld
libopencm3_stm32.a
libopencm3_stm32.ld
2010-12-31 18:18:39 +01:00
Uwe Hermann
a97dd10a95
More libopenstm32 renames.
2010-12-30 13:22:56 +01:00