Commit Graph

21 Commits

Author SHA1 Message Date
Karl Palsson
2092a6759d update libopencm3
This brings in the new ADC api for STM32 parts.

Update to new standardized ADC apis.
Drops pointless channel definitions, uses common names for common functions.
No functional changes.

Based on work in: https://github.com/libopencm3/libopencm3-examples/pull/130
2016-04-10 13:49:07 +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
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
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
9934e40fe9 [BUILD] Add generic Makefile.rules 2014-01-06 22:25:40 +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
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
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