Replaced remaining '#pragma interrupt' with __attribute__((interrupt_handler)). It's cleaner this way, and fixes sh-elf-gcc 3.4.x builds with -Os or -O2.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9816 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
171b5ff207
commit
a7c20ac760
3 changed files with 8 additions and 8 deletions
|
@ -60,7 +60,7 @@ static void adc_tick(void)
|
|||
ADCSR = ADCSR_ADST | ADCSR_ADIE | ADCSR_SCAN | 3;
|
||||
}
|
||||
|
||||
#pragma interrupt
|
||||
void ADITI(void) __attribute__((interrupt_handler));
|
||||
void ADITI(void)
|
||||
{
|
||||
if(ADCSR & ADCSR_ADF)
|
||||
|
|
|
@ -164,7 +164,7 @@ void play_tick(void)
|
|||
}
|
||||
}
|
||||
|
||||
#pragma interrupt
|
||||
void DEI3(void) __attribute__((interrupt_handler));
|
||||
void DEI3(void)
|
||||
{
|
||||
unsigned char* start;
|
||||
|
@ -188,7 +188,7 @@ void DEI3(void)
|
|||
CHCR3 &= ~0x0002; /* Clear DMA interrupt */
|
||||
}
|
||||
|
||||
#pragma interrupt
|
||||
void IMIA1(void) __attribute__((interrupt_handler));
|
||||
void IMIA1(void) /* Timer 1 interrupt */
|
||||
{
|
||||
if(playing)
|
||||
|
@ -200,14 +200,14 @@ void IMIA1(void) /* Timer 1 interrupt */
|
|||
#endif
|
||||
}
|
||||
|
||||
#pragma interrupt
|
||||
void IRQ6(void) __attribute__((interrupt_handler));
|
||||
void IRQ6(void) /* PB14: MAS stop demand IRQ */
|
||||
{
|
||||
SCR0 &= ~0x80;
|
||||
}
|
||||
|
||||
#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
|
||||
#pragma interrupt
|
||||
void IRQ3(void) __attribute__((interrupt_handler));
|
||||
void IRQ3(void) /* PA15: MAS demand IRQ */
|
||||
{
|
||||
/* Begin with setting the IRQ to edge sensitive */
|
||||
|
|
|
@ -766,7 +766,7 @@ int main(void)
|
|||
|
||||
|
||||
|
||||
#pragma interrupt
|
||||
void IRQ6(void) __attribute__((interrupt_handler));
|
||||
|
||||
void IRQ6(void)
|
||||
|
||||
|
@ -778,7 +778,7 @@ void IRQ6(void)
|
|||
|
||||
|
||||
|
||||
#pragma interrupt
|
||||
void DEI3(void) __attribute__((interrupt_handler));
|
||||
|
||||
void DEI3(void)
|
||||
|
||||
|
@ -922,7 +922,7 @@ static void mas_poll_start(unsigned int interval_in_ms)
|
|||
|
||||
|
||||
|
||||
#pragma interrupt
|
||||
void IMIA1(void) __attribute__((interrupt_handler));
|
||||
|
||||
void IMIA1(void)
|
||||
|
||||
|
|
Loading…
Reference in a new issue