Fix bad macro names

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1173 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2008-11-08 17:46:10 +00:00
parent 215adeef29
commit 2f540a8e6e

View File

@ -80,21 +80,21 @@ void up_ledinit(void)
/* Setup port B, pin 15 as an output */
reg16 = getreg(SH1_PFC_PBIOR);
reg16 = getreg16(SH1_PFC_PBIOR);
reg16 |= SH1_PBIOR_LED;
putreg(reg16, SH1_PFC_PBIOR);
putreg16(reg16, SH1_PFC_PBIOR);
/* Setup port B, pin 15 as a normal I/O register */
reg16 = getreg(SH1_PFC_PBCR1);
reg16 = getreg16(SH1_PFC_PBCR1);
reg16 &= ~SH1_PBCR2_LED;
putreg(reg16, SH1_PFC_PBCR1);
putreg16(reg16, SH1_PFC_PBCR1);
/* Turn the LED off */
reg16 = getreg(SH1_PORTB_DR);
reg16 = getreg16(SH1_PORTB_DR);
reg16 &= ~SH1_PBDR_LED;
putreg(reg16, SH1_PORTB_DR);
putreg16(reg16, SH1_PORTB_DR);
}
/****************************************************************************
@ -109,9 +109,9 @@ void up_ledon(int led)
{
/* Turn the LED on */
reg16 = getreg(SH1_PORTB_DR);
reg16 = getreg16(SH1_PORTB_DR);
reg16 |= SH1_PBDR_LED;
putreg(reg16, SH1_PORTB_DR);
putreg16(reg16, SH1_PORTB_DR);
}
}
@ -127,9 +127,9 @@ void up_ledoff(int led)
{
/* Turn the LED off */
reg16 = getreg(SH1_PORTB_DR);
reg16 = getreg16(SH1_PORTB_DR);
reg16 &= ~SH1_PBDR_LED;
putreg(reg16, SH1_PORTB_DR);
putreg16(reg16, SH1_PORTB_DR);
}
}
#endif /* CONFIG_ARCH_LEDS */