Commit Graph

42 Commits

Author SHA1 Message Date
Karl Palsson
b22ea8b616 stm32f1: maple LED is on A5.
Fix incorrect RCC port.  Only applies to "maple" not to maple mini.

Fixes github issue #117
2016-01-11 10:01:22 +00:00
Zhiyuan Wan
7322fdcdb9 stm32f103: fix all usb driver
Correctly migrate stm32f103_usb_driver to st_usbfs_v1_driver instead of the
f107 driver.

Fixes: 976720c355
Reviewed-by: Karl Palsson <karlp@tweak.net.au>
2016-01-03 14:51:12 +00:00
Piotr Esden-Tempski
976720c355 Updated libopencm3 to current master. Made all examples compile again.
Be specifically careful with the usb examples. There is likely some
breakage to be expected, not sure I updated all the drivers to the
correct types for the respective chips.
2015-12-15 00:56:25 +01:00
Andrew Chen
2314635cf0 Makefile.include: don't override DEFS
Allow examples (such as usart-semihosting) to set DEFS for their own use,
and _then_ add the target definitions.
2015-12-10 15:51:57 +00:00
Karl Palsson
393fe8e449 stm32: usb: register control handlers in config callback
As found in 6f2b39c1be6a8b9531264d92138dc2629d51cfa0, you can't just register a
control callback by itself, you can only register them in the set config
callback, (or, at least, _after_ set config has been done.

This has been compile tested only for the extra examples that were found to
have this failing pattern.
2015-08-23 15:02:34 +00:00
Jan
dd0e48369d stm32f1: fix h103 usbdfu example
This has been broken since f87170e when set config started clearing control
handlers to be re-registered by different configurations.

Fix this example to use a set config callback to setup control transfer
callbacks, just like CDC-ACM demos.  With this fix, this demo works with
dfu-tool 0.8

Signed-off-by: Karl Palsson <karlp@tweak.net.au>
2015-08-23 15:02:20 +00:00
Karl Palsson
b7c04b4eee docs: try and clarify that you should look in other directories 2015-07-16 16:30:17 +00:00
Karl Palsson
a023b0a7ca stm32f1: rtc: drop redundant ld script
Now that this is known targetting h103 board, drop the duped ld script.
2015-07-16 16:28:07 +00:00
Karl Palsson
3a06a8d24c stm32f1: other: rtc example is actually for h-103 board
Move it into the directory already available for this board.
No code changes, just clarifies it a little bit
2015-07-16 16:25:46 +00:00
Ken Sarkies
697d4f307a STM32F1xx RTC example: Change usart_send to blocking form to allow time to send characters
Tested with ET-STAMP-STM32
2015-07-16 16:23:43 +00:00
Piotr Esden-Tempski
2583cc54cc [rcc_periph_clock_enable] Using the new rcc enable format.
We are missing handling of stm32l1 AHBLP clock rail.
2015-01-20 15:33:00 -08:00
Piotr Esden-Tempski
1c4ae95729 [README] Coarse sweep to use markup in READMEs.
This should improve online readability of the readme files.
2015-01-19 19:20:12 -08:00
Piotr Esden-Tempski
ab7efee88e [README] Renamed all readme files to indicate markup format. 2015-01-19 19:19:42 -08:00
Piotr Esden-Tempski
397780799a [copyright] Added credit copyright for Laurent. Thanks! 2015-01-19 15:54:08 -08:00
Barattero Laurent
f6a1a3ee14 adding spi exemple to stm32vl-discovery 2015-01-19 15:47:39 -08:00
Frantisek Burian
a265fd4d64 Correct include path in all examples 2014-02-13 19:15:00 +01:00
Frantisek Burian
5bb4d47aae Examples updated to use new rcc_periph_clock_enable function 2014-02-13 19:14:59 +01:00
Frantisek Burian
ffe9376c55 [BUILD] Allow to override FP_FLAGS in make as specified in libopencm3 README 2014-01-09 07:33:11 +01:00
Frantisek Burian
02c35eee70 Make the STM32 Makefile.includes usable from outside the examples tree (Issue #28) 2014-01-06 22:25:55 +01:00
Frantisek Burian
9934e40fe9 [BUILD] Add generic Makefile.rules 2014-01-06 22:25:40 +01:00
Karl Palsson
cc800be89a linker script paths: don't hardcode the path
While some of the examples include a "board.ld" style file, some of them were
pointing to the libopencm3 provided chip specific ld scripts.  When
TOOLCHAIN_DIR has been overridden, those paths were no longer valid/correct.
2014-01-03 21:54:34 +00:00
Onno Kortmann
3efd9f8675 Make the STM32 Makefile.includes usable from outside the examples tree
The Makefile.includes contain a hardcoded ../../../../../libopencm3
path for the TOOLCHAIN_DIR variable. They also contained another copy
of this hardcoded path, that is now generated from $TOOLCHAIN_DIR.

This allows to have a symbolic link to a Makefile.include in an
out-of-tree project and reuse the Makefile infrastructure.
2014-01-03 00:08:01 +01:00
Joshua Harlan Lifton
4505fa1926 Add USB<->serial loopback example to WaveShare Open103R 2014-01-02 23:38:53 +01:00
Joshua Harlan Lifton
b59c0a9e05 Add joystick example to WaveShare Open103R 2014-01-02 23:38:53 +01:00
Joshua Harlan Lifton
d944c0cba6 Port fancyblink example to WaveShare Open103R 2014-01-02 23:38:53 +01:00
Joshua Harlan Lifton
c672f1b329 Port button example to WaveShare Open103R 2014-01-02 23:38:52 +01:00
Joshua Harlan Lifton
f1bb59e19c First working example for the WaveShare Open103R eval board 2014-01-02 23:38:52 +01:00
Frantisek Burian
80ba923da1 [FIX] Populate the STK_CTRL to STK_CSR change 2014-01-02 23:14:09 +01:00
Mattias Eriksson
5efea57487 Updated USB HID examples with HID descriptor comments 2014-01-01 18:54:34 +01:00
Karl Palsson
100434b12d Update to latest libopencm3
And fix traceswo to match api change upstream.
2013-12-16 20:24:41 +00:00
Karl Palsson
d9536caeaa Fix broken adc.h includes
My bad, I'd been testing my header includes against a branch with some
draft unification of the adc code.  ADC is one of the remaining major
peripherals that isn't unified neatly.
2013-12-16 16:22:16 +00:00
Karl Palsson
92624b7d01 [stm32x] Use modern header include paths.
Replace includes of stm32/YY/xxxx.h with stm32/xxxx.h
Replace stm32/YY/nvic.h with cm3/nvic.h.
In some cases, the include list was resorted alphabetically when it was
complicated and I was reviewing them manually, but most of this was
automatically done.
2013-12-13 14:13:47 +00:00
Alexandru Gagniuc
408fa52ec3 Global: Remove temporary backup files
file.c~ (note the tilde at the end) are temporary backup files used by some
editors. They are not needed.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2013-07-08 09:59:16 -05:00
Piotr Esden-Tempski
7ee888a857 Changed echo usage for printf as it is more portable. 2013-06-30 19:49:21 -07:00
hk
614d921a3b OLIMEX STM32-H107 has a 25MHz crystal 2013-06-16 19:19:32 -07:00
Piotr Esden-Tempski
f5b0aa5638 Updated to the new locm3 changed to stdint types. 2013-06-16 19:07:22 -07:00
Piotr Esden-Tempski
f395592764 Updated all affected examples to the usb API change. 2013-04-25 17:44:11 -07:00
millerd
76cdc22896 Added some comments and deleted unimportant function 2013-04-25 14:11:14 -07:00
millerd
76ebdb86cd Added example which shows how to use internal FLASH memory in STM32f107 2013-04-25 14:11:01 -07:00
Piotr Esden-Tempski
753825d3cb Corrected some more paths for the new location of the library. 2013-04-19 17:53:09 -07:00
Piotr Esden-Tempski
9237f2f99c Corrected the library search path. 2013-04-19 17:41:20 -07:00
Piotr Esden-Tempski
9d5526f773 Initial commit. 2013-04-19 17:19:32 -07:00