Piotr Esden-Tempski
7073637430
Added 12MHz external clock rcc setup routine.
2011-03-09 14:06:58 -08:00
Uwe Hermann
ef766da468
Merge remote-tracking branch 'gsmcmullin/master'
2011-03-07 13:37:30 +01:00
Piotr Esden-Tempski
6694f3dc0c
Added timer example that generates a variable frequency signal. In that particular case it is generating the SOS morse code on the eval board led.
2011-02-20 18:02:19 -08:00
Piotr Esden-Tempski
662e77b4ee
Added a printf example that is using irq and a ring buffer to write to USART1 port. It is also reflecting the text you write to the device.
2011-02-18 12:18:57 -08:00
Piotr Esden-Tempski
a71c4c128a
Added usart_printf example into the buildsystem.
2011-02-17 20:35:30 -08:00
Piotr Esden-Tempski
fedad2eb9a
Added an example using newlib printf for writing to UART1.
2011-02-17 20:12:44 -08:00
Piotr Esden-Tempski
4667760392
Added usart_irq to the build system.
2011-02-17 18:37:51 -08:00
Piotr Esden-Tempski
d1baf00629
Added usart_irq test for stm32-h103 board.
2011-02-17 18:35:51 -08:00
Piotr Esden-Tempski
310561ac50
Made usart_irq example more robust. It should not duplicate bytes anymore.
2011-02-17 18:32:07 -08:00
Gareth McMullin
4ed536c988
Added example using ITM and TPIU for TRACESWO output.
2011-02-17 21:50:00 +13:00
Piotr Esden-Tempski
7d3608f746
Added fanciblink for Lisa/M.
2011-02-14 19:59:24 -08:00
Uwe Hermann
dfa9145a34
STM32VLDISCOVERY: Fix ld file comments (STM32F100RB).
2011-02-09 02:48:51 +01:00
Uwe Hermann
1cb45d8888
STM32VLDISCOVERY: Fix some incorrect GPIO comments.
2011-02-09 02:48:51 +01:00
Uwe Hermann
5bfffcbb29
Use ST STM32VLDISCOVERY board name consistently.
2011-02-09 02:48:51 +01:00
Uwe Hermann
62f3897a2e
Add some examples for the STM32-Discovery board.
...
This adds a directory of examples, tested on the STM32-Discovery, just
modifications of: button, miniblink, fancyblink, usart, and rtc.
Thanks Marko Kraljevic <krasnaya.zvezda@gmail.com> for the patch!
2011-02-09 02:48:51 +01:00
Uwe Hermann
447c333cec
Minor cosmetics, whitespace.
2011-02-09 01:06:43 +01:00
Gareth McMullin
769a932f3e
Added initial support for the LuminaryMicro LM3S family.
2011-02-04 22:47:51 +13:00
Piotr Esden-Tempski
d40fb96fcf
Added set prescaler and set repetition counter functions to timer.
2011-01-31 22:08:37 -08:00
Piotr Esden-Tempski
92edc113f9
Added timer reset function.
2011-01-31 16:30:12 -08:00
Piotr Esden-Tempski
e85c55a9a7
Added timer flag reset function.
2011-01-31 16:15:09 -08:00
Piotr Esden-Tempski
dd0018ffdf
Added interrupt and event generation handling functions to timer. Updated pwm 6step example to use those and commutate on button press using PWM ON scheme.
2011-01-31 13:28:54 -08:00
Uwe Hermann
a0091f18c7
Cosmetics, consistency fixes, fix compiler warnings.
2011-01-30 22:43:33 +01:00
Damjan Marion
7801cdf5a2
Fancyblink example for Olimex STM32-H107 board.
2011-01-30 22:18:25 +01:00
Gareth McMullin
aac65d8560
Abstracted USB driver interface to to allow driver selection.
2011-01-30 17:04:56 +13:00
Piotr Esden-Tempski
59293a9640
Added break and dead time convenience functions. Adapted 6step example to reflect that.
2011-01-28 16:04:36 -08:00
Piotr Esden-Tempski
a1bd228c87
Replaced OC mode selection with an enum, makes it simpler to use.
2011-01-28 15:11:52 -08:00
Piotr Esden-Tempski
5975750e5e
Added output compare channel convenience functions and adapted the pwm_6step example accordingly.
2011-01-27 22:18:34 -08:00
Piotr Esden-Tempski
d608049563
Started a pwm 6step output example. Enabled timer convenience functions and some minor fixes that showed themselves while writing the bare bone example.
2011-01-27 17:03:13 -08:00
Piotr Esden-Tempski
ab88871ef6
Changed button and exti tests to use floating input as pullup is not needed.
2011-01-13 15:12:07 -08:00
Piotr Esden-Tempski
51a3044232
Added a simple exti test using rising and falling trigger instead of sampling the gpio pin to determine the current state of the pin.
2011-01-13 15:10:38 -08:00
Piotr Esden-Tempski
9cea5525f6
Renamed exti test to exti_both as it uses TRIGGER_BOTH mode and sampling the gpio pin to determine the state of the pin.
2011-01-13 15:10:14 -08:00
Piotr Esden-Tempski
8530f36df1
Added basic exti interrupt test.
2011-01-13 14:50:13 -08:00
Piotr Esden-Tempski
c208e0b3c5
Added a simple input test using the button on STM32-H103 eval board.
2011-01-13 12:54:22 -08:00
Uwe Hermann
ca53311bfc
Use __asm__("nop") in the loop-based delays.
...
Since we recently switched from -O0 to -Os, an increase in the loop count
as well as the addition of __asm__("nop") is required (so that the loop
doesn't get optimized/removed).
The real fix is to add a proper timer-based delay function, of course.
Also, fix a bunch of cosmetic issues and typos.
2011-01-03 01:12:07 +01:00
Piotr Esden-Tempski
05f66cde4c
Ported pwmleds (pwm timer output test) to obldc.
2011-01-02 16:49:31 +01:00
Uwe Hermann
8f251e8a9d
Some more file/path restructuring.
...
All #includes now explicitly use the "<libopencm3/stm32/rcc.h>" format.
If you want to get rid of the "libopencm3" prefix in your local project you
can add a respective -I entry in your Makefile (not recommended though).
All .ld files and .a libs are installed in $(TOOLCHAIN_DIR)/lib
directly (as before), but are now renamed to avoid potential
conflicts now or in the future. Examples:
libopencm3_lpc13xx.a
libopencm3_lpc13xx.ld
libopencm3_stm32.a
libopencm3_stm32.ld
2010-12-31 18:18:39 +01:00
Uwe Hermann
bc9d45556a
Cosmetics: Fix build output paths.
2010-12-30 14:18:04 +01:00
Uwe Hermann
8c946de4d4
Some more LD paths fixes.
2010-12-30 14:12:32 +01:00
Uwe Hermann
a97dd10a95
More libopenstm32 renames.
2010-12-30 13:22:56 +01:00
Uwe Hermann
18790a2454
More renames for libopenstm32 -> libopencm3.
2010-12-30 13:19:25 +01:00
Uwe Hermann
0995f73f72
Finish libopenstm32.ld to stm32.ld rename.
2010-12-30 13:14:36 +01:00
Uwe Hermann
48b514d3ef
s/libopenstm32/libopencm3/ is some Makefiles.
2010-12-30 03:45:00 +01:00
Uwe Hermann
079dc05c73
Change some names to libopencm3.
2010-12-30 03:09:35 +01:00
Uwe Hermann
8e5acecc6e
More path and name changes.
2010-12-30 02:57:44 +01:00
Uwe Hermann
be2ac142d9
Rename include/libopenstm32 to include/stm32.
2010-12-30 02:23:51 +01:00
Uwe Hermann
8e084b1517
Move STM32-specific source to lib/stm32 subdir.
2010-12-30 02:12:31 +01:00
Uwe Hermann
bcce98da54
Move STM32 examples to examples/stm32 subdir.
2010-12-30 01:52:44 +01:00
Uwe Hermann
b65f3f06d0
Add initial lpc-p1343/miniblink example (untested).
...
This is not yet tested on hardware, it probably won't work, yet.
2010-12-30 01:36:16 +01:00
Uwe Hermann
17b2e87ba3
Factor out cm3/common.h and cm3/memorymap.h.
2010-12-30 00:53:52 +01:00
Uwe Hermann
01bfbfed41
Deduplicate example README file contents.
2010-12-29 19:49:59 +01:00
Uwe Hermann
c39eb69e4d
Replace uint8_t with u8 et al, fix whitespace.
2010-12-29 17:28:06 +01:00
Uwe Hermann
34fd228bf9
Move generic USB stuff to a subdir, dedupe .h files.
...
Adapt examples and the lib code accordingly.
2010-12-29 17:02:36 +01:00
Uwe Hermann
f062777930
More whitespace fixes.
2010-12-29 16:43:26 +01:00
Uwe Hermann
36931dc991
Whitespace fixes.
2010-12-29 15:55:12 +01:00
Uwe Hermann
a6e6a08a3a
Make the build/clean targets a bit less verbose.
2010-12-29 15:44:12 +01:00
Uwe Hermann
24e9860d30
Drop Paparazzi-specific stuff, deduplicate Makefiles.
2010-12-29 15:22:39 +01:00
Uwe Hermann
1c6d7cf06a
Merge branch 'martinmm'.
2010-12-29 15:12:23 +01:00
Piotr Esden-Tempski
66fd5373b4
Implemented a uart example that is using irq for receive and transmit.
2010-12-29 13:56:22 +01:00
Uwe Hermann
5e0c463147
stm32-h103/Makefile: Fix usb_cdcacm build.
2010-12-29 12:59:01 +01:00
Uwe Hermann
d729cf9576
other/usb_hid: Small fixes in the README.
2010-12-29 12:59:01 +01:00
Piotr Esden-Tempski
600d8c3458
Added gc-sections. Now unused functions are being garbage collected.
2010-12-27 21:30:12 +01:00
Piotr Esden-Tempski
81045ff279
Fixed PLL setup for systick.
2010-12-27 17:43:48 +01:00
Piotr Esden-Tempski
bf0b987fe3
Splitted out the usart recv and send functions to have blocking and non blocking versions of those.
2010-12-27 15:29:22 +01:00
Uwe Hermann
571c4d37d0
CAN: Reduce nesting level via code transformations.
2010-12-26 00:36:32 +01:00
Uwe Hermann
06d1a5ca80
CAN: Cosmetics and coding-style fixes.
2010-12-26 00:30:05 +01:00
Piotr Esden-Tempski
e7d765ea90
Factored out CAN helper functions out of the example. Test code now also uses the received data.
2010-12-25 20:39:46 +01:00
Piotr Esden-Tempski
c6e86901e8
Fixed timing settings. Now CAN test code works!!!
2010-12-23 21:53:02 +01:00
Piotr Esden-Tempski
1471b6d297
Various fixes to the can test program.
...
- External Clock is 8Mhz not 16Mhz
- CAN peripherial should be deinitialized at the beginning
- Added can receive interrupt handler
- Added some more led indicators of internal state (error reporting)
- Orange: send indicator
- Blue: message queue full indicator
- Red: INACK failure indicator
2010-12-23 02:04:07 +01:00
Piotr Esden-Tempski
3c12fc6cd3
Initial implementation of CAN test program.
2010-12-22 22:57:25 +01:00
Piotr Esden-Tempski
7f15dd0fc2
Added selection of jtag serial number through make commandline.
2010-12-22 22:55:56 +01:00
Piotr Esden-Tempski
77fbe48a5e
Added usart test version for obldc.
2010-12-21 20:55:04 +01:00
Piotr Esden-Tempski
45e57fa51e
Corrected pwmleds to use the right GPIO defines.
2010-12-21 20:14:54 +01:00
Piotr Esden-Tempski
c38aac0d2a
Cosmetic fix.
2010-12-21 20:14:49 +01:00
Uwe Hermann
5060261413
Cosmetics.
2010-12-20 19:52:51 +01:00
Piotr Esden-Tempski
44442e44c9
Added obldc systick test program.
2010-12-18 00:08:39 +01:00
Piotr Esden-Tempski
5e76fe66b7
Added obldc board led test program.
2010-12-18 00:08:34 +01:00
Piotr Esden-Tempski
c031b6691e
Moved common example make code to a central file. Added more gitignores.
2010-12-17 21:45:38 +01:00
Martin Mueller
586a4740d5
adapt to new usb interface
2010-12-06 00:07:14 +01:00
Martin Mueller
963588aba0
Lisa/M board tests
2010-12-05 23:59:12 +01:00
Gareth McMullin
e0cd352990
Fixed HID example to work with new control mechanism.
2010-11-06 19:05:57 +13:00
Gareth McMullin
e355906345
Fixed DFU example to work with new control mechanism.
2010-11-06 18:53:10 +13:00
Gareth McMullin
7f002110dc
Improved dispatching of user control callbacks.
...
Only cdc_acm example is updated.
2010-11-06 12:21:46 +13:00
Martin Mueller
d6eacce827
add standard request
2010-11-04 00:44:47 +01:00
Uwe Hermann
6e090ccee1
Initial USB device stack for STM32.
...
Patch provided by Gareth McMullin <gareth@blacksphere.co.nz>,
thanks a lot!
2010-11-02 02:02:21 +01:00
Uwe Hermann
6ba179b361
Various cosmetic and coding style fixes.
2010-06-29 23:01:44 +02:00
Thomas Otto
d08ee7e333
Changed examples to new rcc definitions.
2010-05-11 14:50:55 +02:00
Uwe Hermann
93fe67908a
Add more RTC functions and an RTC example.
...
Thanks Lord James <lordjames@y7mail.com> for the patch!
2010-05-10 00:40:42 +02:00
Thomas Otto
ffcf53ef00
Make examples/other make use of new clock setup.
2010-05-02 20:28:51 +02:00
Thomas Otto
a104b63ea9
Added DOGM128 LCD display example (SPI).
2010-05-02 14:44:31 +02:00
Thomas Otto
4ae25c865b
Corrected comment only.
2010-04-13 22:42:26 +02:00
Thomas Otto
d3890f9b32
Added systick example to Makefile.
2010-04-13 22:38:24 +02:00
Thomas Otto
7c32f63332
Added little systick example.
2010-04-13 22:33:52 +02:00
Thomas Otto
e50b836ada
Added timer_interrupt example.
2010-03-28 16:11:45 +02:00
Thomas Otto
9dc0af94b0
Added dma_mem2mem example.
2010-03-28 15:52:49 +02:00
Thomas Otto
be986aa8d9
Corrected Makefile for ADC example
2010-03-25 10:13:15 +01:00
Thomas Otto
3882f8f96f
Fixed binary name in README
2010-03-24 20:41:27 +01:00
Thomas Otto
384a7e688e
Added adc_temperature_sensor to examples
2010-03-24 20:36:19 +01:00
Uwe Hermann
a6342d4968
Cosmetic fixes.
2010-03-06 15:22:09 +01:00
Uwe Hermann
d8eb8ce746
Consistently use the hex file for flashing.
2010-03-05 23:30:26 +01:00
Uwe Hermann
8faf33275a
Makefile output cosmetic improvements.
2010-03-05 23:24:09 +01:00
Uwe Hermann
20ff2d9a7b
Drop unused comments.
2010-03-05 23:16:56 +01:00
Uwe Hermann
87df73edf2
Print "Entering directory" only upon "make V=1".
2010-03-05 23:13:47 +01:00
Uwe Hermann
2c8ae015d0
Use standardized reg32 variable name.
2010-03-05 22:46:27 +01:00
Uwe Hermann
46e5ed202a
Add i2c_stts75_sensor example.
...
Thanks Thomas Otto <tommi@viadmin.org> for the patch!
2010-03-05 22:35:29 +01:00
Uwe Hermann
54dfb91996
Add missing spi.h #include.
2010-03-04 21:35:59 +01:00
Piotr Esden-Tempski
d7489ebfbd
Added standard clock setup routines.
...
Thanks to Thomas Otto for pointing out problems with the clock code in
examples and his clock routine implementations. Based on that the most
common clock combination routines were added to the library and all
routines in examples setting up the clock replaced with calls to that
functions.
2010-03-04 20:37:04 +01:00
Piotr Esden-Tempski
d84c4030b2
Cleaned up header inclusion.
...
Now all examples are including only the modules they really need. Also
each header file of the library is including only the necessary headers
making it possible to use these modules in parallel with other
implementations that may collide with the definitions in other modules.
2010-03-04 19:16:24 +01:00
Uwe Hermann
9b4b4b1c83
Add SPI example framework (unfinished).
2010-03-02 10:59:17 +01:00
Piotr Esden-Tempski
cdc1846f5b
Added gamma 2.2 and set as default gamma for fade mode.
2010-02-27 20:58:31 +01:00
Uwe Hermann
9928fb0820
Add missing Makefile snippets for pwmleds.
2010-02-24 00:37:10 +01:00
Uwe Hermann
75e66f26d7
Revert unintended change.
2010-02-23 23:39:09 +01:00
Uwe Hermann
0a0be96d12
Cosmetics, whitespace, coding style.
2010-02-23 23:38:05 +01:00
Piotr Esden-Tempski
2c404f962a
Added KITT mode.
2010-02-22 15:56:49 +01:00
Piotr Esden-Tempski
da2b9d94fb
Added gamma 2.5 corrected 3.0 table added fade mode.
...
The fade mode is using one gamma correction table and fades with a time
offset to create a nice moving fade.
2010-02-22 15:06:28 +01:00
Piotr Esden-Tempski
c713c02e9d
Scaled gamma 1.3 table to cover whole power range.
...
Now the example shows the difference between different gamma approaches.
2010-02-22 13:59:51 +01:00
Piotr Esden-Tempski
002ec200ad
Added proper gamma correction tables.
2010-02-22 12:59:15 +01:00
Piotr Esden-Tempski
18097d9ed0
Added pwmleds example for mb252 board.
...
It creates a fading pattern on the 4 leds on the eval board, using TIM3
PWM output, and a gamma correction lookup table.
2010-02-22 10:03:56 +01:00
Uwe Hermann
94ccc164db
Use --no-print-directory option of 'make'.
2010-01-26 03:12:23 +01:00
Uwe Hermann
06fa19df3e
Cosmetics in build output.
2010-01-26 03:11:27 +01:00
Uwe Hermann
da79139560
Fix Makefile to use new directory names.
2010-01-26 03:02:06 +01:00
Uwe Hermann
da8d9de6b0
Rename example directory names to all-lowercase.
2010-01-26 03:01:25 +01:00
Piotr Esden-Tempski
6ca739296d
Updated example README files.
2010-01-25 17:32:35 +01:00
Piotr Esden-Tempski
4935a0ddd8
Moved vector_table to the library.
2010-01-25 17:29:06 +01:00
Piotr Esden-Tempski
a88c1b0ee9
Fixed ROM start address in linker scripts.
2010-01-25 17:22:25 +01:00
Piotr Esden-Tempski
699ec0fb15
Added fancyblink example for the MB525 eval board.
2010-01-25 17:22:11 +01:00
Piotr Esden-Tempski
3a4f36d80f
Moved all examples to a board specific folder.
2010-01-22 12:47:35 +01:00
Piotr Esden-Tempski
667f32bd45
Added USART_ prefix to bit definitions.
...
This matches the new convention used throughout libopenstm32.
2010-01-15 00:03:29 +01:00
Uwe Hermann
e5fb750378
Modularize OpenOCD paths in the example Makefiles.
2009-12-31 00:17:38 +01:00
Uwe Hermann
25a003b076
Add rcc_peripheral_{reset,clear_reset} functions.
...
Also, rename two other functions for consistency.
2009-08-31 14:47:07 +02:00
Uwe Hermann
9a4a47fdeb
Add default alternate function GPIO pin definitions.
2009-07-25 18:47:10 +02:00
Uwe Hermann
d20c3454fa
Add a simple USART example project which sends some bytes.
2009-07-25 03:27:48 +02:00
Uwe Hermann
bb7ce24f42
Fix docs: OpenOCD 'resume' command doesn't work properly, use 'reset'.
2009-07-25 01:59:25 +02:00
Uwe Hermann
734a87d4c5
Factor out some code into gpio_setup().
2009-07-25 01:48:50 +02:00
Uwe Hermann
cfd87f6b9d
Add mini ld scripts in the example which include the global one.
2009-07-25 00:05:06 +02:00
Uwe Hermann
3f12e37531
The -L linker option should come before any ldscript file.
2009-07-25 00:01:21 +02:00
Uwe Hermann
50ba77bea9
Factor out ld scripts into one common script in the lib.
2009-07-24 23:19:44 +02:00
Uwe Hermann
86db715332
Simplify example Makefiles by using only one TOOLCHAIN_DIR variable.
2009-07-24 14:42:44 +02:00
Piotr Esden-Tempski
8bdcef8d78
Examples now use the toolchain installed libopenstm32 in default setting. (Uncomment TOOLCHAIN_* lines to use local one)
2009-07-22 20:44:31 +02:00
Uwe Hermann
fd1e0290cd
Implement clock_setup() in fancyblink, STM32 should now run at 72 MHz.
2009-07-22 03:27:01 +02:00
Uwe Hermann
0f0ef60378
Add a 'fancyblink' example, currently mostly a copy of miniblink.
2009-07-22 03:08:00 +02:00
Uwe Hermann
14d342e50c
Show example of rcc_enable_peripheral_clock() in miniblink.c.
2009-07-22 02:57:28 +02:00
Uwe Hermann
91fa52da48
Turn miniblink in the smallest-possible example using the library.
2009-07-20 17:32:22 +02:00
Uwe Hermann
8a630baea8
Finish rename to 'miniblink'.
2009-07-20 17:23:25 +02:00
Uwe Hermann
05ccc0614a
Move the 'blink' example into a 'miniblink' subdirectory.
2009-07-20 16:52:05 +02:00
Uwe Hermann
db0e59da96
Rename example subdir to examples, we'll have more than one.
2009-07-20 15:35:12 +02:00