27 lines
824 B
C
27 lines
824 B
C
|
#ifndef TOOLS_H
|
||
|
#define TOOLS_H
|
||
|
|
||
|
void init_zone7(void);
|
||
|
|
||
|
void setup_leds_line(void);
|
||
|
|
||
|
void pause_us(unsigned long t);
|
||
|
|
||
|
#ifndef TUBER
|
||
|
#define led1_toggle() GpioDataRegs.GPBTOGGLE.bit.GPIO32=1
|
||
|
#define led2_toggle() GpioDataRegs.GPBTOGGLE.bit.GPIO48=1
|
||
|
#define led1_off() GpioDataRegs.GPBSET.bit.GPIO32=1
|
||
|
#define led2_off() GpioDataRegs.GPBSET.bit.GPIO48=1
|
||
|
#define led1_on() GpioDataRegs.GPBCLEAR.bit.GPIO32=1
|
||
|
#define led2_on() GpioDataRegs.GPBCLEAR.bit.GPIO48=1
|
||
|
#else
|
||
|
#define led1_toggle() GpioDataRegs.GPBTOGGLE.bit.GPIO32=1
|
||
|
#define led2_toggle() GpioDataRegs.GPBTOGGLE.bit.GPIO32=1
|
||
|
#define led1_off() GpioDataRegs.GPBSET.bit.GPIO32=1
|
||
|
#define led2_off() GpioDataRegs.GPBSET.bit.GPIO32=1
|
||
|
#define led1_on() GpioDataRegs.GPBCLEAR.bit.GPIO32=1
|
||
|
#define led2_on() GpioDataRegs.GPBCLEAR.bit.GPIO32=1
|
||
|
#endif
|
||
|
|
||
|
#endif //TOOLS_H
|