aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2010-12-17Minor ld script changes.Uwe Hermann
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-17Register definitions for the STM32F107 Ethernet.Uwe Hermann
Thanks to Gareth McMullin <gareth@blacksphere.co.nz>.
2010-11-06Improved dispatching of user control callbacks.Gareth McMullin
Only cdc_acm example is updated.
2010-11-04Fixed HALT condition handling and data toggle.Gareth McMullin
2010-11-04add standard requestMartin Mueller
2010-11-02Initial USB device stack for STM32.Uwe Hermann
Patch provided by Gareth McMullin <gareth@blacksphere.co.nz>, thanks a lot!
2010-10-19Add proper C runtime init, add reset handler.Uwe Hermann
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-18Add timer handling functions.Uwe Hermann
Thanks to Edward Cheeseman <cheesemanedward@gmail.com>.
2010-10-18Add more support functions for flash handling.Uwe Hermann
Thanks to Mark Butler <mbutler@physics.otago.ac.nz>.
2010-06-29Various cosmetic and coding style fixes.Uwe Hermann
2010-06-29rcc: Cosmetics and coding style fixes.Uwe Hermann
2010-05-12Initial EXTI support.Thomas Otto
Thanks to Mark Butler <mbutler@physics.otago.ac.nz>.
2010-05-12Fix of rtc_set_counter_val(). supplied by Jim <lordjames@y7mail.com>Thomas Otto
2010-05-11Changed rtc.c to use the changed defines.Thomas Otto
2010-05-11Changed rcc.c to use the new definitions.Thomas Otto
2010-05-10Add more RTC functions and an RTC example.Uwe Hermann
Thanks Lord James <lordjames@y7mail.com> for the patch!
2010-05-02Added rcc clock setup function for 16mhz crystal.Thomas Otto
2010-05-02Fixed channel group setting with more then 6 items.Thomas Otto
2010-04-13Some improvements to systick.h+c.Thomas Otto
2010-04-12Added spi_send() equivalent to usart_send().Thomas Otto
2010-03-30Some additions to spi.c+h.Thomas Otto
2010-03-28Make 72MHz the default in usart.cThomas Otto
2010-03-28Cosmetic fixes.Thomas Otto
2010-03-26Changed address setting in dma.c+h.Thomas Otto
2010-03-26Fixed settings of groups in adc.c.Thomas Otto
2010-03-25Integrated systick into build system.Thomas Otto
2010-03-25Added systick.h definitions.Thomas Otto
2010-03-24Added some address setting functions to dma.Thomas Otto
2010-03-23Small correction in isr table.Thomas Otto
2010-03-22added some SCB defs. Added some NVIC functions.Thomas Otto
2010-03-22added dma.h and basic functionsThomas Otto
2010-03-22added basic adc funktionsThomas Otto
2010-03-06Cosmetic fixes.Uwe Hermann
2010-03-06Fix bug: PLLMUL_PLL_CLK_MUL9 is correct.Uwe Hermann
2010-03-06Cosmetic and coding style changes.Uwe Hermann
2010-03-05Add some more ADC support.Uwe Hermann
Also: - Fix a few typos (e.g. s/ADC1_BSAE/ADC1_BASE/). - adc.h: Use common SUBSYSTEMNAME_REGISTERNAME_FOO #define format.
2010-03-05gpio: Fix some issues with gpio_set_mode().Uwe Hermann
This patch, a slightly modified version of a patch from Thomas Otto, should fix the following two issues: - It generally sets the submited config to the mentioned GPIO pins but kills configs for other pins on the same GPIO port. So if we want to set PB6 and PB7 to push-pull and I2C2 SDA and SCL (PB10 and PB11) to open drain it's simply impossible, because the second config try kills the first. - The floating-bit thing isn't working correctly. If we enable a config for PB6 for instance, the same config will also apply to all following pins of that port (i.e. PB7-PB15). That's because the shifting isn't only done if a pin isn't to configure, if you are hitting a matching bit the shiftig is missing. I think shifting isn't nessessary for a separate variable. We have the counting index from the for statement. Both issues should now be fixed.
2010-03-04Use direct #includes instead of libopenstm32.h.Uwe Hermann
2010-03-04Trivial quickfix for some compiler warnings.Uwe Hermann
2010-03-04Added standard clock setup routines.Piotr Esden-Tempski
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-01Add initial set of I2C functions.Uwe Hermann
Thomas Otto has tested the code by successfully talking to a temperature sensor from ST in master tranciever mode. Thanks Thomas Otto <tommi@viadmin.org> for the patch!
2010-01-25Added all handlers to the vector table.Piotr Esden-Tempski
All handlers are weak symbols pointing to a null handler (doing nothing) or blocking handler (running an infinite loop). This means you can define a function with the name in the list and the linker will use your definition instead of the default one. This makes it easy to implement your own handlers without touching the library code.
2010-01-25Moved vector_table to the library.Piotr Esden-Tempski
2010-01-22Add initial (unfinished, untested) RTC support.Uwe Hermann
2010-01-19rcc: Add a few functions to set prescalers.Uwe Hermann
Thanks Thomas Otto <tommi@viadmin.org> for the patch!
2010-01-19Add empty lib/nvic.c to make libopenstm32 compile.Uwe Hermann
2010-01-16Added basic NVIC register defs and functions.Piotr Esden-Tempski
2010-01-15Add flash.o to list of objects to build.Uwe Hermann
2010-01-15Prefix all flash related stuff with FLASH_.Uwe Hermann
2010-01-15Add initial flash memory register support.Uwe Hermann
Thanks Thomas Otto <tommi@viadmin.org> for the patch!