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:
Dave Chapman 2011-02-12 21:28:23 +00:00
parent 50c727ce7a
commit e8e0ca2c57

View file

@ -252,12 +252,10 @@ void serial_setup (void)
{
int tmp;
#if (MODEL_NUMBER == 3) || (MODEL_NUMBER == 8)
#if defined(IPOD_COLOR) || defined(IPOD_4G)
/* Route the Tx/Rx pins. 4G Ipod??? */
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 */
(*(volatile unsigned long *)(0x7000008C)) &= ~0x0C;
GPO32_ENABLE &= ~0x0C;