aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-07-18Switch the license to GPL, version 3 or later.Uwe Hermann
2009-07-18Add examples for LED blinking code, both, manually and using the API.Uwe Hermann
2009-07-18Add initial GPIO API implementation.Uwe Hermann
This currently includes a number of basic functions. Example usage: gpio_set_mode(GPIOC, GPIO_MODE_OUTPUT_2_MHZ, GPIO_CNF_OUTPUT_PUSHPULL, GPIO12); gpio_set(GPIOB, GPIO4); gpio_clear(GPIOG, GPIO2 | GPIO9); gpio_toggle(GPIOA, GPIO7); reg16 = gpio_port_read(GPIOD); gpio_port_write(GPIOF, 0xc8fe);
2009-07-18Update example application README wrt flashing instructions.Uwe Hermann
2009-07-18Implement the simplest possible (working) blinking LED example application.Uwe Hermann
This is the first working example code which is tested on hardware. The LED on the Olimex STM-H103 eval board is happily blinking. We use a dummy "delay" function (basically a busy-waiting for-loop), which will only work if you use -O0 in CFLAGS (-O2, -O3, or -Os will not work as the compiler optimizes the loop away). We use some arbitrary value for stack size (2 KB) and use main() directly as the reset vector function. This will change later. Also, we do the GPIO and clock init as well as the GPIO toggling for the LED blinking fully "manually" for now, but there may be more higher-level functions for doing that at some later date.
2009-07-18Add initial minimal rcc.h implementation (not complete).Uwe Hermann
2009-07-18Silence OpenOCD per default, use V=1 for more verbose output.Uwe Hermann
2009-07-18Have *.o files depend on Makefile, in case we change gcc -O values there.Uwe Hermann
2009-07-18Don't use OpenOCD's "resume" command, only "reset" will work correctly.Uwe Hermann
Also, make the 'flash' target depend on 'images'.
2009-07-18Remove one layer of indirection by killing unneeded #defines.Uwe Hermann
2009-07-18Make 'flash' target a bit more generic and drop absolute paths.Uwe Hermann
2009-07-18Merge stdint.h contents into common.h so we don't conflict with libc.Uwe Hermann
2009-07-18Make OpenOCD location easily configurable by using a variable.Uwe Hermann
2009-07-17Add convenience GPIOx #defines and MMIO GPIO register #defines.Uwe Hermann
2009-07-17Add all base addresses for peripherals as per datasheet.Uwe Hermann
2009-07-17Add 'make flash' target using recent OpenOCD versions.Uwe Hermann
2009-07-17Fix incorrect location of the board files of recent OpenOCD versions.Uwe Hermann
2009-07-17Add common.h, currently containing MMIO accessor functions.Uwe Hermann
2009-07-17Add README for the example project.Uwe Hermann
2009-07-16Document 'make V=1' usage.Uwe Hermann
2009-07-16Rename INCLUDEDIR to INCDIR for brevity.Uwe Hermann
2009-07-16Add missing .PHONY target.Uwe Hermann
2009-07-16Create bin, hex, srec, and list files for the example project.Uwe Hermann
2009-07-16Add .gitignore file.Uwe Hermann
2009-07-16Use a Linux kernel style build output printing.Uwe Hermann
Example: $ make install BUILD lib CC gpio.o AR libopenstm32.a BUILD example CC blink.o LD blink INSTALL headers INSTALL lib $ make clean CLEAN blink.o CLEAN blink CLEAN gpio.o CLEAN libopenstm32.a
2009-07-16Add 'make V=1' support for the example blink code.Uwe Hermann
2009-07-16Make default build silent, use 'make V=1' for verbose build.Uwe Hermann
2009-07-16Add first example project (framework) using libopenstm32.Uwe Hermann
This is intended as a small blink example for the Olimex STM32-H103 board. It doesn't do anything useful (yet), but it builds fine. There's a sample Makefile and a preliminary ld script (which probably needs some more work).
2009-07-16Make gpio number argument 'unsigned int', there are no negative GPIOs.Uwe Hermann
2009-07-16Add some more GPIO related #defines.Uwe Hermann
This includes GPIO port base addresses, MODE[1:0] values, and CNF[1:0] values.
2009-07-16Add memorymap.h with some peripheral base addresses.Uwe Hermann
2009-07-16Add dummy gpio.c implementation and final Makefile.Uwe Hermann
The whole lib should now build and install fine. It's not yet tested on hardware, though.
2009-07-16Add some initial gpio.h #defines.Uwe Hermann
2009-07-16Add top-level include file intended for lib users.Uwe Hermann
2009-07-16Add a stdint.h include file for u16, u32, etc.Uwe Hermann
2009-07-16Add initial top-level Makefile.Uwe Hermann
2009-07-16Drop 's' from https, no need for encryption here.Uwe Hermann
2009-07-16Mention how PREFIX can be used to override the toolchain.Uwe Hermann
2009-07-16Add some more info to the README.Uwe Hermann
2009-07-15Add COPYING file.Uwe Hermann
2009-07-15Test.Uwe Hermann
2009-07-15Add README header.Uwe Hermann
2009-07-15Add initial README.Uwe Hermann