Commit Graph

20 Commits

Author SHA1 Message Date
Karl Palsson
85be1e5e7b update to current library
Minor api changes required.
2018-03-03 21:42:52 +00:00
Peter Mortensen
6e71b9dea8 stm32f0: miniblink: update comments to match code
Brought the comments up to date wrt. the actual code (inconsistency removed).
2018-01-08 10:02:47 +00:00
Karl Palsson
eb54fbf285 adc: update to standardized calibrate api
Drop leftover code from before they were blocking, unify all to standard
api.
2016-10-01 16:13:45 +00:00
Karl Palsson
b227e1609c rules: provide default C and C++ standards
Default CSTD to c99, no default for CXXSTD, but if provided it will be used.

Add required gnu99 flags to projects using gnu styles.
2016-08-18 22:41:23 +00:00
Trevor Woerner
a5641ab63e cookie_io fixes for gcc-5.3
Using the latest (as of today) gcc-arm-embedded toolchain caused two build
failures similar to:

	error: unknown type name 'cookie_io_functions_t'

These custom IO functions are now protected by a define, so define _GNU_SOURCE
which enables all such areas. This is a libc issue.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2016-06-17 10:31:56 -04:00
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
Karl Palsson
b50cdb56de stm32f0: systick_blink: Robustness and correctness fixes
Update documentation and comments in code to reflect reality.
Ensure that GPIO pin output speed is actually set, to ensure that 48Mhz sysclk
output is functional.
Actually set AF, instead of relying on reset values.
Replace the systick code, the core of this example, with some code that has
less traps and surprises.  Instead of trying to get a direct interrupt x times
per second, and reguarly running into problems with the 24 bit counter limit,
use a method that triggers an interrupt every x ms instead.  Tested MCO and
blink rates with a logic analyser, properly verified working now :)
2016-04-07 22:04:03 +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
Karl Palsson
1215603031 update lib to latest, and fix for changes
rcc_core_frequency -> rcc_ahb_frequency
2014-12-18 22:08:34 +00: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
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
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