aboutsummaryrefslogtreecommitdiff
path: root/examples
AgeCommit message (Collapse)Author
2013-02-18Merge pull request #79 "More L1 support (and f2/f4 rtc)"Piotr Esden-Tempski
Merge remote-tracking branch 'karlp/pr_more_l1_rtc'
2013-02-18Merging pull request #76 "LM4F clock api"Piotr Esden-Tempski
Merge remote-tracking branch 'mrnuke/lm4f_clock_api'
2013-01-29Added IRQ USART example for the f4 discovery board.Piotr Esden-Tempski
2013-01-23Add examples making use of the RTCKarl Palsson
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-22[l1] fix whitespace and missing license infoKarl Palsson
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-09Removed dummy character string from examples due to api change in: 7a5da60Piotr Esden-Tempski
2013-01-09lm4f: Update miniblink example to demonstrate clock APIAlexandru Gagniuc
Flashes the Red, Green and Blue diodes on the board, in order. The system clock starts at 80MHz. Pressing SW2 toggles the system clock between 80MHz, 57MHz, 40MHz ,20MHz, and 16MHz by changing the PLL divisor. Pressing SW1 bypasses the PLL completely, and runs off the raw 16MHz clock provided by the external crystal oscillator. The LEDs will toggle at different speeds, depending on the system clock. The system clock changes are handled within the interrupt service routine. Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2013-01-09lm4f: Make miniblink example more readable, by defining RGB pinsAlexandru Gagniuc
Instead of setting and clearing RGB pins by PINx constants, define more readable constants such as RGB_RED, and RGB_PORT. Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2013-01-06Marked some dummy variables in examples as unused, so that the newer GCC ↵Piotr Esden-Tempski
stops complaining.
2013-01-06Fixed compilation of all the examples after merging pull requests...Piotr Esden-Tempski
2013-01-06Merging pull request #74 LM4F initial supportPiotr Esden-Tempski
Merge remote-tracking branch 'mrnuke/lm4f_initial'
2013-01-06Merge pull request #73 RNGPiotr Esden-Tempski
Merge remote-tracking branch 'oojah/master'
2013-01-06Merging pull request #63 Improvements to STM32F1 I2C, CAN, RCC, and USB (f107)Piotr Esden-Tempski
Merge remote-tracking branch 'icd/master'
2013-01-01lm4f: Update stellaris example to new LM4F registersAlexandru Gagniuc
The LM4F provides new registers for system control. Each peripheral now has its own clock gating control register. The LM4F still supports the legacy registers for backwards compatibility. Use SYSCTL_RCGCGPIO instead of SYSCTL_RCGC to enable the GPIO. Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-12-31lm4f: Compile with FPU supportAlexandru Gagniuc
Specify the -mfloat-abi=hard and -mfpu=fpv4-sp-d16 flags so that FPU is enabled by default. While this compiles with FPU support, in order to use the floating point types, the FPU must be explicitly enabled at runtime. Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-12-31lm4f: Fix problems with example Makefile.includeAlexandru Gagniuc
Fix three distinct issues were present with examples/lm4f/Makefile.include: 1. Architecture flags were not being passed to the linker. This caused the linker to link against the wrong libraries when trying to use any C library, causing hard faults. 2. -lc and -lnosys were not linked against. Try using printf() without -lnosys 3. The makefile erroneously specified -mcpu=cortex-m3 instead of m4. Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-12-31lm4f: Remove erroneous references to lm3sAlexandru Gagniuc
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-12-31lm4f: Add exammple for Stellaris Launchpad boardAlexandru Gagniuc
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-12-12Update STM32 RNGEN register bit name to more closely match documentation.Roger Light
2012-11-13Merge branch 'master' of git://github.com/libopencm3/libopencm3 into ↵Jeff Ciesielski
upstream-merge
2012-11-12[examples] Added usart example for obldc strip.Piotr Esden-Tempski
2012-11-11[examples] Added CAN example for obldc strip.Piotr Esden-Tempski
2012-11-11[examples] Added systick example for obldc strip.Piotr Esden-Tempski
2012-11-11[examples] Added obldc strip led example.Piotr Esden-Tempski
2012-11-08Made all Lisa/M 2.0 examples luftboot ready.Piotr Esden-Tempski
2012-11-08Updated and backported improvements form the Lisa/M 2.0 CAN example.Piotr Esden-Tempski
2012-11-08Added updated and improved CAN example for Lisa/M 2.0.Piotr Esden-Tempski
2012-11-07Adjusted path to nvic.h.Piotr Esden-Tempski
2012-11-07Update documentation to reflect realityKarl Palsson
2012-11-07Remove debug code.Karl Palsson
2012-11-07Enable nvic and exti support for L1Karl Palsson
And include an example that uses it.
2012-11-07Add usart support for L1.Karl Palsson
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-07STM32L1 support, rebased onto upstream generalizations branch.Karl Palsson
Working example again.
2012-11-07Add most of the rcc functions.Karl Palsson
(Add the forgotten gpio.c file from before)
2012-11-07Finish RCC definitions => Working example!Karl Palsson
2012-11-07More progress towards L1 support.Karl Palsson
Believe gpio is complete, but untested without finishing at least the RCC defines. RCC defines are a work in progress
2012-11-07Use make flags to help control where the library is installedKarl Palsson
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-06Enable OTG clock during initializationAndrey Smirnov
Add a call to enable USB clock, otherwise the dive will not enumerate.
2012-10-31Fixed stm32f4-discovery/usb_cdcacm example for deduplication patches.Piotr Esden-Tempski
2012-10-31Merge pull request #22 fixing usb and f4 alignment issuesPiotr Esden-Tempski
Merge remote-tracking branch 'jdk/master' Conflicts: lib/stm32/f1/Makefile lib/stm32/f4/Makefile
2012-10-19examples: fix lisa-m-1 can example to use new can init functionJeff Ciesielski
2012-10-19define platform specific constants for all chipschrysn
previously, only stm32 chips passed the information about which chip to build on into the compiler. this information is essential to dispatch, thus defining LPC13XX, LPC17XX, LPC43XX and LM3S in analogy to STM32F1..4.
2012-10-18unified systick handlingchrysn
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-18unify scb (system control block)chrysn
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-18adapt lpc43xx example to generalizationschrysn
2012-10-18modified examples to use libopencm3/cm3/nvic.h instead of /stm32/chrysn
2012-10-16fix clean target for example makefiles if the compiler is not in PATHFelix Ruess
2012-10-07updated the lisa_m_2 (STM32 F1) ADC examples for recent code changes to ↵Stephen Dwyer
stm32f1 adc.c and adc.h
2012-10-07oops, had to update bin names in makefiles for adc examplesStephen Dwyer
2012-10-07added different ADC sampling examples for the LisaM v2 including:Stephen Dwyer
* 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