aboutsummaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2009-07-20Add RCC_CSR bit definitions and a osc_t enum.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 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-18Add initial minimal rcc.h implementation (not complete).Uwe Hermann
2009-07-18Remove one layer of indirection by killing unneeded #defines.Uwe Hermann
2009-07-18Merge stdint.h contents into common.h so we don't conflict with libc.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 common.h, currently containing MMIO accessor functions.Uwe Hermann
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