1
0
Fork 0
forked from len0rd/rockbox

m:robe 500i: Fix indenting style in DSP loader

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15801 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Catalin Patulea 2007-11-25 01:27:33 +00:00
parent 739b2cc4bc
commit 475e64eb5c

View file

@ -39,7 +39,7 @@ static void dsp_status(void)
unsigned short hpib_ctl = IO_DSPC_HPIB_CONTROL; unsigned short hpib_ctl = IO_DSPC_HPIB_CONTROL;
unsigned short hpib_stat = IO_DSPC_HPIB_STATUS; unsigned short hpib_stat = IO_DSPC_HPIB_STATUS;
char buffer1[80], buffer2[80]; char buffer1[80], buffer2[80];
DEBUGF("dsp_status(): clkc_hpib=%u clkc_dsp=%u", DEBUGF("dsp_status(): clkc_hpib=%u clkc_dsp=%u",
!!(IO_CLK_MOD0 & (1 << 11)), !!(IO_CLK_MOD0 & (1 << 10))); !!(IO_CLK_MOD0 & (1 << 11)), !!(IO_CLK_MOD0 & (1 << 10)));
@ -48,8 +48,8 @@ static void dsp_status(void)
(IO_INTC_IRQ0 >> IRQ_DSPHINT) & 1, DSP_(0x7fff), DSP_(_status), (IO_INTC_IRQ0 >> IRQ_DSPHINT) & 1, DSP_(0x7fff), DSP_(_status),
DSP_(_acked)); DSP_(_acked));
#define B(f,w,b,m) if ((w & (1 << b)) == 0) \ #define B(f,w,b,m) if ((w & (1 << b)) == 0) \
strcat(f, "!"); \ strcat(f, "!"); \
strcat(f, #m "|"); strcat(f, #m "|");
strcpy(buffer1, ""); strcpy(buffer1, "");
B(buffer1, hpib_ctl, 0, EN); B(buffer1, hpib_ctl, 0, EN);
B(buffer1, hpib_ctl, 3, NMI); B(buffer1, hpib_ctl, 3, NMI);
@ -71,7 +71,7 @@ static void dsp_status(void)
static void dsp_reset(void) static void dsp_reset(void)
{ {
DSP_(0x7fff) = 0xdead; DSP_(0x7fff) = 0xdead;
IO_DSPC_HPIB_CONTROL &= ~(1 << 8); IO_DSPC_HPIB_CONTROL &= ~(1 << 8);
/* HPIB bus cycles will lock up the ARM in here. Don't touch DSP RAM. */ /* HPIB bus cycles will lock up the ARM in here. Don't touch DSP RAM. */
nop; nop; nop; nop;