Commit Graph

12 Commits

Author SHA1 Message Date
Jim Paris
1b4de5d8e7 Add gpio_set and gpio_reset
Use them like gpio_set(GPIO_xx) and gpio_reset(GPIO_xx).
These macros efficiently set the DATA_SET and DATA_RESET bits without
reading the registers first, as a direct GPIO->DATA_SET.GPIO_xx would do
2010-10-16 13:28:20 -04:00
Jim Paris
e6bd2a1318 Name the GPIO structure so we can set multiple bits at once 2010-10-16 13:28:20 -04:00
Jim Paris
ac2cac1e1d Register definitions: get rid of some macro magic that doesn't help much
Instead of e.g. GPIO.DATA.GPIO_08, you now use GPIO->DATA.GPIO_08.
2010-09-26 16:05:12 -04:00
Jim Paris
7fb074c060 Add structure-based GPIO register definitions 2010-09-24 16:29:43 -04:00
Mariano Alvira
6195931bd4 add attribution and license headers to source files. TODO item about
start.S and printf.c
2010-05-08 13:03:36 -04:00
Mariano Alvira
7b3a8b9f77 pulled in gpio_data_get from the quahogcon guys. 2010-05-04 12:55:29 -04:00
Mariano Alvira
63285015b0 remove some reg32 in gpio.h 2010-03-19 22:34:59 -04:00
Mariano Alvira
c624e4e475 these gpio routines should be volatile 2010-03-17 16:41:48 -04:00
Mariano Alvira
716f166dd3 new interface for dealing with GPIO banks 2010-03-16 22:01:34 -04:00
Mariano Alvira
0f9f67d002 add dir set and reset 2010-03-08 17:35:34 -05:00
Mariano Alvira
4b17c144d0 LEDs now indicate bit position (instead of (1 << pos)) which is more
consistent with how everything else works
2010-03-07 15:39:56 -05:00
Mariano Alvira
d5b20ddce5 renamed libmc1322x to lib 2010-03-02 09:51:58 -05:00