Piotr Esden-Tempski
8a0b8fa9d8
[examples] [maple] Fixed all warnings in the new leaf maple examples.
2013-02-26 19:53:57 -08:00
Weston Schmidt
6ce2c6e13d
Add a few example programs for the Leaf Maple / IteadMaple boards.
2013-02-26 19:50:13 -08:00
Piotr Esden-Tempski
b3d895bc64
SPIEX: Fixed warnings in the new SPI examples.
2013-02-26 19:44:45 -08:00
Stephen Dwyer
cf87aeb714
[examples] added simple spi and dma based spi examples for stm32 f1 on Lisa/M v2 board
2013-02-26 19:38:40 -08:00
Piotr Esden-Tempski
3d3ddc7014
Fixed all warnings for examples.
2013-02-26 19:33:42 -08:00
Piotr Esden-Tempski
b0233ae6fb
Added more warning CFLAGS to all makefiles.
2013-02-26 16:42:20 -08:00
Felix Ruess
3ef44bff54
[cm3] fix doxygen for systick_get_value, add systick_get_reload
...
Fix the reload value in the examples:
to get a SysTick interrupt every N clock pulses: set reload to N-1
see http://infocenter.arm.com/help/topic/com.arm.doc.dui0552a/BGBEEJHC.html#BABGACGG
2013-02-19 19:22:49 +01:00
Piotr Esden-Tempski
b13e55da8c
Adjusted code for l1 to the new api introduced by karlp in pr #84
2013-02-18 14:12:48 -08:00
Piotr Esden-Tempski
f980f197ca
Merge pull request #81 "[examples f1] ADC+DAC very basic example"
...
Merge remote-tracking branch 'karlp/pr_f1_adc_dac'
2013-02-18 14:07:00 -08:00
Piotr Esden-Tempski
9095f58fa3
Merge pull request #79 "More L1 support (and f2/f4 rtc)"
...
Merge remote-tracking branch 'karlp/pr_more_l1_rtc'
2013-02-18 14:06:02 -08:00
Piotr Esden-Tempski
8b062bb659
Added IRQ USART example for the f4 discovery board.
2013-01-29 13:33:58 -08:00
Karl Palsson
d9fb4f7401
Add examples making use of the RTC
...
Add an example using the RTC to help with a lower power design. This is
a sister example to the existing "button-irq-printf", which is
functionally identical, but uses far less power.
There's more tricks that can be done to lower the power even further,
but this shows a few of the early steps that can be done, using the RTC
wakeup instead of a timer.
2013-01-23 00:01:46 +00:00
Karl Palsson
48eed286b9
[l1] fix whitespace and missing license info
...
Earlier additions to the L1 support were not correctly using linux
coding guidelines as specified in /HACKING.
Some examples were also missing license information.
2013-01-22 21:51:24 +00:00
Karl Palsson
13dedaafc1
[examples f1] ADC+DAC very basic example
...
Just shows some basic working examples of using the DAC with the ADC. No
special features, but very little hardware required to demonstrate.
2013-01-22 18:07:02 +00:00
Piotr Esden-Tempski
cb2fd43666
Removed dummy character string from examples due to api change in: 7a5da60
2013-01-09 00:39:42 -08:00
Piotr Esden-Tempski
4d234c7e27
Marked some dummy variables in examples as unused, so that the newer GCC stops complaining.
2013-01-06 21:17:00 -08:00
Piotr Esden-Tempski
0eeca37e9f
Fixed compilation of all the examples after merging pull requests...
2013-01-06 18:32:18 -08:00
Piotr Esden-Tempski
c03cbc41a1
Merge pull request #73 RNG
...
Merge remote-tracking branch 'oojah/master'
2013-01-06 18:05:49 -08:00
Piotr Esden-Tempski
c904c3ae57
Merging pull request #63 Improvements to STM32F1 I2C, CAN, RCC, and USB (f107)
...
Merge remote-tracking branch 'icd/master'
2013-01-06 17:52:43 -08:00
Roger Light
512769296a
Update STM32 RNGEN register bit name to more closely match documentation.
2012-12-12 20:34:44 +00:00
Jeff Ciesielski
db35fbb7ba
Merge branch 'master' of git://github.com/libopencm3/libopencm3 into upstream-merge
2012-11-13 13:13:40 -08:00
Piotr Esden-Tempski
956b1dbce4
[examples] Added usart example for obldc strip.
2012-11-12 14:11:10 -08:00
Piotr Esden-Tempski
4691568ca4
[examples] Added CAN example for obldc strip.
2012-11-11 21:02:15 -08:00
Piotr Esden-Tempski
7006d3c457
[examples] Added systick example for obldc strip.
2012-11-11 20:37:18 -08:00
Piotr Esden-Tempski
d1e789b5b7
[examples] Added obldc strip led example.
2012-11-11 20:36:56 -08:00
Piotr Esden-Tempski
1544800a23
Made all Lisa/M 2.0 examples luftboot ready.
2012-11-08 15:35:17 -08:00
Piotr Esden-Tempski
898691e5ef
Updated and backported improvements form the Lisa/M 2.0 CAN example.
2012-11-08 15:21:40 -08:00
Piotr Esden-Tempski
5d4d84026a
Added updated and improved CAN example for Lisa/M 2.0.
2012-11-08 15:18:26 -08:00
Piotr Esden-Tempski
971a295d43
Adjusted path to nvic.h.
2012-11-07 16:28:29 -08:00
Karl Palsson
db5d19b4d4
Update documentation to reflect reality
2012-11-07 21:54:18 +00:00
Karl Palsson
bffaa72f7e
Remove debug code.
2012-11-07 21:54:18 +00:00
Karl Palsson
ce8f47e7df
Enable nvic and exti support for L1
...
And include an example that uses it.
2012-11-07 21:54:18 +00:00
Karl Palsson
25acaa5878
Add usart support for L1.
...
Only tested with basic tx blocking, ie, the same example code as on
F2/F4, but the description of the block is almost identical.
2012-11-07 21:50:27 +00:00
Karl Palsson
4941286454
STM32L1 support, rebased onto upstream generalizations branch.
...
Working example again.
2012-11-07 21:50:27 +00:00
Karl Palsson
e4f84278f2
Add most of the rcc functions.
...
(Add the forgotten gpio.c file from before)
2012-11-07 21:50:27 +00:00
Karl Palsson
9aed64a19d
Finish RCC definitions => Working example!
2012-11-07 21:50:27 +00:00
Karl Palsson
8318384cf1
More progress towards L1 support.
...
Believe gpio is complete, but untested without finishing at least the
RCC defines.
RCC defines are a work in progress
2012-11-07 21:50:27 +00:00
Karl Palsson
f1f1aa84f3
Use make flags to help control where the library is installed
...
Where the library is installed has quite an affect on what -L and -I
flags are used. If you install into the toolchain, you don't want
to use them at all, but if you install out of tree (/opt/mycm3 for
example) you need to specify the -L and -I flags.
Update the documentation and the example makefiles to support this
2012-11-07 21:50:27 +00:00
Andrey Smirnov
74405de4a5
Enable OTG clock during initialization
...
Add a call to enable USB clock, otherwise the dive will not enumerate.
2012-11-06 11:03:12 -08:00
Piotr Esden-Tempski
08129a5644
Fixed stm32f4-discovery/usb_cdcacm example for deduplication patches.
2012-10-31 13:41:24 -07:00
Piotr Esden-Tempski
6b2ca89f48
Merge pull request #22 fixing usb and f4 alignment issues
...
Merge remote-tracking branch 'jdk/master'
Conflicts:
lib/stm32/f1/Makefile
lib/stm32/f4/Makefile
2012-10-31 13:34:18 -07:00
Jeff Ciesielski
32924fcc15
examples: fix lisa-m-1 can example to use new can init function
2012-10-19 16:33:07 -07:00
chrysn
bc5146b710
unified systick handling
...
the only change this results in in the example binaries is in the
hackrf-jellybean/systick example, where the the check in
systick_set_clocksource for overflowing from the stm32 area gets used.
2012-10-18 22:48:14 +02:00
chrysn
e20f1c0d8f
unify scb (system control block)
...
these register definitions are common to all cortex mcus. some of the
registers might not be implemented everywhere (especially the floating
point registers), but defining them does no harm.
this modification does not result in any changes in the example
binaries.
2012-10-18 21:45:20 +02:00
chrysn
94ce82396b
modified examples to use libopencm3/cm3/nvic.h instead of /stm32/
2012-10-18 13:28:03 +02:00
Felix Ruess
b7ebe6e705
fix clean target for example makefiles if the compiler is not in PATH
2012-10-16 14:09:42 -07:00
Stephen Dwyer
2b8fbfc433
updated the lisa_m_2 (STM32 F1) ADC examples for recent code changes to stm32f1 adc.c and adc.h
2012-10-07 17:53:09 -06:00
Stephen Dwyer
794f3fbeda
oops, had to update bin names in makefiles for adc examples
2012-10-07 15:38:02 -06:00
Stephen Dwyer
bece4c30d3
added different ADC sampling examples for the LisaM v2 including:
...
* simple polling of an injected channel
* timer triggered sampling of an injected channel
* timer triggered sampling and IRQ handling of an injected channel
* timer triggered sampling and IRQ handling of 4 injected channels
2012-10-07 15:38:02 -06:00
Piotr Esden-Tempski
9e77f8c361
Merging pull request #28 Random number generator defenition and example.
...
Merge remote-tracking branch 'tiltit/master'
2012-10-05 13:08:03 -07:00