fix regression from r3848 that was making some mic malfunction
This commit is contained in:
parent
5141a38ec6
commit
4180b540a7
|
@ -3720,8 +3720,10 @@ void FASTCALL _MMU_ARM7_write16(u32 adr, u16 val)
|
|||
return;
|
||||
|
||||
case 2:
|
||||
//printf("%08X\n",MMU.SPI_CMD);
|
||||
switch(MMU.SPI_CMD&0xFC)
|
||||
{
|
||||
int channel = (MMU.SPI_CMD&0x70)>>4;
|
||||
//printf("%08X\n",channel);
|
||||
switch(channel)
|
||||
{
|
||||
case TSC_MEASURE_TEMP1:
|
||||
if(spicnt & 0x800)
|
||||
|
@ -3807,6 +3809,7 @@ void FASTCALL _MMU_ARM7_write16(u32 adr, u16 val)
|
|||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case 3 :
|
||||
/* NOTICE: Device 3 of SPI is reserved (unused and unusable) */
|
||||
|
|
|
@ -406,13 +406,13 @@
|
|||
#define IRQ_MASK_ARM7_SPI (1<<23)
|
||||
#define IRQ_MASK_ARM7_WIFI (1<<24)
|
||||
|
||||
#define TSC_MEASURE_TEMP1 0x84
|
||||
#define TSC_MEASURE_Y 0x90
|
||||
#define TSC_MEASURE_BATTERY 0xA4
|
||||
#define TSC_MEASURE_Z1 0xB4
|
||||
#define TSC_MEASURE_Z2 0xC4
|
||||
#define TSC_MEASURE_X 0xD0
|
||||
#define TSC_MEASURE_AUX 0xE4
|
||||
#define TSC_MEASURE_TEMP2 0xF4
|
||||
#define TSC_MEASURE_TEMP1 0
|
||||
#define TSC_MEASURE_Y 1
|
||||
#define TSC_MEASURE_BATTERY 2
|
||||
#define TSC_MEASURE_Z1 3
|
||||
#define TSC_MEASURE_Z2 4
|
||||
#define TSC_MEASURE_X 5
|
||||
#define TSC_MEASURE_AUX 6
|
||||
#define TSC_MEASURE_TEMP2 7
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue