⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 isrspi.c

📁 zilog z80f91单片机的SPI接口函数
💻 C
字号:
/*!\file isruart0.c
 * \brief Implementation file for handling UART0 interrupt.
 *
 *  This file contains implementation for handling UART0 interrupt
 *  required by UART driver implementations for eZ80 and eZ80
 *  Acclaim! series of microprocessors and microcontrollers.
 *
 *  This source file uses Doxygen-style comments to generate documentation
 *  automatically.
 *
 *  Copyright (C) 1999-2004 by  ZiLOG, Inc.
 *  All Rights Reserved.
 */

#include "ZSysgen.h"
#include "ztypes.h"
#include "ZThread.h"
#include "ZInterrupt.h"
#include "ZDevice.h"
#include "spi.h"

extern DEV_SPI_CB_t spiDevStruct ; 
/* SPI Interrupt task */
void spi_task(void)
{
	RZK_STATE_t stat ;

	while(1)
	{
		stat = RZKDisablePreemption() ;
		/* Re enabling spi interrupts */
		RZKResumeThread(spiDevStruct.hSPIThread);
		RZKSuspendInterruptThread() ;
		RZKRestorePreemption(stat) ;
	}
}/*! End of File */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -