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

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

?? ?-

?? 基于Luminary的JPEG圖片瀏覽器
??
?? 第 1 頁 / 共 5 頁
字號:
//*****************************************************************************
//
// sysctl.c - Driver for the system controller.
//
// Copyright (c) 2005-2008 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 microcontroller products.
// 
// The software is owned by LMI and/or its suppliers, and is protected under
// applicable copyright laws.  All rights are reserved.  You may not combine
// this software with "viral" open-source software in order to form a larger
// program.  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 2293 of the Stellaris Peripheral Driver Library.
//
//*****************************************************************************

//*****************************************************************************
//
//! \addtogroup sysctl_api
//! @{
//
//*****************************************************************************

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

//*****************************************************************************
//
// This macro extracts the array index out of the peripheral number.
//
//*****************************************************************************
#define SYSCTL_PERIPH_INDEX(a)  (((a) >> 28) & 0xf)

//*****************************************************************************
//
// This macro constructs the peripheral bit mask from the peripheral number.
//
//*****************************************************************************
#define SYSCTL_PERIPH_MASK(a)   (((a) & 0xffff) << (((a) & 0x001f0000) >> 16))

//*****************************************************************************
//
// An array that maps the "peripheral set" number (which is stored in the upper
// nibble of the SYSCTL_PERIPH_* defines) to the SYSCTL DC? register that
// contains the peripheral present bit for that peripheral.
//
//*****************************************************************************
static const unsigned long g_pulDCRegs[] =
{
    SYSCTL_DC1,
    SYSCTL_DC2,
    SYSCTL_DC4,
    SYSCTL_DC1
};

//*****************************************************************************
//
// An array that maps the "peripheral set" number (which is stored in the upper
// nibble of the SYSCTL_PERIPH_* defines) to the SYSCTL_SRCR? register that
// controls the software reset for that peripheral.
//
//*****************************************************************************
static const unsigned long g_pulSRCRRegs[] =
{
    SYSCTL_SRCR0,
    SYSCTL_SRCR1,
    SYSCTL_SRCR2
};

//*****************************************************************************
//
// An array that maps the "peripheral set" number (which is stored in the upper
// nibble of the SYSCTL_PERIPH_* defines) to the SYSCTL_RCGC? register that
// controls the run-mode enable for that peripheral.
//
//*****************************************************************************
static const unsigned long g_pulRCGCRegs[] =
{
    SYSCTL_RCGC0,
    SYSCTL_RCGC1,
    SYSCTL_RCGC2
};

//*****************************************************************************
//
// An array that maps the "peripheral set" number (which is stored in the upper
// nibble of the SYSCTL_PERIPH_* defines) to the SYSCTL_SCGC? register that
// controls the sleep-mode enable for that peripheral.
//
//*****************************************************************************
static const unsigned long g_pulSCGCRegs[] =
{
    SYSCTL_SCGC0,
    SYSCTL_SCGC1,
    SYSCTL_SCGC2
};

//*****************************************************************************
//
// An array that maps the "peripheral set" number (which is stored in the upper
// nibble of the SYSCTL_PERIPH_* defines) to the SYSCTL_DCGC? register that
// controls the deep-sleep-mode enable for that peripheral.
//
//*****************************************************************************
static const unsigned long g_pulDCGCRegs[] =
{
    SYSCTL_DCGC0,
    SYSCTL_DCGC1,
    SYSCTL_DCGC2
};

//*****************************************************************************
//
// An array that maps the crystal number in RCC to a frequency.
//
//*****************************************************************************
static const unsigned long g_pulXtals[] =
{
    1000000,
    1843200,
    2000000,
    2457600,
    3579545,
    3686400,
    4000000,
    4096000,
    4915200,
    5000000,
    5120000,
    6000000,
    6144000,
    7372800,
    8000000,
    8192000
};

//*****************************************************************************
//
//! Gets the size of the SRAM.
//!
//! This function determines the size of the SRAM on the Stellaris device.
//!
//! \return The total number of bytes of SRAM.
//
//*****************************************************************************
unsigned long
SysCtlSRAMSizeGet(void)
{
    //
    // Compute the size of the SRAM.
    //
    return(((HWREG(SYSCTL_DC0) & SYSCTL_DC0_SRAMSZ_M) >> 8) + 0x100);
}

//*****************************************************************************
//
//! Gets the size of the flash.
//!
//! This function determines the size of the flash on the Stellaris device.
//!
//! \return The total number of bytes of flash.
//
//*****************************************************************************
unsigned long
SysCtlFlashSizeGet(void)
{
    //
    // Compute the size of the flash.
    //
    return(((HWREG(SYSCTL_DC0) & SYSCTL_DC0_FLASHSZ_M) << 11) + 0x800);
}

//*****************************************************************************
//
//! Determines if a pin is present.
//!
//! \param ulPin is the pin in question.
//!
//! Determines if a particular pin is present in the device.  The PWM, analog
//! comparators, ADC, and timers have a varying number of pins across members
//! of the Stellaris family; this will determine which are present on this
//! device.
//!
//! The \e ulPin argument must be only one of the following values:
//! \b SYSCTL_PIN_PWM0, \b SYSCTL_PIN_PWM1, \b SYSCTL_PIN_PWM2,
//! \b SYSCTL_PIN_PWM3, \b SYSCTL_PIN_PWM4, \b SYSCTL_PIN_PWM5,
//! \b SYSCTL_PIN_C0MINUS, \b SYSCTL_PIN_C0PLUS, \b SYSCTL_PIN_C0O,
//! \b SYSCTL_PIN_C1MINUS, \b SYSCTL_PIN_C1PLUS, \b SYSCTL_PIN_C1O,
//! \b SYSCTL_PIN_C2MINUS, \b SYSCTL_PIN_C2PLUS, \b SYSCTL_PIN_C2O,
//! \b SYSCTL_PIN_ADC0, \b SYSCTL_PIN_ADC1, \b SYSCTL_PIN_ADC2,
//! \b SYSCTL_PIN_ADC3, \b SYSCTL_PIN_ADC4, \b SYSCTL_PIN_ADC5,
//! \b SYSCTL_PIN_ADC6, \b SYSCTL_PIN_ADC7, \b SYSCTL_PIN_CCP0,
//! \b SYSCTL_PIN_CCP1, \b SYSCTL_PIN_CCP2, \b SYSCTL_PIN_CCP3,
//! \b SYSCTL_PIN_CCP4, \b SYSCTL_PIN_CCP5, \b SYSCTL_PIN_CCP6,
//! \b SYSCTL_PIN_CCP7, \b SYSCTL_PIN_32KHZ, or \b SYSCTL_PIN_MC_FAULT0.
//!
//! \return Returns \b true if the specified pin is present and \b false if it
//! is not.
//
//*****************************************************************************
tBoolean
SysCtlPinPresent(unsigned long ulPin)
{
    //
    // Check the arguments.
    //
    ASSERT((ulPin == SYSCTL_PIN_PWM0) ||
           (ulPin == SYSCTL_PIN_PWM1) ||
           (ulPin == SYSCTL_PIN_PWM2) ||
           (ulPin == SYSCTL_PIN_PWM3) ||
           (ulPin == SYSCTL_PIN_PWM4) ||
           (ulPin == SYSCTL_PIN_PWM5) ||
           (ulPin == SYSCTL_PIN_C0MINUS) ||
           (ulPin == SYSCTL_PIN_C0PLUS) ||
           (ulPin == SYSCTL_PIN_C0O) ||
           (ulPin == SYSCTL_PIN_C1MINUS) ||
           (ulPin == SYSCTL_PIN_C1PLUS) ||
           (ulPin == SYSCTL_PIN_C1O) ||
           (ulPin == SYSCTL_PIN_C2MINUS) ||
           (ulPin == SYSCTL_PIN_C2PLUS) ||
           (ulPin == SYSCTL_PIN_C2O) ||
           (ulPin == SYSCTL_PIN_MC_FAULT0) ||
           (ulPin == SYSCTL_PIN_ADC0) ||
           (ulPin == SYSCTL_PIN_ADC1) ||
           (ulPin == SYSCTL_PIN_ADC2) ||
           (ulPin == SYSCTL_PIN_ADC3) ||
           (ulPin == SYSCTL_PIN_ADC4) ||
           (ulPin == SYSCTL_PIN_ADC5) ||
           (ulPin == SYSCTL_PIN_ADC6) ||
           (ulPin == SYSCTL_PIN_ADC7) ||
           (ulPin == SYSCTL_PIN_CCP0) ||
           (ulPin == SYSCTL_PIN_CCP1) ||
           (ulPin == SYSCTL_PIN_CCP2) ||
           (ulPin == SYSCTL_PIN_CCP3) ||
           (ulPin == SYSCTL_PIN_CCP4) ||
           (ulPin == SYSCTL_PIN_CCP5) ||
           (ulPin == SYSCTL_PIN_32KHZ));

    //
    // Determine if this pin is present.
    //
    if(HWREG(SYSCTL_DC3) & ulPin)
    {
        return(true);
    }
    else
    {
        return(false);
    }
}

//*****************************************************************************
//
//! Determines if a peripheral is present.
//!
//! \param ulPeripheral is the peripheral in question.
//!
//! Determines if a particular peripheral is present in the device.  Each
//! member of the Stellaris family has a different peripheral set; this will
//! determine which are present on this device.
//!
//! The \e ulPeripheral parameter must be only one of the following values:
//! \b SYSCTL_PERIPH_ADC, \b SYSCTL_PERIPH_CAN0, \b SYSCTL_PERIPH_CAN1,
//! \b SYSCTL_PERIPH_CAN2, \b SYSCTL_PERIPH_COMP0, \b SYSCTL_PERIPH_COMP1,
//! \b SYSCTL_PERIPH_COMP2, \b SYSCTL_PERIPH_ETH, \b SYSCTL_PERIPH_GPIOA,
//! \b SYSCTL_PERIPH_GPIOB, \b SYSCTL_PERIPH_GPIOC, \b SYSCTL_PERIPH_GPIOD,
//! \b SYSCTL_PERIPH_GPIOE, \b SYSCTL_PERIPH_GPIOF, \b SYSCTL_PERIPH_GPIOG,
//! \b SYSCTL_PERIPH_GPIOH, \b SYSCTL_PERIPH_HIBERNATE, \b SYSCTL_PERIPH_I2C0,
//! \b SYSCTL_PERIPH_I2C1, \b SYSCTL_PERIPH_IEEE1588, \b SYSCTL_PERIPH_MPU,
//! \b SYSCTL_PERIPH_PLL, \b SYSCTL_PERIPH_PWM, \b SYSCTL_PERIPH_QEI0,
//! \b SYSCTL_PERIPH_QEI1, \b SYSCTL_PERIPH_SSI0, \b SYSCTL_PERIPH_SSI1,
//! \b SYSCTL_PERIPH_TEMP, \b SYSCTL_PERIPH_TIMER0, \b SYSCTL_PERIPH_TIMER1,
//! \b SYSCTL_PERIPH_TIMER2, \b SYSCTL_PERIPH_TIMER3, \b SYSCTL_PERIPH_UART0,
//! \b SYSCTL_PERIPH_UART1, \b SYSCTL_PERIPH_UART2, or \b SYSCTL_PERIPH_WDOG.
//!
//! \return Returns \b true if the specified peripheral is present and \b false
//! if it is not.
//
//*****************************************************************************
tBoolean
SysCtlPeripheralPresent(unsigned long ulPeripheral)
{
    //
    // Check the arguments.
    //
    ASSERT((ulPeripheral == SYSCTL_PERIPH_ADC) ||
           (ulPeripheral == SYSCTL_PERIPH_CAN0) ||
           (ulPeripheral == SYSCTL_PERIPH_CAN1) ||
           (ulPeripheral == SYSCTL_PERIPH_CAN2) ||
           (ulPeripheral == SYSCTL_PERIPH_COMP0) ||
           (ulPeripheral == SYSCTL_PERIPH_COMP1) ||
           (ulPeripheral == SYSCTL_PERIPH_COMP2) ||
           (ulPeripheral == SYSCTL_PERIPH_ETH) ||
           (ulPeripheral == SYSCTL_PERIPH_GPIOA) ||
           (ulPeripheral == SYSCTL_PERIPH_GPIOB) ||
           (ulPeripheral == SYSCTL_PERIPH_GPIOC) ||
           (ulPeripheral == SYSCTL_PERIPH_GPIOD) ||
           (ulPeripheral == SYSCTL_PERIPH_GPIOE) ||
           (ulPeripheral == SYSCTL_PERIPH_GPIOF) ||
           (ulPeripheral == SYSCTL_PERIPH_GPIOG) ||
           (ulPeripheral == SYSCTL_PERIPH_GPIOH) ||
           (ulPeripheral == SYSCTL_PERIPH_HIBERNATE) ||
           (ulPeripheral == SYSCTL_PERIPH_I2C0) ||
           (ulPeripheral == SYSCTL_PERIPH_I2C1) ||
           (ulPeripheral == SYSCTL_PERIPH_IEEE1588) ||
           (ulPeripheral == SYSCTL_PERIPH_MPU) ||
           (ulPeripheral == SYSCTL_PERIPH_PLL) ||
           (ulPeripheral == SYSCTL_PERIPH_PWM) ||
           (ulPeripheral == SYSCTL_PERIPH_QEI0) ||
           (ulPeripheral == SYSCTL_PERIPH_QEI1) ||
           (ulPeripheral == SYSCTL_PERIPH_SSI0) ||
           (ulPeripheral == SYSCTL_PERIPH_SSI1) ||
           (ulPeripheral == SYSCTL_PERIPH_TEMP) ||
           (ulPeripheral == SYSCTL_PERIPH_TIMER0) ||

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
奇米四色…亚洲| 中文字幕av免费专区久久| 久久av老司机精品网站导航| 欧美成人精品福利| 日本韩国一区二区| 久久国产欧美日韩精品| 亚洲精品国产精品乱码不99| 欧美一区二区三区人| 99久久精品免费看| 欧美精品在线视频| 91视频免费观看| 国产一区二区三区黄视频 | 亚洲精品成a人| 久久在线免费观看| 欧美日韩国产三级| 色综合天天天天做夜夜夜夜做| 调教+趴+乳夹+国产+精品| 中文字幕亚洲在| 欧美激情中文不卡| 中文字幕日韩欧美一区二区三区| 国产日韩欧美不卡| 久久久久国产精品麻豆 | 欧美日本精品一区二区三区| 色综合中文字幕国产| 蜜臀av一区二区在线观看| 午夜精品成人在线视频| 洋洋成人永久网站入口| 午夜精品一区在线观看| 天涯成人国产亚洲精品一区av| 亚洲在线中文字幕| 日av在线不卡| 激情深爱一区二区| 99久久99久久精品国产片果冻| 91视频一区二区| 欧美日韩国产综合一区二区| 欧美美女激情18p| 日韩一区二区三区精品视频| 久久综合久久综合亚洲| 国产精品午夜春色av| 视频在线在亚洲| 奇米精品一区二区三区在线观看| 国产91精品久久久久久久网曝门 | 欧美人狂配大交3d怪物一区 | 欧美放荡的少妇| 久久久亚洲高清| 亚洲线精品一区二区三区| 国产精品一区二区三区四区| 色哟哟国产精品免费观看| 欧美一区二区在线看| 欧美极品美女视频| 亚洲第一狼人社区| 成人久久视频在线观看| 日韩一级成人av| 亚洲一级电影视频| 色偷偷88欧美精品久久久| 久久久久99精品一区| 日韩高清在线一区| 不卡av免费在线观看| 久久噜噜亚洲综合| 午夜精品一区二区三区电影天堂| 国产激情视频一区二区在线观看| 制服丝袜中文字幕一区| 一区二区三区日韩精品视频| 国产精品99久久久久久久vr | 91精品国模一区二区三区| 亚洲免费资源在线播放| 久久99精品久久久久久国产越南 | 99久久99久久综合| 中文字幕在线免费不卡| 国产盗摄一区二区三区| 亚洲国产高清在线观看视频| 经典三级一区二区| 欧美精品三级日韩久久| 亚洲.国产.中文慕字在线| 欧美中文字幕一二三区视频| 成人免费一区二区三区视频| 91在线观看成人| 亚洲一区二区视频在线| 欧美日韩在线播放| 奇米精品一区二区三区在线观看| 欧美久久久久久蜜桃| 精品亚洲aⅴ乱码一区二区三区| 精品久久久久香蕉网| 国产99久久久国产精品潘金| 国产精品久久久久一区 | www.欧美亚洲| 日韩高清在线不卡| 国产亚洲成aⅴ人片在线观看| 不卡的av电影| 午夜欧美一区二区三区在线播放| 欧美理论片在线| 久久精品国产免费| 亚洲午夜免费电影| 日韩精品自拍偷拍| 日本韩国欧美一区二区三区| 男人操女人的视频在线观看欧美| 久久精品视频在线免费观看| 色天使色偷偷av一区二区| 免费观看久久久4p| 亚洲欧美电影一区二区| 欧美大片在线观看一区二区| 99精品久久只有精品| 韩国成人在线视频| 亚洲国产一区二区三区青草影视| 日本一区二区三区在线观看| 欧美一区二区私人影院日本| 99久久er热在这里只有精品66| 激情综合五月婷婷| 亚洲一二三四久久| 中文字幕亚洲在| 国产亚洲成年网址在线观看| 欧美一区二区播放| 欧美精品18+| 91黄视频在线观看| 色综合天天天天做夜夜夜夜做| 国产美女av一区二区三区| 日本欧美在线看| 亚洲二区在线视频| 视频在线观看一区| 日韩高清国产一区在线| 午夜久久久久久| 蜜臀久久久久久久| 久久99精品久久久| 麻豆91在线看| 国产美女视频一区| 色偷偷成人一区二区三区91 | 国产乱码精品一区二区三区忘忧草 | 国产在线看一区| 国产在线播放一区二区三区 | 国产高清不卡二三区| 国产资源精品在线观看| 成人app下载| 日本韩国欧美在线| 欧美日韩和欧美的一区二区| 精品久久五月天| 国产精品三级久久久久三级| 国产精品免费免费| 午夜精品国产更新| 国产一区二区日韩精品| 色天天综合久久久久综合片| 在线播放亚洲一区| 国产精品视频麻豆| 亚洲一区二区成人在线观看| 日韩高清在线一区| 91在线国产观看| 制服丝袜国产精品| 亚洲欧美日韩在线不卡| 激情成人综合网| 欧美性猛交一区二区三区精品| 精品久久人人做人人爱| 亚洲精品久久久蜜桃| 久久国内精品自在自线400部| av成人老司机| 日韩欧美一区电影| 亚洲一区二区三区四区中文字幕| 麻豆91精品91久久久的内涵| caoporn国产一区二区| 久久精品亚洲国产奇米99| 亚洲国产另类av| 欧美在线观看你懂的| 中文字幕中文字幕一区| 波多野结衣中文字幕一区 | 一区二区三区免费| 97精品国产露脸对白| 欧美激情一区二区三区全黄| 国产乱码精品一区二区三区av| 日韩一区二区三免费高清| 亚洲精品国产精品乱码不99| 99精品国产一区二区三区不卡| 欧美极品aⅴ影院| 国产大陆亚洲精品国产| 国产色产综合产在线视频| 久久99国产精品麻豆| 精品久久人人做人人爱| 精品一区二区在线观看| 日韩欧美123| 国产成人在线免费| 日韩一区在线免费观看| 91麻豆自制传媒国产之光| 亚洲一区欧美一区| 欧美性猛交一区二区三区精品| 日韩国产成人精品| 精品国产自在久精品国产| 国产精品99久久久久久宅男| 中文字幕在线播放不卡一区| 97精品久久久久中文字幕| 亚洲电影一区二区三区| 日韩一卡二卡三卡四卡| 国产成人亚洲综合a∨猫咪 | 亚洲人成亚洲人成在线观看图片| 91视视频在线直接观看在线看网页在线看| 亚洲精品福利视频网站| 欧美男男青年gay1069videost | 美女脱光内衣内裤视频久久网站| 久久久久99精品一区| 色综合久久88色综合天天6| 免费高清在线视频一区·| 国产亚洲欧美在线| 中文字幕av资源一区| 欧美三级电影精品|