led-controller/src/main.h

22 lines
509 B
C
Raw Normal View History

/* ports */
#define LED PD6 /* status LED */
#define IR PB0 /* IR receiver */
#define FAN PC5 /* FAN output */
#define PWR_OK PB1 /* ATX power OK */
#define nPS_ON PB2 /* ATX power supply ON switch */
/* LEDs */
#define CH1_1 PC0
#define CH1_2 PC1
#define CH1_3 PC2
#define CH1_4 PC3
#define CH1_5 PC4
#define CH2_1 PD2
#define CH2_2 PD3
#define CH2_3 PD4
#define CH2_4 PD5
#define CH2_5 PD7
2013-10-12 18:19:39 +02:00
static void ioinit(void);
2013-10-14 20:45:08 +02:00
static void uart_action(char c);
static void ir_action(uint8_t address, uint8_t command);