This is a part of the Kinetiszer project.
Diff: hardware.h
- Revision:
- 0:5a419ba2726d
diff -r 000000000000 -r 5a419ba2726d hardware.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hardware.h Tue Oct 28 12:19:22 2014 +0000 @@ -0,0 +1,25 @@ +#ifndef __HARDWARE_PORT_H__ +#define __HARDWARE_PORT_H__ + + +#define HIGH (1) +#define LOW (0) + + +void Init_Hardware(void); +void Hardware_Poll(void); +void Hardware_Let_Ctrl(byte shift, byte index, byte value); +byte Hardware_Get_Ctrl(byte shift, byte index); +byte Hardware_Get_Ctrl_Shift(void); +void Hardware_Let_Function(byte newfunc); +byte Hardware_Get_Function(void); +void Hardware_Let_Value(byte func, byte newval); +byte Hardware_Get_Value(byte func); +void Hard_Let_Shift(byte func, boolean newshift); +boolean Hard_Get_Shift(byte func); +void Hardware_LED_SetState(byte LEDnum, byte LEDstate); +void Hardware_LED_StartFlash(byte LEDnum, byte FlashTimes); +void Hardware_BicolorLED_SetState(uint8_t led, uint8_t green, uint8_t red); + + +#endif // __HARDWARE_PORT_H__