29 lines
632 B
C
29 lines
632 B
C
|
|
#ifndef LED1642GW_CONFIG_H_
|
|
#define LED1642GW_CONFIG_H_
|
|
|
|
#define NUM_LED1642GW_ICs (3)
|
|
|
|
#define DDR_CLK (DDRC)
|
|
#define PORT_CLK (PORTC)
|
|
#define PIN_CLK (3)
|
|
#define SET_CLK_H() ((PORT_CLK) |= (1<<(PIN_CLK)))
|
|
#define SET_CLK_L() ((PORT_CLK) &= ~(1<<(PIN_CLK)))
|
|
|
|
#define DDR_SDI (DDRC)
|
|
#define PORT_SDI (PORTC)
|
|
#define PIN_SDI (4)
|
|
#define SET_SDI_H() ((PORT_SDI) |= (1<<(PIN_SDI)))
|
|
#define SET_SDI_L() ((PORT_SDI) &= ~(1<<(PIN_SDI)))
|
|
|
|
#define DDR_LE (DDRC)
|
|
#define PORT_LE (PORTC)
|
|
#define PIN_LE (2)
|
|
#define SET_LE_H() ((PORT_LE) |= (1<<(PIN_LE)))
|
|
#define SET_LE_L() ((PORT_LE) &= ~(1<<(PIN_LE)))
|
|
|
|
|
|
|
|
#endif // LED1642GW_CONFIG_H_
|
|
|