Commit Graph

74 Commits

Author SHA1 Message Date
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
Piotr Esden-Tempski
5bafa042c5 [locm3] Updated to the newest version of locm3. 2014-01-03 01:08:13 +01: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
Leigh Brown
c0791cd4a7 lm3s: add LM3S811 eval board miniblink example
The LM3S811-EVB miniblink example is a copy of the LM3S3748-EVB miniblink
example.  Modifications:

 - rename lm3s3748-evb.ld to lm3s811-evb.ld and change RAM and ROM sizes
 - amend Makefile to reference the lm3s811-evb.ld linker script
 - amend miniblink.c to use PC5 instead of PF0 for the LED GPIO
 - amend README to reference LM3S811-EVB instead of LM3S3748-EVB
2014-01-02 23:55:08 +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
eeb900d800 Fix typo 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
Piotr Esden-Tempski
9338034eea Updated libopencm3 submodule to the newest version. 2014-01-02 23:06:43 +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
BuFran
2b8b526df0 [BUILD] Paralelize cleaning of examples
make clean     1:50 -> 1:55 (no change)
make clean -j8 1:30 -> 0:28 (strongly faster)

Measured on Core i7 (4 cores, each HT) @ 3GHz
2013-12-13 14:18:10 +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
Dirk Braun
210761e1df [lm4f] Added a note for Windows users to the README 2013-12-13 14:10:57 +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
b82cb85cc4 [STM32F3] Updated locm3 so that the newly added f3 examples compile. 2013-07-07 21:58:55 -07:00
Federico Ruiz Ugalde
fa8355225e stm32f3: cleaning some unused variables. 2013-07-07 21:44:50 -07:00
Federico Ruiz Ugalde
04a40d5cf6 stm32f3: Examples Makefile now includes f3 dir. 2013-07-07 21:44:41 -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
fb4cecd05e Updated libopencm3. Disabled lpc43xx examples.
We merged a huge patchset for lpc43xx that breaks the examples. As we
are waiting for those to be updated it is better to disable the
automatic build of them.
2013-07-07 19:05:59 -07: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
d74a44e589 Added missing _write prototype. 2013-06-16 19:17:37 -07:00
Piotr Esden-Tempski
3186a4f2e7 Switched sewly added files to stdint types, as the pull request was done before the switch. 2013-06-16 19:14:55 -07:00
Alexandru Gagniuc
7639a88928 lm4f: Add USB bulk device example
I wrote this example to benchmark the USB driver. See the README.md for
full details.

Why README.md instead of just README. README.md shows up better on github,
and makes it easier to browse the tree on github to search for an example.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2013-06-16 19:11:43 -07:00
Alexandru Gagniuc
28f92cce2b lm4f: Add USB to serial (CDCACM) example
Implements a USB-to-serial adapter, compliant to the CDCACM subclass.
UART1 is used for the TX/RX lines. Although UART1 also has lines for flow
control, they are not used. Instead, the control lines are implemented in
software via GPIOA.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2013-06-16 19:11:28 -07:00