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
Uwe Hermann
1cabc38c3a
EXTI bugfix in exti_select_source().
...
AFIO_EXTICR[1 to 4] registers were not beeing set correctly. You have to
force a 0 on the bits that are 0 for the mutex to work.
Thanks Linus Casassa <linus@lin.cl> for the patch!
2011-01-07 17:07:25 +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
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
8e5acecc6e
More path and name changes.
2010-12-30 02:57:44 +01:00
Uwe Hermann
7c53b252a3
Add missing files.
2010-12-30 02:24:40 +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
17b2e87ba3
Factor out cm3/common.h and cm3/memorymap.h.
2010-12-30 00:53:52 +01:00
Uwe Hermann
b5727a6c73
USB: Cosmetics and coding-style fixes.
2010-12-29 18:00:32 +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
a6e6a08a3a
Make the build/clean targets a bit less verbose.
2010-12-29 15:44:12 +01:00
Uwe Hermann
1c6d7cf06a
Merge branch 'martinmm'.
2010-12-29 15:12:23 +01:00
Piotr Esden-Tempski
e5941fb075
Improved usart api implementation to be more readable.
2010-12-29 13:56:22 +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
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
d1e5a5069e
Fixed behavior of rcc_peripheral_clear_reset...
2010-12-23 00:18:23 +01:00
Uwe Hermann
eebbd508fc
TIM1 GPIO remapping + gpio_port_config_lock().
...
Thanks to Philip Court <philip@greenstage.co.nz> for the patch.
2010-12-17 06:04:28 +01:00
Uwe Hermann
9539f3bf06
Fix typo.
2010-12-17 05:50:00 +01:00
Uwe Hermann
e2d82ff44c
Build fixes for ethernet.c, and hook it up.
2010-12-17 05:50:00 +01:00
Uwe Hermann
af61aaef21
Minor ld script changes.
...
Add wildcards to the input section names.
This fixes the script for use with the "-ffunction-sections
-fdata-sections -Wl,--gc-sections" options when compiling/linking.
Also, discard the .eh_frame section. This section is emitted by GCC 4.4,
but not 4.5. Discarding it doesn't appear to break anything. I suspect this is
used for C++ exception implementation.
I found this to be a problem when building with GCC 4.4 (arm-elf),
because the USB DFU demo exceeded the 8k I allowed for it.
Thanks to Gareth McMullin <gareth@blacksphere.co.nz> for the patch.
2010-12-17 05:50:00 +01:00
Uwe Hermann
4ef35380e8
Register definitions for the STM32F107 Ethernet.
...
Thanks to Gareth McMullin <gareth@blacksphere.co.nz>.
2010-12-17 05:50:00 +01:00
Gareth McMullin
7f002110dc
Improved dispatching of user control callbacks.
...
Only cdc_acm example is updated.
2010-11-06 12:21:46 +13:00
Gareth McMullin
87960830f4
Fixed HALT condition handling and data toggle.
2010-11-04 16:49:03 +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
1621fde1f4
Add proper C runtime init, add reset handler.
...
The C runtime wasn't initialized correctly (there was garbage in the data
and bss sections). Add a reset_handler which initializes these sections
before calling the application's main() function.
The initial stack pointer is also defined in the linker script, allowing the
application to override with a linker command line option
"-Wl,--defsym,_stack=0x20005000".
Thanks to Gareth McMullin <gareth@blacksphere.co.nz>.
2010-10-19 02:00:28 +02:00
Uwe Hermann
68b7e255ad
Add timer handling functions.
...
Thanks to Edward Cheeseman <cheesemanedward@gmail.com>.
2010-10-18 00:36:39 +02:00
Uwe Hermann
0287fd9029
Add more support functions for flash handling.
...
Thanks to Mark Butler <mbutler@physics.otago.ac.nz>.
2010-10-18 00:20:59 +02:00
Uwe Hermann
6ba179b361
Various cosmetic and coding style fixes.
2010-06-29 23:01:44 +02:00
Uwe Hermann
47b31246ca
rcc: Cosmetics and coding style fixes.
2010-06-29 22:29:57 +02:00
Thomas Otto
388f940475
Initial EXTI support.
...
Thanks to Mark Butler <mbutler@physics.otago.ac.nz>.
2010-05-12 18:12:31 +02:00
Thomas Otto
898c118e1e
Fix of rtc_set_counter_val(). supplied by Jim <lordjames@y7mail.com>
2010-05-12 16:26:01 +02:00
Thomas Otto
b2bca1f1a4
Changed rtc.c to use the changed defines.
2010-05-11 14:36:56 +02:00
Thomas Otto
141a291e8d
Changed rcc.c to use the new definitions.
2010-05-11 14:26:46 +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
4f272b4ad4
Added rcc clock setup function for 16mhz crystal.
2010-05-02 20:20:04 +02:00
Thomas Otto
8dc36291d1
Fixed channel group setting with more then 6 items.
2010-05-02 15:56:48 +02:00
Thomas Otto
905b5112b6
Some improvements to systick.h+c.
2010-04-13 22:26:07 +02:00
Thomas Otto
0fed8c6cc5
Added spi_send() equivalent to usart_send().
2010-04-12 21:12:52 +02:00
Thomas Otto
47c51fc9cc
Some additions to spi.c+h.
2010-03-30 22:29:02 +02:00
Thomas Otto
97e27b2430
Make 72MHz the default in usart.c
2010-03-28 15:51:10 +02:00