Uwe Hermann
eebbd508fc
TIM1 GPIO remapping + gpio_port_config_lock().
...
Thanks to Philip Court <philip@greenstage.co.nz> for the patch.
2010-12-17 06:04:28 +01:00
Uwe Hermann
a6342d4968
Cosmetic fixes.
2010-03-06 15:22:09 +01:00
Uwe Hermann
5455b0970e
Add missing GPIO definitions for I2C1, I2C2, SPI2.
...
Thanks Thomas Otto <tommi@viadmin.org> for the patch!
2010-02-27 23:21:25 +01:00
Piotr Esden-Tempski
efb510f526
Modified include model of some files.
...
This model allows using libopenstm32 in parallel with other stm32
firmware libraries. It is not yet complete change to all code but a
start. Only changed parts that I tested.
2010-02-22 10:01:55 +01:00
Piotr Esden-Tempski
ed0e46c31e
Fixed a cut&paste typo in gpio.h.
2010-01-25 17:32:35 +01:00
Piotr Esden-Tempski
14ec3bdf39
Added bit definitions of AFIO registers.
2010-01-25 17:32:35 +01:00
Uwe Hermann
cf69b51ee7
Add AFIO register definitions.
2009-07-25 18:53:50 +02:00
Uwe Hermann
9a4a47fdeb
Add default alternate function GPIO pin definitions.
2009-07-25 18:47:10 +02:00
Uwe Hermann
712261bb52
Add some more USART related bit definitions.
2009-07-25 03:09:36 +02:00
Uwe Hermann
c26541c4c5
Some random cosmetic changes and additional comments.
2009-07-25 02:35:46 +02:00
Piotr Esden-Tempski
446de38728
Changed all includes to use <foo.h> notation.
2009-07-20 17:54:33 +02:00
Uwe Hermann
3bef8767f9
Add gpio_get() API function.
2009-07-18 17:41:31 +02:00
Uwe Hermann
83f5c58eb9
Switch the license to GPL, version 3 or later.
2009-07-18 16:27:47 +02:00
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);
2009-07-18 16:20:32 +02:00
Uwe Hermann
3b6809413b
Remove one layer of indirection by killing unneeded #defines.
2009-07-18 02:51:22 +02:00
Uwe Hermann
f3d7eda380
Add convenience GPIOx #defines and MMIO GPIO register #defines.
2009-07-17 23:09:47 +02:00
Uwe Hermann
d6611f62dd
Add all base addresses for peripherals as per datasheet.
2009-07-17 23:05:01 +02:00
Uwe Hermann
c62ca6143d
Make gpio number argument 'unsigned int', there are no negative GPIOs.
2009-07-16 14:23:25 +02:00
Uwe Hermann
0fa4cbbdad
Add some more GPIO related #defines.
...
This includes GPIO port base addresses, MODE[1:0] values, and CNF[1:0]
values.
2009-07-16 14:22:46 +02:00
Uwe Hermann
1b2f6456bf
Add some initial gpio.h #defines.
2009-07-16 03:20:12 +02:00