X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=examples%2Fbenchmark%2Fkernel-core_avr%2Fhw%2Fhw_phase.h;fp=examples%2Fbenchmark%2Fkernel-core_avr%2Fhw%2Fhw_phase.h;h=7649e7021bf89db94faaa0eddb3270b947bf1a57;hb=a86a8b231ae610974f053b1d2bd9172582f60a25;hp=0000000000000000000000000000000000000000;hpb=1d10dbcdf05ceaf77f1f6a394e6ee63050d6c89a;p=bertos.git diff --git a/examples/benchmark/kernel-core_avr/hw/hw_phase.h b/examples/benchmark/kernel-core_avr/hw/hw_phase.h new file mode 100644 index 00000000..7649e702 --- /dev/null +++ b/examples/benchmark/kernel-core_avr/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 */