亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? interrupt.c

?? FreeRTOS V4.2.1,增加了AVR32 UC3 和 LPC2368 的支持
?? C
?? 第 1 頁 / 共 2 頁
字號:
//*****************************************************************************
//
// interrupt.c - Driver for the NVIC Interrupt Controller.
//
// Copyright (c) 2005,2006 Luminary Micro, Inc.  All rights reserved.
//
// Software License Agreement
//
// Luminary Micro, Inc. (LMI) is supplying this software for use solely and
// exclusively on LMI's Stellaris Family of microcontroller products.
//
// The software is owned by LMI and/or its suppliers, and is protected under
// applicable copyright laws.  All rights are reserved.  Any use in violation
// of the foregoing restrictions may subject the user to criminal sanctions
// under applicable laws, as well as to civil liability for the breach of the
// terms and conditions of this license.
//
// THIS SOFTWARE IS PROVIDED "AS IS".  NO WARRANTIES, WHETHER EXPRESS, IMPLIED
// OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
// LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
// CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
//
// This is part of revision 991 of the Stellaris Driver Library.
//
//*****************************************************************************

//*****************************************************************************
//
//! \addtogroup interrupt_api
//! @{
//
//*****************************************************************************

#include "../hw_ints.h"
#include "../hw_nvic.h"
#include "../hw_types.h"
#include "cpu.h"
#include "debug.h"
#include "interrupt.h"

//*****************************************************************************
//
// This is a mapping between priority grouping encodings and the number of
// preemption priority bits.
//
//*****************************************************************************
#if defined(GROUP_pulpriority) || defined(BUILD_ALL)
const unsigned long g_pulPriority[] =
{
    NVIC_APINT_PRIGROUP_0_8, NVIC_APINT_PRIGROUP_1_7, NVIC_APINT_PRIGROUP_2_6,
    NVIC_APINT_PRIGROUP_3_5, NVIC_APINT_PRIGROUP_4_4, NVIC_APINT_PRIGROUP_5_3,
    NVIC_APINT_PRIGROUP_6_2, NVIC_APINT_PRIGROUP_7_1
};
#else
extern const unsigned long g_pulPriority[];
#endif

//*****************************************************************************
//
// This is a mapping between interrupt number and the register that contains
// the priority encoding for that interrupt.
//
//*****************************************************************************
#if defined(GROUP_pulregs) || defined(BUILD_ALL)
const unsigned long g_pulRegs[12] =
{
    0, NVIC_SYS_PRI1, NVIC_SYS_PRI2, NVIC_SYS_PRI3, NVIC_PRI0, NVIC_PRI1,
    NVIC_PRI2, NVIC_PRI3, NVIC_PRI4, NVIC_PRI5, NVIC_PRI6, NVIC_PRI7
};
#else
extern const unsigned long g_pulRegs[12];
#endif

//*****************************************************************************
//
//! \internal
//! The default interrupt handler.
//!
//! This is the default interrupt handler for all interrupts.  It simply loops
//! forever so that the system state is preserved for observation by a
//! debugger.  Since interrupts should be disabled before unregistering the
//! corresponding handler, this should never be called.
//!
//! \return None.
//
//*****************************************************************************
#if defined(GROUP_defaulthandler) || defined(BUILD_ALL)
void
IntDefaultHandler(void)
{
    //
    // Go into an infinite loop.
    //
    while(1)
    {
    }
}
#else
extern void IntDefaultHandler(void);
#endif

//*****************************************************************************
//
// The processor vector table.
//
// This contains a list of the handlers for the various interrupt sources in
// the system.  The layout of this list is defined by the hardware; assertion
// of an interrupt causes the processor to start executing directly at the
// address given in the corresponding location in this list.
//
//*****************************************************************************
#if defined(GROUP_vtable) || defined(BUILD_ALL)
#ifdef ewarm
__no_init void (*g_pfnRAMVectors[NUM_INTERRUPTS])(void) @ "VTABLE";
#else
__attribute__((section("vtable")))
void (*g_pfnRAMVectors[NUM_INTERRUPTS])(void);
#endif
#else
extern void (*g_pfnRAMVectors[NUM_INTERRUPTS])(void);
#endif

//*****************************************************************************
//
//! Enables the processor interrupt.
//!
//! Allows the processor to respond to interrupts.  This does not affect the
//! set of interrupts enabled in the interrupt controller; it just gates the
//! single interrupt from the controller to the processor.
//!
//! \return None.
//
//*****************************************************************************
#if defined(GROUP_masterenable) || defined(BUILD_ALL) || defined(DOXYGEN)
void
IntMasterEnable(void)
{
    //
    // Enable processor interrupts.
    //
    CPUcpsie();
}
#endif

//*****************************************************************************
//
//! Disables the processor interrupt.
//!
//! Prevents the processor from receiving interrupts.  This does not affect the
//! set of interrupts enabled in the interrupt controller; it just gates the
//! single interrupt from the controller to the processor.
//!
//! \return None.
//
//*****************************************************************************
#if defined(GROUP_masterdisable) || defined(BUILD_ALL) || defined(DOXYGEN)
void
IntMasterDisable(void)
{
    //
    // Disable processor interrupts.
    //
    CPUcpsid();
}
#endif

//*****************************************************************************
//
//! Registers a function to be called when an interrupt occurs.
//!
//! \param ulInterrupt specifies the interrupt in question.
//! \param pfnHandler is a pointer to the function to be called.
//!
//! This function is used to specify the handler function to be called when the
//! given interrupt is asserted to the processor.  When the interrupt occurs,
//! if it is enabled (via IntEnable()), the handler function will be called in
//! interrupt context.  Since the handler function can preempt other code, care
//! must be taken to protect memory or peripherals that are accessed by the
//! handler and other non-handler code.
//!
//! \note The use of this function (directly or indirectly via a peripheral
//! driver interrupt register function) moves the interrupt vector table from
//! flash to SRAM.  Therefore, care must be taken when linking the application
//! to ensure that the SRAM vector table is located at the beginning of SRAM;
//! otherwise NVIC will not look in the correct portion of memory for the
//! vector table (it requires the vector table be on a 1 kB memory alignment).
//! Normally, the SRAM vector table is so placed via the use of linker scripts;
//! some tool chains, such as the evaluation version of RV-MDK, do not support
//! linker scripts and therefore will not produce a valid executable.  See the
//! discussion of compile-time versus run-time interrupt handler registration
//! in the introduction to this chapter.
//!
//! \return None.
//
//*****************************************************************************
#if defined(GROUP_register) || defined(BUILD_ALL) || defined(DOXYGEN)
void
IntRegister(unsigned long ulInterrupt, void (*pfnHandler)(void))
{
    unsigned long ulIdx;

    //
    // Check the arguments.
    //
    ASSERT(ulInterrupt < NUM_INTERRUPTS);

    //
    // Make sure that the RAM vector table is correctly aligned.
    //
    ASSERT(((unsigned long)g_pfnRAMVectors & 0x000003ff) == 0);

    //
    // See if the RAM vector table has been initialized.
    //
    if(HWREG(NVIC_VTABLE) != (unsigned long)g_pfnRAMVectors)
    {
        //
        // Copy the vector table from the beginning of FLASH to the RAM vector
        // table.
        //
        for(ulIdx = 0; ulIdx < NUM_INTERRUPTS; ulIdx++)
        {
            g_pfnRAMVectors[ulIdx] = (void (*)(void))HWREG(ulIdx * 4);
        }

        //
        // Point NVIC at the RAM vector table.
        //
        HWREG(NVIC_VTABLE) = (unsigned long)g_pfnRAMVectors;
    }

    //
    // Save the interrupt handler.
    //
    g_pfnRAMVectors[ulInterrupt] = pfnHandler;
}
#endif

//*****************************************************************************
//
//! Unregisters the function to be called when an interrupt occurs.
//!
//! \param ulInterrupt specifies the interrupt in question.
//!
//! This function is used to indicate that no handler should be called when the
//! given interrupt is asserted to the processor.  The interrupt source will be
//! automatically disabled (via IntDisable()) if necessary.
//!
//! \sa IntRegister() for important information about registering interrupt
//! handlers.
//!
//! \return None.
//
//*****************************************************************************
#if defined(GROUP_unregister) || defined(BUILD_ALL) || defined(DOXYGEN)
void
IntUnregister(unsigned long ulInterrupt)
{
    //
    // Check the arguments.
    //
    ASSERT(ulInterrupt < NUM_INTERRUPTS);

    //
    // Reset the interrupt handler.
    //
    g_pfnRAMVectors[ulInterrupt] = IntDefaultHandler;
}
#endif

//*****************************************************************************
//
//! Sets the priority grouping of the interrupt controller.
//!
//! \param ulBits specifies the number of bits of preemptable priority.
//!

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品一区二区三区四区 | 色噜噜狠狠色综合中国| 欧洲av在线精品| 2023国产精品视频| 亚洲国产精品嫩草影院| 国产一区不卡精品| 538prom精品视频线放| 亚洲欧洲av另类| 国产精品18久久久久久vr | 国产精品1区2区3区| 欧美日韩精品一区二区三区蜜桃 | 91久久精品网| 国产精品免费人成网站| 久久草av在线| 3d动漫精品啪啪| 亚洲一区二区欧美日韩| 97se狠狠狠综合亚洲狠狠| 久久欧美一区二区| 国内精品伊人久久久久av影院| 欧美在线不卡视频| 亚洲六月丁香色婷婷综合久久 | 99这里都是精品| 欧美激情在线看| 国产黄色精品网站| 国产日韩成人精品| 国模套图日韩精品一区二区| 日韩一区二区三区免费看 | 亚洲日本青草视频在线怡红院| 国产成人精品一区二| 久久综合色8888| 国产一区二区在线观看视频| 日韩欧美国产成人一区二区| 日韩精品91亚洲二区在线观看 | 色综合视频一区二区三区高清| 国产亚洲精品bt天堂精选| 国产揄拍国内精品对白| 日韩情涩欧美日韩视频| 男人的天堂亚洲一区| 日韩女同互慰一区二区| 国产一区二区免费看| 久久精品亚洲一区二区三区浴池| 国产福利一区二区三区视频 | 成人精品鲁一区一区二区| 国产欧美一区二区精品性| 国产夫妻精品视频| 国产精品剧情在线亚洲| 色噜噜狠狠成人网p站| 亚洲一区二区美女| 欧美一区二区精品| 国内精品伊人久久久久av影院| 精品黑人一区二区三区久久| 国产高清不卡一区二区| 国产精品国产精品国产专区不蜜| 色婷婷亚洲一区二区三区| 性做久久久久久久免费看| 欧美mv和日韩mv的网站| 成人在线综合网站| 亚洲夂夂婷婷色拍ww47| 777a∨成人精品桃花网| 国产suv精品一区二区883| 亚洲免费毛片网站| 欧美一级国产精品| 成人18视频在线播放| 日韩二区三区四区| 日本一区二区三级电影在线观看| 色婷婷亚洲一区二区三区| 美女网站在线免费欧美精品| 日本一区二区动态图| 欧美日韩精品一区二区| 国产精品亚洲视频| 亚洲成人综合视频| 亚洲国产成人自拍| 这里只有精品电影| 91污在线观看| 国产一区二区三区免费播放| 一区二区三区中文字幕电影| 精品国一区二区三区| 色欧美乱欧美15图片| 韩国v欧美v日本v亚洲v| 亚洲高清免费视频| 国产欧美日韩综合| 日韩小视频在线观看专区| 一本一道久久a久久精品综合蜜臀| 麻豆精品国产91久久久久久| 亚洲黄色片在线观看| 精品国产髙清在线看国产毛片| 在线观看亚洲a| 成人动漫一区二区三区| 精品一区二区三区免费观看| 亚洲尤物视频在线| 国产精品九色蝌蚪自拍| 亚洲精品一区二区三区福利| 欧美在线一二三四区| www.成人在线| 国产大陆精品国产| 精品一区二区三区免费观看| 婷婷久久综合九色综合伊人色| 中文字幕日本乱码精品影院| 久久嫩草精品久久久久| 91精品国产综合久久婷婷香蕉 | 亚洲综合视频网| 日韩理论电影院| 国产亚洲成av人在线观看导航| 7777精品久久久大香线蕉| 在线亚洲精品福利网址导航| 99久久99久久免费精品蜜臀| 国产高清在线观看免费不卡| 国内精品免费在线观看| 裸体健美xxxx欧美裸体表演| 偷拍一区二区三区| 午夜国产精品一区| 亚洲成人激情av| 香蕉加勒比综合久久| 亚洲高清视频在线| 午夜精品久久久| 丝袜亚洲另类欧美| 青娱乐精品在线视频| 日韩黄色免费网站| 蜜桃传媒麻豆第一区在线观看| 日日夜夜精品视频天天综合网| 亚洲妇女屁股眼交7| 午夜视频一区在线观看| 首页国产丝袜综合| 久久国产尿小便嘘嘘| 国产尤物一区二区在线| 国产宾馆实践打屁股91| 99久久久久免费精品国产| 99国产精品久| 91福利国产精品| 91麻豆精品国产91久久久资源速度 | 日韩影院精彩在线| 久久国产麻豆精品| 国产91清纯白嫩初高中在线观看| 成人一区二区三区在线观看| 成人动漫av在线| 欧美日韩性生活| 欧美大片在线观看一区| 久久久久久久久久电影| 国产日产欧美一区二区三区| 中文字幕一区二区在线播放| 亚洲综合小说图片| 国内精品久久久久影院一蜜桃| 国产伦精品一区二区三区免费| 99久久综合狠狠综合久久| 欧美性猛交xxxxxxxx| 精品奇米国产一区二区三区| 日本一区二区三区国色天香| 一区二区在线观看免费视频播放| 日本成人在线看| 99久久久免费精品国产一区二区| 欧美三级一区二区| 久久久综合网站| 亚洲自拍偷拍综合| 国产乱码一区二区三区| 日本道色综合久久| 欧美xxxxx裸体时装秀| 亚洲欧美福利一区二区| 久久黄色级2电影| 在线视频亚洲一区| 国产日韩欧美精品电影三级在线 | 午夜视频一区二区三区| 国产成人午夜精品5599| 欧美日韩国产在线观看| 久久久久久久综合| 天天影视涩香欲综合网| 99久久婷婷国产综合精品| 日韩写真欧美这视频| 一区二区三区成人在线视频| 国产一区二区视频在线播放| 欧美色视频在线观看| 国产精品久久久久久久久久免费看| 日韩av在线免费观看不卡| 91在线免费视频观看| 久久综合色天天久久综合图片| 香蕉乱码成人久久天堂爱免费| 成av人片一区二区| 国产a精品视频| 亚洲欧美激情一区二区| 麻豆精品精品国产自在97香蕉 | 国产精品2024| 日韩亚洲欧美一区二区三区| 夜夜亚洲天天久久| 99精品久久免费看蜜臀剧情介绍| 精品少妇一区二区三区在线视频| 亚洲国产中文字幕| 欧洲中文字幕精品| 亚洲欧洲www| 波多野结衣一区二区三区| 久久色.com| 美女在线一区二区| 欧美一区二区三区四区久久| 亚洲国产色一区| 欧美最猛性xxxxx直播| 一区二区免费在线| 91精彩视频在线观看| 一区二区国产视频| 欧美色男人天堂| 天天综合色天天综合色h| 欧美三级日韩三级国产三级| 一区二区三区四区高清精品免费观看|