Rev 130 | Blame | Compare with Previous | Last modification | View Log | RSS feed
/*
* hc595.h
*
* Created on: 16/07/2014
* Author: pfowler
*/
#ifndef HC595_H_
#define HC595_H_
void hc595_init(void);
void hc595_pulse(void);
void hc595_latch(void);
void hc595_write(uint8_t data);
/*
* Check that all our defines have been made
* These would usually go in config.h
*/
#ifndef HC595_PORT
#error "HC959 lib: Must define HC595_PORT"
#endif
#ifndef HC595_DDR
#error "HC959 lib: Must define HC595_DDR"
#endif
#ifndef HC595_DS_PIN
#error "HC959 lib: Must define HC595_DS_PIN"
#endif
#ifndef HC595_SHCP_PIN
#error "HC959 lib: Must define HC595_SHCP_PIN"
#endif
#ifndef HC595_STCP_PIN
#error "HC959 lib: Must define HC595_STCP_PIN"
#endif
#endif /* HC595_H_ */