1
0
Fork 0
forked from len0rd/rockbox

A few preparations for the D2 PCM driver: move driver up to TCC780x level, move FIQ handler into PCM driver, add some new register defines, and remove those goddamn warnings.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17209 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rob Purchase 2008-04-21 20:16:18 +00:00
parent 5d7d410a47
commit fd773cbda6
5 changed files with 30 additions and 21 deletions

View file

@ -25,62 +25,62 @@
void pcm_postinit(void)
{
#warning function not implemented
}
const void * pcm_play_dma_get_peak_buffer(int *count)
{
#warning function not implemented
(void) count;
return 0;
}
void pcm_play_dma_init(void)
{
#warning function not implemented
}
void pcm_apply_settings(void)
{
#warning function not implemented
}
void pcm_set_frequency(unsigned int frequency)
{
#warning function not implemented
(void) frequency;
}
void pcm_play_dma_start(const void *addr, size_t size)
{
#warning function not implemented
(void) addr;
(void) size;
}
void pcm_play_dma_stop(void)
{
#warning function not implemented
}
void pcm_play_lock(void)
{
#warning function not implemented
}
void pcm_play_unlock(void)
{
#warning function not implemented
}
void pcm_play_dma_pause(bool pause)
{
#warning function not implemented
(void) pause;
}
size_t pcm_get_bytes_waiting(void)
{
#warning function not implemented
return 0;
}
void fiq_handler(void)
{
/* Clear FIQ status */
CREQ = DAI_TX_IRQ_MASK | DAI_RX_IRQ_MASK;
/* Return from FIQ */
asm volatile (
"subs pc, lr, #4 \r\n"
);
}

View file

@ -142,12 +142,6 @@ void irq_handler(void)
"subs pc, lr, #4 \n"); /* Return from IRQ */
}
void fiq_handler(void)
{
asm volatile (
"subs pc, lr, #4 \r\n"
);
}
#endif /* !defined(BOOTLOADER) */
@ -254,7 +248,8 @@ void system_init(void)
#if !defined(BOOTLOADER)
IRQSEL = -1; /* set all interrupts to be IRQs not FIQs */
/* Set DAI interrupts as FIQ, all others are IRQ. */
IRQSEL = ~(DAI_RX_IRQ_MASK | DAI_TX_IRQ_MASK);
POL = 0x200108; /* IRQs 3,8,21 active low (as OF) */
MODE = 0x20ce07c0; /* IRQs 6-10,17-19,22-23,29 level-triggered (as OF) */