aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-07-24Add missing #include <stdint.h>.Uwe Hermann
2009-07-24Make u8/u16/etc. simple aliases.Uwe Hermann
2009-07-24Simplify example Makefiles by using only one TOOLCHAIN_DIR variable.Uwe Hermann
2009-07-22Examples now use the toolchain installed libopenstm32 in default setting. ↵Piotr Esden-Tempski
(Uncomment TOOLCHAIN_* lines to use local one)
2009-07-22Add register #defines for all available USARTs/UARTs.Uwe Hermann
2009-07-22Add initial framework for USART support. So far only some #defines.Uwe Hermann
2009-07-22Add -Wstrict-prototypes to CFLAGS for more strict checking.Uwe Hermann
2009-07-22Implement clock_setup() in fancyblink, STM32 should now run at 72 MHz.Uwe Hermann
2009-07-22Add more RCC related API functions and their prototypes.Uwe Hermann
This includes: - rcc_set_sysclk_source() - rcc_set_pll_multiplication_factor() - rcc_set_pll_source() - rcc_set_pllxtpre()
2009-07-22Add a 'fancyblink' example, currently mostly a copy of miniblink.Uwe Hermann
2009-07-22Fix typo, s/example/examples/ after an earlier rename.Uwe Hermann
2009-07-22Show example of rcc_enable_peripheral_clock() in miniblink.c.Uwe Hermann
2009-07-22Add rcc_enable_peripheral_clock() et al, and respective prototypes.Uwe Hermann
2009-07-22Turn rcc_osc_ready() into rcc_wait_for_osc_ready(), more useful.Uwe Hermann
2009-07-22Add RCC_AHBRSTR and RCC_CFGR2 bit definitions.Uwe Hermann
2009-07-22Reorder RCC bits, add missing bits for STM32 connectivity line.Uwe Hermann
2009-07-21Add RCC_APB1RSTR bit definitions.Uwe Hermann
2009-07-21Add RCC_APB2RSTR bit definitions.Uwe Hermann
2009-07-20Changed all includes to use <foo.h> notation.Piotr Esden-Tempski
2009-07-20Update .gitignore to match recent file/dir renames.Uwe Hermann
2009-07-20Turn miniblink in the smallest-possible example using the library.Uwe Hermann
2009-07-20Finish rename to 'miniblink'.Uwe Hermann
2009-07-20Move the 'blink' example into a 'miniblink' subdirectory.Uwe Hermann
2009-07-20Rename example subdir to examples, we'll have more than one.Uwe Hermann
2009-07-20Fix some compiler warnings.Uwe Hermann
2009-07-20Add slightly modified rcc.c file, contributed by Federico Ruiz-Ugalde.Uwe Hermann
2009-07-20Add RCC_CSR bit definitions and a osc_t enum.Uwe Hermann
2009-07-20Make example code build again (s/RCC_IOPCEN/IOPCEN).Uwe Hermann
2009-07-20Add RCC_BDCR bit definitions.Uwe Hermann
2009-07-20Add RCC_APB1ENR bit definitions.Uwe Hermann
2009-07-19Merge some more RCC related #defines contributed by Federico Ruiz-Ugalde.Uwe Hermann
Addition of remaining (mostly "connectivity line" STMs related) #defines was done by me.
2009-07-19Whitespace fixes.Uwe Hermann
2009-07-18Partial merge of RCC support work contributed by Federico Ruiz-Ugalde.Uwe Hermann
For now, this adds a bunch of #defines, double-checked against the datasheet by me (added a few missing values for "connectivity line" STM32s).
2009-07-18Add gpio_get() API function.Uwe Hermann
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