Go to the source code of this file.
Defines | |
#define | KEY1 (1<<0) |
#define | KEY2 (1<<1) |
#define | KEY3 (1<<2) |
#define | KEY4 (1<<3) |
Functions | |
void | Thread1 (void *arg) |
void | Thread2 (void *arg) |
int | main (void) |
#define KEY1 (1<<0) |
Definition at line 59 of file ioexpander.c.
#define KEY2 (1<<1) |
Definition at line 60 of file ioexpander.c.
#define KEY3 (1<<2) |
Definition at line 61 of file ioexpander.c.
#define KEY4 (1<<3) |
Definition at line 62 of file ioexpander.c.
void Thread1 | ( | void * | arg | ) |
Definition at line 65 of file ioexpander.c.
References IOXP_PORT1, NutRegisterLed(), NutSetLed(), NutSleep(), NutThreadSetPriority(), and printf.
Referenced by main().
void Thread2 | ( | void * | arg | ) |
Definition at line 92 of file ioexpander.c.
References IOExpRawRead(), IOXP_PORT1, KEY1, KEY2, KEY3, KEY4, led3, NutRegisterLed(), NutSetLed(), NutSleep(), NutThreadSetPriority(), and printf.
Referenced by main().
int main | ( | void | ) |
Definition at line 142 of file ioexpander.c.
References _fileno(), _ioctl(), DEV_DEBUG, DEV_DEBUG_NAME, freopen(), IOExpInit(), IOXP_PORT1, led4, LED_BLINK, NutRegisterDevice(), NutRegisterLed(), NutSetLed(), NutSleep(), NutThreadCreate(), printf, stdout, Thread1(), Thread2(), TWI_SETSPEED, TwInit(), TwIOCtl(), and UART_SETSPEED.