projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
USB: coding style fixes (structure naming)
[bertos.git]
/
bertos
/
hw
/
hw_tas5706a.h
diff --git
a/bertos/hw/hw_tas5706a.h
b/bertos/hw/hw_tas5706a.h
index e67a14050902ebfc521798a04d7d387d2ec7385a..fda85e1205b93a0e5394977f05dc50abb9d1e2e0 100644
(file)
--- a/
bertos/hw/hw_tas5706a.h
+++ b/
bertos/hw/hw_tas5706a.h
@@
-32,7
+32,6
@@
*
* \brief HW pin handling.
*
*
* \brief HW pin handling.
*
- * \version $Id$
*
* \author Francesco Sacchi <batt@develer.com>
*/
*
* \author Francesco Sacchi <batt@develer.com>
*/
@@
-40,29
+39,25
@@
#ifndef HW_TAS5706A_H
#define HW_TAS5706A_H
#ifndef HW_TAS5706A_H
#define HW_TAS5706A_H
-#include <io/arm.h>
#include <cfg/macros.h>
#include <cfg/macros.h>
-#define TAS5706A_SETPOWERDOWN(val) do { if (val) PIOA_CODR = BV(6); else PIOA_SODR = BV(6); } while (0)
-#define TAS5706A_SETRESET(val) do { if (val) PIOA_CODR = BV(7); else PIOA_SODR = BV(7); } while (0)
-#define TAS5706A_SETMUTE(val) do { if (val) PIOA_CODR = BV(8); else PIOA_SODR = BV(8); } while (0)
+#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); \
#define TAS5706A_PIN_INIT() \
do { \
TAS5706A_SETPOWERDOWN(true); \
TAS5706A_SETRESET(true); \
TAS5706A_SETMUTE(true); \
- PIOA_PER = BV(6) | BV(7) | BV(8); \
- PIOA_OER = BV(6) | BV(7) | BV(8); \
+ /* complete me */ \
} while (0)
#define TAS5706A_MCLK_INIT() \
do { \
} while (0)
#define TAS5706A_MCLK_INIT() \
do { \
- PIOA_PDR = BV(2); /* enable PWM pin */ \
- PWM_CMR2 = 0; /* set prescaler to MCK, left aligned, start with low level */ \
- PWM_CPRD2 = 4; /* 11.2896 MHz MCLK */ \
- PWM_CDTY2 = 2; /* 50% duty */ \
- PWM_ENA = BV(2); /* Enable PWM on MCLK pin */ \
+ /* implement me */ \
} while(0)
} while(0)