Commit Graph

220 Commits

Author SHA1 Message Date
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
0731bba610 usb: Added support for Interface Association descriptors. 2011-12-28 21:05:41 +13: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
373794ab68 usb: Fix some Doxygen comments. 2011-11-17 00:12:47 +01:00
Uwe Hermann
3e9b9cb345 usb: Coding-style fixes. 2011-11-17 00:12:43 +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
30e188cf07 Only allow one packet in TX fifos.
This fixes a problem where packets were written too quickly.
The hardware disabled the endpoint after the fist packet is sent,
and others just waited in the queue.
2011-11-12 21:44:37 +13: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
Gareth McMullin
e0fe43357d usb_f107: Fixed lost 4 bytes on control OUT transaction. 2011-10-31 14:09:41 -07: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
Uwe Hermann
788f3870c4 Merge remote-tracking branch 'fnoble/stm32f2' 2011-10-29 22:19:12 +02:00
Gareth McMullin
284be93037 Restored OTG clock enable in RCC in f107 usb init. 2011-10-29 23:57:10 +13:00
Gareth McMullin
b05a5dcf2a Fixed some F105/F107 USB issues. Added user callback on SOF.
Made examples depend on lib.
2011-10-29 21:30:26 +13:00
Stephen Caudle
fd2524beb0 Merge remote-tracking branch 'fnoble/stm32f2' into stm32fx
Conflicts:
	lib/stm32f2/Makefile
2011-10-27 23:39:16 -04:00
Stephen Caudle
36cff03af1 Add RCC and FLASH support for STM32F2 2011-10-27 23:34:52 -04:00
Fergus Noble
0f6a0276aa Merge branch 'stm32f2' of github.com:fnoble/libopenstm32 into stm32f2 2011-10-26 13:33:40 -07:00
Fergus Noble
869a0df701 Adding new EXTI stuff to F2 makefile. 2011-10-26 13:30:44 -07:00
Fergus Noble
7877aaeebc Better way to toggle a pin. 2011-10-26 13:30:27 -07:00
Fergus Noble
8974be7435 Added convenience function code for EXTI on F2. 2011-10-26 13:29:52 -07:00
Fergus Noble
ae44add1b6 Merge branch 'stm32fx' of https://github.com/doceme/libopenstm32 into stm32f2
Conflicts:
	Makefile
	examples/stm32/lisa-m/fancyblink/fancyblink.ld
	examples/stm32/lisa-m/usb_hid/usbhid.ld
	examples/stm32/mb525/fancyblink/fancyblink.ld
	examples/stm32/obldc/usart_irq/usart_irq.ld
	examples/stm32/other/usb_dfu/usbdfu.c
	examples/stm32/stm32-h103/fancyblink/fancyblink.ld
	examples/stm32/stm32-h103/usart_irq/usart_irq.ld
	examples/stm32/stm32-h103/usb_dfu/usbdfu.c
	examples/stm32/stm32-h103/usb_hid/usbhid.ld
	examples/stm32f1/Makefile.include
	examples/stm32f1/lisa-m/fancyblink/fancyblink.ld
	examples/stm32f1/lisa-m/usb_hid/usbhid.ld
	examples/stm32f1/mb525/fancyblink/fancyblink.ld
	examples/stm32f1/obldc/usart_irq/usart_irq.ld
	examples/stm32f1/other/usb_dfu/usbdfu.c
	examples/stm32f1/stm32-h103/fancyblink/fancyblink.ld
	examples/stm32f1/stm32-h103/usart_irq/usart_irq.ld
	examples/stm32f1/stm32-h103/usb_dfu/usbdfu.c
	examples/stm32f1/stm32-h103/usb_hid/usbhid.ld
	examples/stm32f2/jobygps/usart_printf/usart_printf.ld
	lib/lm3s/Makefile
	lib/lpc13xx/Makefile
	lib/stm32f1/Makefile
2011-10-13 00:11:32 -07:00
Fergus Noble
82768447c8 Merge branch 'stm32f2' of github.com:fnoble/libopenstm32 into stm32f2 2011-10-12 23:59:16 -07:00
Fergus Noble
2095715eb1 I think we want to wait before we send the UART byte rather than after... 2011-10-12 23:58:37 -07:00
Fergus Noble
878c094871 Added alternative function for doing an SPI transfer. 2011-10-12 22:20:22 -04:00
Fergus Noble
14dcda91b0 Fixing some more header references 2011-10-12 22:20:22 -04:00
Fergus Noble
7518bc83c1 Fixing some header references 2011-10-12 22:20:22 -04:00
Fergus Noble
e772992f4c Some more silly bugs in GPIO fixed for F2. 2011-10-12 22:18:44 -04:00
Fergus Noble
e7f909c502 Minor fixes to the SPI code, mainly you should check that the TX buffer is empty before rather than after sending. 2011-10-12 22:18:44 -04:00
Fergus Noble
53f1c75c53 Fixed bug in F2 GPIO code. 2011-10-12 22:18:43 -04:00
Fergus Noble
d1272acaad Initial move of USART code to common, still needs some work. 2011-10-12 22:18:43 -04:00
Fergus Noble
7133e79239 Change default prefix in Makefiles to arm-none-eabi for compatability with summon toolchain out the box. 2011-10-12 22:18:43 -04:00
Fergus Noble
4d02d36d6b Moving nvic code to common, adding F1 and F2 specific user interrupt definition headers. 2011-10-12 22:17:16 -04:00