Uwe Hermann
5df3d0a23d
Add RCC_AHBRSTR and RCC_CFGR2 bit definitions.
16 years ago
Uwe Hermann
6ec84bf10e
Reorder RCC bits, add missing bits for STM32 connectivity line.
16 years ago
Uwe Hermann
839748ad3d
Add RCC_APB1RSTR bit definitions.
16 years ago
Uwe Hermann
6f0070991c
Add RCC_APB2RSTR bit definitions.
16 years ago
Piotr Esden-Tempski
446de38728
Changed all includes to use <foo.h> notation.
16 years ago
Uwe Hermann
07b6ca3a90
Add RCC_CSR bit definitions and a osc_t enum.
16 years ago
Uwe Hermann
3eb5397d8d
Add RCC_BDCR bit definitions.
16 years ago
Uwe Hermann
df399e248b
Add RCC_APB1ENR bit definitions.
16 years ago
Uwe Hermann
af9302d2b0
Merge some more RCC related #defines contributed by Federico Ruiz-Ugalde.
Addition of remaining (mostly "connectivity line" STMs related) #defines
was done by me.
16 years ago
Uwe Hermann
b888530345
Whitespace fixes.
16 years ago
Uwe Hermann
2c1fa8bd67
Partial merge of RCC support work contributed by Federico Ruiz-Ugalde.
For now, this adds a bunch of #defines, double-checked against the
datasheet by me (added a few missing values for "connectivity line" STM32s).
16 years ago
Uwe Hermann
3bef8767f9
Add gpio_get() API function.
16 years ago
Uwe Hermann
83f5c58eb9
Switch the license to GPL, version 3 or later.
16 years ago
Uwe Hermann
3262983d27
Add initial GPIO API implementation.
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);
16 years ago
Uwe Hermann
355701525e
Add initial minimal rcc.h implementation (not complete).
16 years ago
Uwe Hermann
3b6809413b
Remove one layer of indirection by killing unneeded #defines.
16 years ago
Uwe Hermann
015b046c1e
Merge stdint.h contents into common.h so we don't conflict with libc.
16 years ago
Uwe Hermann
f3d7eda380
Add convenience GPIOx #defines and MMIO GPIO register #defines.
16 years ago
Uwe Hermann
d6611f62dd
Add all base addresses for peripherals as per datasheet.
16 years ago
Uwe Hermann
f3ac624f22
Add common.h, currently containing MMIO accessor functions.
16 years ago
Uwe Hermann
c62ca6143d
Make gpio number argument 'unsigned int', there are no negative GPIOs.
16 years ago
Uwe Hermann
0fa4cbbdad
Add some more GPIO related #defines.
This includes GPIO port base addresses, MODE[1:0] values, and CNF[1:0]
values.
16 years ago
Uwe Hermann
e7567c835c
Add memorymap.h with some peripheral base addresses.
16 years ago
Uwe Hermann
0a8135395a
Add dummy gpio.c implementation and final Makefile.
The whole lib should now build and install fine. It's not yet tested
on hardware, though.
16 years ago
Uwe Hermann
1b2f6456bf
Add some initial gpio.h #defines.
16 years ago
Uwe Hermann
75bb51fadf
Add top-level include file intended for lib users.
16 years ago
Uwe Hermann
ae6f321816
Add a stdint.h include file for u16, u32, etc.
16 years ago