aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2009-07-18Switch the license to GPL, version 3 or later.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-16Add missing .PHONY target.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-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 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.