?? its_int.c
字號:
/***********************************************************************************
Filename: ITS_int.c
Copyright 2007 Texas Instruments, Inc.
***********************************************************************************/
#include "ITS_types.h"
#include "ITS_defs.h"
#include "ITS_int.h"
#include "ITS_board.h"
//----------------------------------------------------------------------------------
// void ITSIntOn(void)
//
// DESCRIPTION:
// Enable global interrupts.
//----------------------------------------------------------------------------------
void ITSIntOn(void)
{
HAL_INT_ON();
}
//----------------------------------------------------------------------------------
// void ITSIntOff(void)
//
// DESCRIPTION:
// Turns global interrupts off.
//----------------------------------------------------------------------------------
void ITSIntOff(void)
{
HAL_INT_OFF();
}
//----------------------------------------------------------------------------------
// uint16 ITSIntLock(void)
//
// DESCRIPTION:
// Turns global interrupts off and returns current interrupt state.
// Should always be used together with ITSIntUnlock().
//----------------------------------------------------------------------------------
uint16 ITSIntLock(void)
{
char key;
HAL_INT_LOCK(key);
return(key);
}
//----------------------------------------------------------------------------------
// void ITSIntUnlock(uint16 key)
//
// DESCRIPTION:
// Set interrupt state back to the state it had before calling ITSIntLock().
// Should always be used together with ITSIntLock().
//----------------------------------------------------------------------------------
void ITSIntUnlock(uint16 key)
{
HAL_INT_UNLOCK(key);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -