X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fek-lpc-p2378%2Fhw%2Fhw_tas5706a.h;fp=boards%2Fek-lpc-p2378%2Fhw%2Fhw_tas5706a.h;h=f8cbf353a30b578c822c6b59f41ccf1d1594249d;hb=1b803b1b77ec99683f949e4e1e82b2bee936770f;hp=0000000000000000000000000000000000000000;hpb=f1597b21dbfbfceb5224956a041d84dc0aaeefb0;p=bertos.git diff --git a/boards/ek-lpc-p2378/hw/hw_tas5706a.h b/boards/ek-lpc-p2378/hw/hw_tas5706a.h new file mode 100644 index 00000000..f8cbf353 --- /dev/null +++ b/boards/ek-lpc-p2378/hw/hw_tas5706a.h @@ -0,0 +1,65 @@ +/** + * \file + * + * + * \brief HW pin handling. + * + * \version $Id: hw_tas5706a.h 2849 2009-09-01 15:46:14Z lottaviano $ + * + * \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 */