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