/*****************中断服务程序***************/
static void test_isr_handler (void* handle)
{
Uint32 i;
printf ("开始执行中断服务程序!\n");
CSL_CPINTC_clearSysInterrupt(hnd, 88);
KeyStone_SPI_TxRx(NULL, 0, 0, Data_From_ADS , 0, 27, SPI_CS_NO_HOLD, FALSE, 0, 0);
/* for(i = 0; i<1000000; i++)
{
gpioSetOutput(GPIO_14);
asm(" nop"); //要在nop前加一个空格,否则会编译错误!
gpioClearOutput(GPIO_14);
asm(" nop");
}
*/
printf ("中断服务程序执行结束\n");
}
static void test_isr_handler (void* handle)
{
Uint32 i;
printf ("开始执行中断服务程序!\n");
CSL_CPINTC_clearSysInterrupt(hnd, 88);
KeyStone_SPI_TxRx(NULL, 0, 0, Data_From_ADS , 0, 27, SPI_CS_NO_HOLD, FALSE, 0, 0);
/* for(i = 0; i<1000000; i++)
{
gpioSetOutput(GPIO_14);
asm(" nop"); //要在nop前加一个空格,否则会编译错误!
gpioClearOutput(GPIO_14);
asm(" nop");
}
*/
printf ("中断服务程序执行结束\n");
}