Commit Graph

58 Commits

Author SHA1 Message Date
Karl Palsson 4aaae0086a stm32f4: Document which discovery board the examples are for
Try and reduce a little confusion if we can.
2014-07-11 13:13:17 +00:00
Karl Palsson 6960d2adef stm32l1: correct misleading comments
Even though we eventually want to replace some of these magic defines with
board info files, let's still have correct comments.
2014-04-05 13:12:36 +00:00
Frantisek Burian dd320a6e99 [STYLE] Revert the 'const' warning in cdcacm examples.
Examples are now compilable without warnings.
2014-03-23 21:20:41 +01:00
Karl Palsson 64ecb61543 f0: remove toolchain specific options
While nano specs are certainly handy, it should be documented how to use them,
not turned on by default.  People with otherwise valid toolchains, who might
simply not care about nano specs are unable to build the examples with these
options.
2014-03-08 15:03:36 +00:00
Frantisek Burian 8ffaf0579d Fix the bug in compilation in the style fix run. 2014-02-13 20:24:22 +01:00
Frantisek Burian 3f47411e24 [Stylecheck] F0, F1, F4
There are remaining C99 comments.
2014-02-13 19:15:24 +01:00
Frantisek Burian 022cc475bf [DOC] Updated README's for F0 and F4 examples to describe the needed board connections. 2014-02-13 19:15:00 +01: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
Karl Palsson 3f68a5ceef stm32l: Correct openocd flash target name 2014-02-13 12:00:03 +00:00
Ken Sarkies 523401097a [STM32F4] DAC triggered by timer and DMA transfers. 2014-01-17 11:36:37 +00: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 04c92b6677 stm32f4: adc-dac-printf example
This is the same behaviour as the f1 and l1 examples of this code, making it
easier to test changes to unification of the adc code.
2014-01-04 00:13:34 +00: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
Frantisek Burian 72c1a29779 Correct the F3 examples hardfaults in rare cases, correct style 2014-01-03 00:18:41 +01: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
Karl Palsson ca926f00e0 [stm32l1] Add semihosting example
This is not specifically an L1 example, but it lives beside the L1 "usart"
example to show how easy it is to add semihosting support to existing code.

Tested with the by now relatively old g-a-e 2012q4 release and
OpenOcd 0.8.0-dev-00011-g70a2ffa (2013-05-14-19:41)
2014-01-02 23:33:22 +01:00
Piotr Esden-Tempski 26d27497f2 [tick_blink] Fixed to work with the current locm3. 2014-01-02 23:30:27 +01:00
Chuck McManis 3673e4059b This is a demo that uses the System Tick counter in the STM32F4
as a way of creating accurately timed delays. A simple 'msleep'
is implemented by watching the system clock to wait a certain
number of milleseconds before it returns. Its a bit more accurate
than a for loop, although it really shines when your running multiple
threads.
2014-01-02 23:29:13 +01:00
Frantisek Burian 314ad2d877 [F24:CRYPTO] Add example using cryptographic module on F41x or F2x 2014-01-02 23:26:32 +01:00
Frantisek Burian d8757ab1fc [EXAMPLE:F0] Add example of using systick and MCO output on pin PA9.
This example is a merge of Chuck McManis's example for F4 and onnokort's system clock setting test blink example for demonstration issue, corrected in #224.

The LED in any available clock setting flashes four times per second.
2014-01-02 23:22:55 +01:00
Frantisek Burian c5d6480201 [EXAMPLE:F0] Add simple ADC example 2014-01-02 23:22:55 +01:00
BuFran 4ae45b913d [EXAMPLE:F0] Add usart printf example using newlib-nano 2014-01-02 23:22:55 +01:00
BuFran 60e08c0591 [EXAMPLE:F0] Add simple usart example 2014-01-02 23:22:55 +01:00
Frantisek Burian f176fe59d9 [EXAMPLE:F0] Add simple button example 2014-01-02 23:22:55 +01:00
Frantisek Burian a8b3daeb57 [EXAMPLE:F0] Add simple miniblink example 2014-01-02 23:22:55 +01:00
Frantisek Burian 71bd938eeb [EXAMPLE:F0] Add basic example include 2014-01-02 23:22:55 +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
Federico Ruiz Ugalde fa8355225e stm32f3: cleaning some unused variables. 2013-07-07 21:44:50 -07:00
Federico Ruiz Ugalde 87db268c8e stm32f3: cdcacm example added and tested. 2013-07-07 21:42:18 -07:00
Federico Ruiz Ugalde d0d2730db8 stm32f3discovery: spi l3gd20 example added. 2013-07-07 21:42:14 -07:00
Federico Ruiz Ugalde 98b4d42846 stm32f3discovery: Moving read and write convinience functions to libopencm3. 2013-07-07 21:41:46 -07:00
Federico Ruiz Ugalde e1d5325736 stm32f3discovery: Adding i2c accelerometer example. 2013-07-07 21:41:26 -07:00
Federico Ruiz Ugalde 63f3bd7713 Adc example fixed (printing garbage before) and cleaned.
- Integer printing function fixed.
  	  - because of comparison against smaller than 0 numbers we must use signed numbers!
	  - Value zero was not printed at all.
	  - It was printing one more character than it should.
- Erasing unnecesary commentaries.
- Erasing debugging help.
2013-07-07 21:41:11 -07:00
Federico Ruiz Ugalde 6474ed3cf0 Flashing now using openocd. GDB Debugging possible and tested :). 2013-07-07 21:41:11 -07:00
Federico Ruiz Ugalde 4832449dd2 stm32f3discovery ld script corrected as recommended in #82. 2013-07-07 21:40:52 -07:00
Federico Ruiz Ugalde 757d044c23 stm32f3discovery examples added.
- miniblink
- button
- fancyblink
- adc
- Non tested yet! But they compile.
2013-07-07 21:40:06 -07:00
Piotr Esden-Tempski 7ee888a857 Changed echo usage for printf as it is more portable. 2013-06-30 19:49:21 -07:00