Commit Graph

  • 3a4f36d80f Moved all examples to a board specific folder. Piotr Esden-Tempski 2010-01-22 12:04:40 +01:00
  • d167b6c9e9 Add RCC_AHBENR bit definitions. Uwe Hermann 2010-01-22 01:57:05 +01:00
  • 0308b49b76 Fix typo in TIM3RST #define. Uwe Hermann 2010-01-22 01:54:10 +01:00
  • 1f9479e673 Add initial (unfinished, untested) RTC support. Uwe Hermann 2010-01-22 01:48:02 +01:00
  • 3e29876d98 rcc: Add a few functions to set prescalers. Uwe Hermann 2010-01-19 19:57:38 +01:00
  • 92dc4c361e Add empty lib/nvic.c to make libopenstm32 compile. Uwe Hermann 2010-01-19 19:53:20 +01:00
  • a38fc2c3a2 Added basic NVIC register defs and functions. Piotr Esden-Tempski 2010-01-16 02:58:19 +01:00
  • 6fe7e25a8a Added usb descriptor definitions. Piotr Esden-Tempski 2010-01-08 16:51:03 +01:00
  • cde7d1ce4d Added usb peripheral register definitions. It uses some tool macros defined in tools.h Piotr Esden-Tempski 2010-01-08 16:48:25 +01:00
  • 0c6b661502 Adapted to the new header style. Added some defs. Piotr Esden-Tempski 2010-01-15 03:41:16 +01:00
  • d173306c31 Add some more generic info to the README. Uwe Hermann 2010-01-15 13:40:43 +01:00
  • f682aa84b0 Document that the library API is NOT yet stable! Uwe Hermann 2010-01-15 13:38:02 +01:00
  • 99249672d5 Document the usage of the example projects. Uwe Hermann 2010-01-15 13:33:58 +01:00
  • 8d1c464961 Add flash.o to list of objects to build. Uwe Hermann 2010-01-15 01:43:51 +01:00
  • 6c66a41f27 Use FLASH_MEM_INTERFACE_BASE (not FLASH_BASE). Uwe Hermann 2010-01-15 01:43:44 +01:00
  • 8d196a2a1f Mention reserved memory map areas in code comments. Uwe Hermann 2010-01-15 01:41:09 +01:00
  • d7d851e579 Prefix all flash related stuff with FLASH_. Uwe Hermann 2010-01-15 01:21:40 +01:00
  • d192a67d4d Add reference to flash programming datasheet. Uwe Hermann 2010-01-15 01:13:06 +01:00
  • 4fdb7f08fd Add initial flash memory register support. Uwe Hermann 2010-01-15 01:05:22 +01:00
  • 1b73ccdd7a Whitespace fixes. Uwe Hermann 2010-01-15 00:54:07 +01:00
  • 667f32bd45 Added USART_ prefix to bit definitions. Piotr Esden-Tempski 2010-01-15 00:03:29 +01:00
  • afc9cc84de Typo fixes in timer. Piotr Esden-Tempski 2010-01-14 23:20:33 +01:00
  • 7fd62e6d0b Added timer related register and bit definitions. Piotr Esden-Tempski 2010-01-14 23:15:20 +01:00
  • 312db1a301 Fix logic bugs in rcc_wait_for_osc_ready(). Uwe Hermann 2010-01-14 19:34:30 +01:00
  • 977f0ef6a0 Configure SPI as master in spi_init_master(). Uwe Hermann 2010-01-14 19:20:23 +01:00
  • e5fb750378 Modularize OpenOCD paths in the example Makefiles. Uwe Hermann 2009-12-31 00:17:38 +01:00
  • 98997691d3 Add first version of spi_enable()/spi_disable(). Uwe Hermann 2009-12-30 23:28:40 +01:00
  • a7a3770d51 Add initial SPI code. Uwe Hermann 2009-12-30 23:09:14 +01:00
  • 821873acac Add initial version of an spi.h header file. Uwe Hermann 2009-12-29 17:38:40 +01:00
  • 88f35a4a7e ADC #defines, contributed by Edward Cheeseman <ed@landcrab.co.nz>. Uwe Hermann 2009-09-04 15:47:38 +02:00
  • 25a003b076 Add rcc_peripheral_{reset,clear_reset} functions. Uwe Hermann 2009-08-31 14:47:07 +02:00
  • cf69b51ee7 Add AFIO register definitions. Uwe Hermann 2009-07-25 18:53:50 +02:00
  • 9a4a47fdeb Add default alternate function GPIO pin definitions. Uwe Hermann 2009-07-25 18:47:10 +02:00
  • d20c3454fa Add a simple USART example project which sends some bytes. Uwe Hermann 2009-07-25 03:27:48 +02:00
  • c6ec621b1a Initial implementation of USART API functions. Uwe Hermann 2009-07-25 03:24:08 +02:00
  • 712261bb52 Add some more USART related bit definitions. Uwe Hermann 2009-07-25 03:09:36 +02:00
  • c26541c4c5 Some random cosmetic changes and additional comments. Uwe Hermann 2009-07-25 02:35:46 +02:00
  • 5ba3aae7d7 Add simple USART convenience macros. Uwe Hermann 2009-07-25 02:01:55 +02:00
  • bb7ce24f42 Fix docs: OpenOCD 'resume' command doesn't work properly, use 'reset'. Uwe Hermann 2009-07-25 01:59:25 +02:00
  • 734a87d4c5 Factor out some code into gpio_setup(). Uwe Hermann 2009-07-25 01:48:50 +02:00
  • 1f07553863 Fix comment. Uwe Hermann 2009-07-25 00:28:07 +02:00
  • cfd87f6b9d Add mini ld scripts in the example which include the global one. Uwe Hermann 2009-07-25 00:05:06 +02:00
  • 3f12e37531 The -L linker option should come before any ldscript file. Uwe Hermann 2009-07-25 00:01:21 +02:00
  • 428e328b7e Install the ld script upon 'make install'. Uwe Hermann 2009-07-24 23:30:36 +02:00
  • 50ba77bea9 Factor out ld scripts into one common script in the lib. Uwe Hermann 2009-07-24 23:19:44 +02:00
  • 732760ccd0 Add more comments, fix copy-paste error in descriptions. Uwe Hermann 2009-07-24 02:40:03 +02:00
  • 2a571de8f8 Add RCC_CR3 values and some more comments. Uwe Hermann 2009-07-24 02:32:59 +02:00
  • ecd6d52463 Add RCC_CR2 bit definitions. Uwe Hermann 2009-07-24 02:19:06 +02:00
  • 944456fde1 Fix compile by using the correct variable name. Uwe Hermann 2009-07-24 00:28:23 +02:00
  • ab8cec181c Add missing #include <stdint.h>. Uwe Hermann 2009-07-24 00:28:01 +02:00
  • 56ffeed8af Make u8/u16/etc. simple aliases. Uwe Hermann 2009-07-23 02:21:30 +02:00
  • 86db715332 Simplify example Makefiles by using only one TOOLCHAIN_DIR variable. Uwe Hermann 2009-07-24 14:42:44 +02:00
  • 8bdcef8d78 Examples now use the toolchain installed libopenstm32 in default setting. (Uncomment TOOLCHAIN_* lines to use local one) Piotr Esden-Tempski 2009-07-22 20:44:31 +02:00
  • b6a4976495 Add register #defines for all available USARTs/UARTs. Uwe Hermann 2009-07-22 16:48:55 +02:00
  • 6db6d5b49c Add initial framework for USART support. So far only some #defines. Uwe Hermann 2009-07-22 14:02:21 +02:00
  • 574f77f6df Add -Wstrict-prototypes to CFLAGS for more strict checking. Uwe Hermann 2009-07-22 03:28:58 +02:00
  • fd1e0290cd Implement clock_setup() in fancyblink, STM32 should now run at 72 MHz. Uwe Hermann 2009-07-22 03:27:01 +02:00
  • 9fd3064cb2 Add more RCC related API functions and their prototypes. Uwe Hermann 2009-07-22 03:25:14 +02:00
  • 0f0ef60378 Add a 'fancyblink' example, currently mostly a copy of miniblink. Uwe Hermann 2009-07-22 03:08:00 +02:00
  • 920ea7dbdb Fix typo, s/example/examples/ after an earlier rename. Uwe Hermann 2009-07-22 03:05:27 +02:00
  • 14d342e50c Show example of rcc_enable_peripheral_clock() in miniblink.c. Uwe Hermann 2009-07-22 02:57:28 +02:00
  • a5a9648144 Add rcc_enable_peripheral_clock() et al, and respective prototypes. Uwe Hermann 2009-07-22 02:56:04 +02:00
  • 97440d8406 Turn rcc_osc_ready() into rcc_wait_for_osc_ready(), more useful. Uwe Hermann 2009-07-22 02:38:31 +02:00
  • 5df3d0a23d Add RCC_AHBRSTR and RCC_CFGR2 bit definitions. Uwe Hermann 2009-07-22 01:16:34 +02:00
  • 6ec84bf10e Reorder RCC bits, add missing bits for STM32 connectivity line. Uwe Hermann 2009-07-22 00:58:54 +02:00
  • 839748ad3d Add RCC_APB1RSTR bit definitions. Uwe Hermann 2009-07-21 20:36:44 +02:00
  • 6f0070991c Add RCC_APB2RSTR bit definitions. Uwe Hermann 2009-07-21 20:25:00 +02:00
  • 446de38728 Changed all includes to use <foo.h> notation. Piotr Esden-Tempski 2009-07-20 17:54:33 +02:00
  • 8a33f6277e Update .gitignore to match recent file/dir renames. Uwe Hermann 2009-07-20 17:33:52 +02:00
  • 91fa52da48 Turn miniblink in the smallest-possible example using the library. Uwe Hermann 2009-07-20 17:32:22 +02:00
  • 8a630baea8 Finish rename to 'miniblink'. Uwe Hermann 2009-07-20 17:23:25 +02:00
  • 05ccc0614a Move the 'blink' example into a 'miniblink' subdirectory. Uwe Hermann 2009-07-20 16:52:05 +02:00
  • db0e59da96 Rename example subdir to examples, we'll have more than one. Uwe Hermann 2009-07-20 15:35:12 +02:00
  • 4f43d8c622 Fix some compiler warnings. Uwe Hermann 2009-07-20 15:32:28 +02:00
  • 50b1b50676 Add slightly modified rcc.c file, contributed by Federico Ruiz-Ugalde. Uwe Hermann 2009-07-20 15:29:43 +02:00
  • 07b6ca3a90 Add RCC_CSR bit definitions and a osc_t enum. Uwe Hermann 2009-07-20 15:28:41 +02:00
  • 5cdbb466fa Make example code build again (s/RCC_IOPCEN/IOPCEN). Uwe Hermann 2009-07-20 15:16:14 +02:00
  • 3eb5397d8d Add RCC_BDCR bit definitions. Uwe Hermann 2009-07-20 15:15:22 +02:00
  • df399e248b Add RCC_APB1ENR bit definitions. Uwe Hermann 2009-07-20 15:15:02 +02:00
  • af9302d2b0 Merge some more RCC related #defines contributed by Federico Ruiz-Ugalde. Uwe Hermann 2009-07-19 01:34:27 +02:00
  • b888530345 Whitespace fixes. Uwe Hermann 2009-07-19 01:12:45 +02:00
  • 2c1fa8bd67 Partial merge of RCC support work contributed by Federico Ruiz-Ugalde. Uwe Hermann 2009-07-18 22:27:17 +02:00
  • 3bef8767f9 Add gpio_get() API function. Uwe Hermann 2009-07-18 17:41:31 +02:00
  • 83f5c58eb9 Switch the license to GPL, version 3 or later. Uwe Hermann 2009-07-18 16:27:47 +02:00
  • 74db299094 Add examples for LED blinking code, both, manually and using the API. Uwe Hermann 2009-07-18 16:22:45 +02:00
  • 3262983d27 Add initial GPIO API implementation. Uwe Hermann 2009-07-18 16:20:32 +02:00
  • d43224acfb Update example application README wrt flashing instructions. Uwe Hermann 2009-07-18 06:18:43 +02:00
  • 915d5bff90 Implement the simplest possible (working) blinking LED example application. Uwe Hermann 2009-07-18 06:09:08 +02:00
  • 355701525e Add initial minimal rcc.h implementation (not complete). Uwe Hermann 2009-07-18 05:34:38 +02:00
  • 526cb01aaa Silence OpenOCD per default, use V=1 for more verbose output. Uwe Hermann 2009-07-18 05:23:56 +02:00
  • 8d2190a86a Have *.o files depend on Makefile, in case we change gcc -O values there. Uwe Hermann 2009-07-18 05:17:49 +02:00
  • 10890b3f15 Don't use OpenOCD's "resume" command, only "reset" will work correctly. Uwe Hermann 2009-07-18 05:00:48 +02:00
  • 3b6809413b Remove one layer of indirection by killing unneeded #defines. Uwe Hermann 2009-07-18 02:51:22 +02:00
  • d7ec6a2983 Make 'flash' target a bit more generic and drop absolute paths. Uwe Hermann 2009-07-18 02:25:38 +02:00
  • 015b046c1e Merge stdint.h contents into common.h so we don't conflict with libc. Uwe Hermann 2009-07-18 01:39:30 +02:00
  • cf7d4df189 Make OpenOCD location easily configurable by using a variable. Uwe Hermann 2009-07-18 01:31:08 +02:00
  • f3d7eda380 Add convenience GPIOx #defines and MMIO GPIO register #defines. Uwe Hermann 2009-07-17 23:09:47 +02:00
  • d6611f62dd Add all base addresses for peripherals as per datasheet. Uwe Hermann 2009-07-17 23:05:01 +02:00
  • e04cec3b5d Add 'make flash' target using recent OpenOCD versions. Uwe Hermann 2009-07-17 23:03:42 +02:00
  • 9385e69344 Fix incorrect location of the board files of recent OpenOCD versions. Uwe Hermann 2009-07-17 19:19:08 +02:00