X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fat91sam7s-ek%2Fhw%2Fhw_tas5706a.h;fp=boards%2Fat91sam7s-ek%2Fhw%2Fhw_tas5706a.h;h=d1e1a2e6a70517ddfcd5fb00defc7c66b011ea40;hb=a22efc8dcc90c5fcb3811cf2667efb8a4e448134;hp=0000000000000000000000000000000000000000;hpb=bc0bd1c2cc28c168f9518cf6a4b11f09d39052fb;p=bertos.git diff --git a/boards/at91sam7s-ek/hw/hw_tas5706a.h b/boards/at91sam7s-ek/hw/hw_tas5706a.h new file mode 100644 index 00000000..d1e1a2e6 --- /dev/null +++ b/boards/at91sam7s-ek/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 */