Commit Graph

135 Commits

Author SHA1 Message Date
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 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
Piotr Esden-Tempski 6ca739296d Updated example README files. 2010-01-25 17:32:35 +01:00
Piotr Esden-Tempski bc46b3118e Added all handlers to the vector table.
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-25 17:32:33 +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
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
Uwe Hermann 92dc4c361e Add empty lib/nvic.c to make libopenstm32 compile. 2010-01-19 19:53:20 +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 d173306c31 Add some more generic info to the README. 2010-01-15 13:40:43 +01:00
Uwe Hermann f682aa84b0 Document that the library API is NOT yet stable! 2010-01-15 13:38:02 +01:00
Uwe Hermann 99249672d5 Document the usage of the example projects. 2010-01-15 13:33:58 +01:00
Uwe Hermann 8d1c464961 Add flash.o to list of objects to build. 2010-01-15 01:43:51 +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 312db1a301 Fix logic bugs in rcc_wait_for_osc_ready().
Thanks Thomas Otto <tommi@viadmin.org> for the patch!
2010-01-14 19:34:30 +01:00
Uwe Hermann 977f0ef6a0 Configure SPI as master in spi_init_master(). 2010-01-14 19:20:23 +01:00
Uwe Hermann e5fb750378 Modularize OpenOCD paths in the example Makefiles. 2009-12-31 00:17:38 +01:00
Uwe Hermann 98997691d3 Add first version of spi_enable()/spi_disable(). 2009-12-30 23:28:40 +01:00
Uwe Hermann a7a3770d51 Add initial SPI code.
For now, add the following basic SPI functions:

 - spi_init_master()
 - spi_write()
 - spi_read()

This is incomplete and untested, yet.

Also, add some more SPI bit definition macros and comments.
2009-12-30 23:09:14 +01:00
Uwe Hermann 821873acac Add initial version of an spi.h header file.
So far, it contains the SPI register definitions and some bit
definitions of control register 1 (CR1).
2009-12-29 17:38:40 +01:00
Uwe Hermann 88f35a4a7e ADC #defines, contributed by Edward Cheeseman <ed@landcrab.co.nz>. 2009-09-04 15:47:38 +02: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 cf69b51ee7 Add AFIO register definitions. 2009-07-25 18:53:50 +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 c6ec621b1a Initial implementation of USART API functions.
The usart_set_baudrate() function is currently hardcoded to certain
settings, that needs to be fixed later.
2009-07-25 03:24:08 +02:00
Uwe Hermann 712261bb52 Add some more USART related bit definitions. 2009-07-25 03:09:36 +02:00
Uwe Hermann c26541c4c5 Some random cosmetic changes and additional comments. 2009-07-25 02:35:46 +02:00
Uwe Hermann 5ba3aae7d7 Add simple USART convenience macros. 2009-07-25 02:01:55 +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 1f07553863 Fix comment. 2009-07-25 00:28:07 +02:00