X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=examples%2Fbenchmark%2Fkernel-core_avr%2Fhw%2Fhw_tas5706a.h;fp=examples%2Fbenchmark%2Fkernel-core_avr%2Fhw%2Fhw_tas5706a.h;h=d1e1a2e6a70517ddfcd5fb00defc7c66b011ea40;hb=a86a8b231ae610974f053b1d2bd9172582f60a25;hp=0000000000000000000000000000000000000000;hpb=1d10dbcdf05ceaf77f1f6a394e6ee63050d6c89a;p=bertos.git diff --git a/examples/benchmark/kernel-core_avr/hw/hw_tas5706a.h b/examples/benchmark/kernel-core_avr/hw/hw_tas5706a.h new file mode 100644 index 00000000..d1e1a2e6 --- /dev/null +++ b/examples/benchmark/kernel-core_avr/hw/hw_tas5706a.h @@ -0,0 +1,65 @@ +/** + * \file + * + * + * \brief HW pin handling. + * + * \version $Id$ + * + * \author Francesco Sacchi + */ + +#ifndef HW_TAS5706A_H +#define HW_TAS5706A_H + +#include + +#warning FIXME: This is an example implementation, you must implement it + +#define TAS5706A_SETPOWERDOWN(val) do { (void) val; /* implement me */ } while (0) +#define TAS5706A_SETRESET(val) do { (void) val; /* implement me */ } while (0) +#define TAS5706A_SETMUTE(val) do { (void) val; /* implement me */ } while (0) + +#define TAS5706A_PIN_INIT() \ + do { \ + TAS5706A_SETPOWERDOWN(true); \ + TAS5706A_SETRESET(true); \ + TAS5706A_SETMUTE(true); \ + /* complete me */ \ + } while (0) + +#define TAS5706A_MCLK_INIT() \ + do { \ + /* implement me */ \ + } while(0) + + +#endif /* HW_TAS5706A_H */