229 Commits

Author SHA1 Message Date
Gareth McMullin
567faa9b61 Corrected parameters of timer_set_mode() to u32. 2012-04-07 20:31:56 +12:00
Piotr Esden-Tempski
26de4cb9d6 Constand value for resetting CAN_TDTxR was too big. Fixed. 2012-03-19 23:09:18 -07:00
Piotr Esden-Tempski
ec34e21ead Changed parameter size for trigger enable. 2012-03-19 20:20:05 -07:00
Piotr Esden-Tempski
451a5e227d Started some cleanup in the ADC headers and convenience code. 2012-03-19 17:38:24 -07: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
06d6f3e0e6 Made spi_init_master ignore CRC and SPE bits. 2012-03-14 21:00:53 -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
ec904f176b Cleaned up and streamlined DMA support for f1. Definitely needs a bunch of testing! 2012-02-29 16:02:51 -08:00
Piotr Esden-Tempski
20c5e56234 Fixed spi convenience reset function to compile properly. 2012-02-29 12:02:36 -08:00
Piotr Esden-Tempski
c49f505df4 Added spi reset convenience function. 2012-02-28 11:28:29 -08:00
Piotr Esden-Tempski
2b3f07ee08 Added reset function to i2c convenience functions. 2012-02-24 17:14:50 -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
Mike Smith
5310cd1b57 Flash sector erase requires the FLASH_SER bit set. 2012-02-12 15:00:08 -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
3e47a46c5c Fix numerous bugs in NVIC convenience functions, doing an |= on a clear register will clear ALL currently enabled irqs, not just the one you specified and other things of that sort. Also changed to support the full range of irq numbers supported by ARMv7M, not just the first 68 used in the STM32F1 series. 2012-02-06 23:08:07 +01:00
Fergus Noble
477c410be4 Added functions to enable and disable DMA from stm32 USART. 2012-02-06 23:08:07 +01:00
Fergus Noble
7c67322f75 Change stm32 usart baud rate generation to round rather than floor for more accurate divisor selection. 2012-02-06 23:08:07 +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
5dce4172a8 Fix bug with F4 clock settings, change HPRE to PPRE. 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
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