X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=examples%2Favr-kern%2Fhw%2Fhw_phase.h;fp=examples%2Favr-kern%2Fhw%2Fhw_phase.h;h=7649e7021bf89db94faaa0eddb3270b947bf1a57;hb=1c675e3194ab2c54098866018f4856c736922553;hp=0000000000000000000000000000000000000000;hpb=31347cddceafb4e9775d9f51b268091409adee72;p=bertos.git diff --git a/examples/avr-kern/hw/hw_phase.h b/examples/avr-kern/hw/hw_phase.h new file mode 100644 index 00000000..7649e702 --- /dev/null +++ b/examples/avr-kern/hw/hw_phase.h @@ -0,0 +1,80 @@ +/** + * \file + * + * + * \brief Phase control hardware-specific definitions + * + * \version $Id$ + * + * \author Francesco Sacchi + */ + +#ifndef HW_PHASE_H +#define HW_PHASE_H + +#include "hw/phase_map.h" + +#include + +#warning TODO:This is an example implementation, you must implement it! + +#define PHASE_HW_INIT do { /* Implement me! */ }while (0) + +INLINE void TRIAC_OFF(TriacDev i) +{ + /* Implement me! */ + + //Only for test remove when implement this function + (void)i; +} + + +INLINE void TRIAC_ON(TriacDev i) +{ + /* Implement me! */ + + //Only for test remove when implement this function + (void)i; +} + +INLINE void SET_TRIAC_DDR(TriacDev i) +{ + /* Implement me! */ + + //Only for test remove when implement this function + (void)i; +} + +void zerocross_isr(void); +#define DEFINE_ZEROCROSS_ISR() void zerocross_isr(void) + + +#endif /* HW_PHASE_H */