Use target names instead of model numbers in #if statements - nowhere else uses MODEL_NUMBER.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29290 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
50c727ce7a
commit
e8e0ca2c57
1 changed files with 2 additions and 4 deletions
|
@ -252,12 +252,10 @@ void serial_setup (void)
|
||||||
{
|
{
|
||||||
int tmp;
|
int tmp;
|
||||||
|
|
||||||
#if (MODEL_NUMBER == 3) || (MODEL_NUMBER == 8)
|
#if defined(IPOD_COLOR) || defined(IPOD_4G)
|
||||||
|
|
||||||
/* Route the Tx/Rx pins. 4G Ipod??? */
|
/* Route the Tx/Rx pins. 4G Ipod??? */
|
||||||
outl(0x70000018, inl(0x70000018) & ~0xc00);
|
outl(0x70000018, inl(0x70000018) & ~0xc00);
|
||||||
#elif (MODEL_NUMBER == 4) || (MODEL_NUMBER == 5)
|
#elif defined(IPOD_NANO) || defined(IPOD_VIDEO)
|
||||||
|
|
||||||
/* Route the Tx/Rx pins. 5G Ipod */
|
/* Route the Tx/Rx pins. 5G Ipod */
|
||||||
(*(volatile unsigned long *)(0x7000008C)) &= ~0x0C;
|
(*(volatile unsigned long *)(0x7000008C)) &= ~0x0C;
|
||||||
GPO32_ENABLE &= ~0x0C;
|
GPO32_ENABLE &= ~0x0C;
|
||||||
|
|
Loading…
Reference in a new issue