diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-02-21 11:28:21 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-03-01 23:48:44 +0100 |
commit | 81cd75e38c04268befe128fe5f7c1b19553261ec (patch) | |
tree | 484fb050c18dd2f787c52eecc5655cbc758d27e0 /src/target/firmware/calypso | |
parent | d520c7e4cf8ac63d61294a63ff8c0bd0639c1edd (diff) |
move macros to where they belong
Diffstat (limited to 'src/target/firmware/calypso')
-rw-r--r-- | src/target/firmware/calypso/dsp.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/target/firmware/calypso/dsp.c b/src/target/firmware/calypso/dsp.c index f135a8b6..b857f7e0 100644 --- a/src/target/firmware/calypso/dsp.c +++ b/src/target/firmware/calypso/dsp.c @@ -197,15 +197,6 @@ void dsp_api_memset(uint16_t *ptr, int octets) *ptr++ = 0; } -/* How an ABB register + value is expressed in the API RAM */ -#define ABB_VAL(reg, val) ( (((reg) & 0x1F) << 1) | (((val) & 0x3FF) << 6) ) - -/* How an ABB register + value | TRUE is expressed in the API RAM */ -#define ABB_VAL_T(reg, val) (ABB_VAL(reg, val) | 1) - -/* How a RAMP value is encoded */ -#define RAMP_VAL(up, down) ( ((down & 0x1F) << 5) | (up & 0x1F) ) - static void dsp_ndb_init(void) { T_NDB_MCU_DSP *ndb = dsp_api.ndb; @@ -217,7 +208,7 @@ static void dsp_ndb_init(void) /* load APC ramp: set to "no ramp" so that there will be no output if * not properly initialised at some other place. */ for (i = 0; i < 16; i++) - dsp_api.ndb->a_ramp[i] = ABB_VAL(APCRAM, RAMP_VAL(0, 0)); + dsp_api.ndb->a_ramp[i] = ABB_VAL(APCRAM, ABB_RAMP_VAL(0, 0)); /* Iota registers values will be programmed at 1st DSP communication interrupt */ |