Commit Graph

747 Commits

Author SHA1 Message Date
Thomas Otto 4f272b4ad4 Added rcc clock setup function for 16mhz crystal. 2010-05-02 20:20:04 +02:00
Thomas Otto 905b5112b6 Some improvements to systick.h+c. 2010-04-13 22:26:07 +02:00
Thomas Otto 37e71e3e5c Added spi_send() to the spi.h. 2010-04-12 21:22:02 +02:00
Thomas Otto e68f248d11 Fixed typo. 2010-04-02 22:23:11 +02:00
Thomas Otto 56dd9bc887 Completed spi.h. 2010-04-02 21:42:48 +02:00
Thomas Otto 47c51fc9cc Some additions to spi.c+h. 2010-03-30 22:29:02 +02:00
Thomas Otto 9d2e074b3d Cosmetic fixes. 2010-03-28 15:19:32 +02:00
Thomas Otto 9132e6b9f5 Corrected definitions in dma.h. 2010-03-26 23:13:52 +01:00
Thomas Otto 561ce37809 Changed address setting in dma.c+h. 2010-03-26 17:36:15 +01:00
Thomas Otto 2bada0dacd Merge branch 'master' of tommi@viadmin.org:/opt/git/libopenstm32 2010-03-26 10:17:00 +01:00
Thomas Otto bd725f59ae Small corrections/additions to adc.h. 2010-03-26 10:14:17 +01:00
Thomas Otto 3518301870 Integrated systick into build system. 2010-03-25 13:13:01 +01:00
Thomas Otto feb3f187fe Added systick.h definitions. 2010-03-25 13:11:59 +01:00
Thomas Otto d96b318795 Added some address setting functions to dma. 2010-03-24 22:51:43 +01:00
Thomas Otto a0e026d110 Added generic values for ADC_SMPR_SMP to adc.h. 2010-03-24 20:44:32 +01:00
Thomas Otto eb3f45dcdb Completed scb.h definitions. 2010-03-24 15:39:44 +01:00
Thomas Otto 1f8d94df35 Added irq number definitions. 2010-03-23 21:02:01 +01:00
Thomas Otto 80984d44c4 splitted nvic and scb 2010-03-22 22:08:07 +01:00
Thomas Otto 426d6a45fc added some SCB defs. Added some NVIC functions. 2010-03-22 22:01:44 +01:00
Thomas Otto e4788f67b6 added dma.h and basic functions 2010-03-22 21:52:49 +01:00
Thomas Otto 561c9a1d3e added basic adc funktions 2010-03-22 21:40:08 +01:00
Uwe Hermann a6342d4968 Cosmetic fixes. 2010-03-06 15:22:09 +01:00
Uwe Hermann f514162134 Add some more ADC support.
Also:

 - Fix a few typos (e.g. s/ADC1_BSAE/ADC1_BASE/).

 - adc.h: Use common SUBSYSTEMNAME_REGISTERNAME_FOO #define format.
2010-03-05 20:59:07 +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 742c595114 Add initial set of I2C functions.
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-03-01 21:47:14 +01:00
Uwe Hermann 5455b0970e Add missing GPIO definitions for I2C1, I2C2, SPI2.
Thanks Thomas Otto <tommi@viadmin.org> for the patch!
2010-02-27 23:21:25 +01:00
Uwe Hermann c441007867 Drop useless endif markers. 2010-02-24 00:34:18 +01:00
Uwe Hermann 7e1b849feb i2c: Add initial i2c.h header file and registers.
Thanks Thomas Otto <tommi@viadmin.org> for the patch!
2010-02-24 00:32:55 +01:00
Piotr Esden-Tempski efb510f526 Modified include model of some files.
This model allows using libopenstm32 in parallel with other stm32
firmware libraries. It is not yet complete change to all code but a
start. Only changed parts that I tested.
2010-02-22 10:01:55 +01:00
Piotr Esden-Tempski ed0e46c31e Fixed a cut&paste typo in gpio.h. 2010-01-25 17:32:35 +01:00
Piotr Esden-Tempski 14ec3bdf39 Added bit definitions of AFIO registers. 2010-01-25 17:32:35 +01:00
Uwe Hermann d167b6c9e9 Add RCC_AHBENR bit definitions.
Thanks Thomas Otto <tommi@viadmin.org> for the patch!
2010-01-22 01:57:05 +01:00
Uwe Hermann 0308b49b76 Fix typo in TIM3RST #define.
Thanks Thomas Otto <tommi@viadmin.org> for the patch!
2010-01-22 01:54:10 +01:00
Uwe Hermann 1f9479e673 Add initial (unfinished, untested) RTC support. 2010-01-22 01:48:02 +01:00
Uwe Hermann 3e29876d98 rcc: Add a few functions to set prescalers.
Thanks Thomas Otto <tommi@viadmin.org> for the patch!
2010-01-19 19:57:38 +01:00
Piotr Esden-Tempski a38fc2c3a2 Added basic NVIC register defs and functions. 2010-01-16 04:12:53 +01:00
Piotr Esden-Tempski 6fe7e25a8a Added usb descriptor definitions. 2010-01-15 17:07:19 +01:00
Piotr Esden-Tempski cde7d1ce4d Added usb peripheral register definitions. It uses some tool macros defined in tools.h 2010-01-15 17:07:19 +01:00
Piotr Esden-Tempski 0c6b661502 Adapted to the new header style. Added some defs. 2010-01-15 17:00:18 +01:00
Uwe Hermann 6c66a41f27 Use FLASH_MEM_INTERFACE_BASE (not FLASH_BASE).
The latter does not exist in the repo.
2010-01-15 01:43:44 +01:00
Uwe Hermann 8d196a2a1f Mention reserved memory map areas in code comments. 2010-01-15 01:41:09 +01:00
Uwe Hermann d7d851e579 Prefix all flash related stuff with FLASH_. 2010-01-15 01:21:40 +01:00
Uwe Hermann d192a67d4d Add reference to flash programming datasheet. 2010-01-15 01:13:06 +01:00
Uwe Hermann 4fdb7f08fd Add initial flash memory register support.
Thanks Thomas Otto <tommi@viadmin.org> for the patch!
2010-01-15 01:05:22 +01:00
Uwe Hermann 1b73ccdd7a Whitespace fixes. 2010-01-15 00:54:07 +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
Piotr Esden-Tempski afc9cc84de Typo fixes in timer. 2010-01-14 23:20:33 +01:00
Piotr Esden-Tempski 7fd62e6d0b Added timer related register and bit definitions. 2010-01-14 23:15:20 +01:00
Uwe Hermann 98997691d3 Add first version of spi_enable()/spi_disable(). 2009-12-30 23:28:40 +01:00