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

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

?? pio.h

?? AT91SAM9263的USB Device端口驅動
?? H
字號:
/* ----------------------------------------------------------------------------
 *         ATMEL Microcontroller Software Support  -  ROUSSET  -
 * ----------------------------------------------------------------------------
 * Copyright (c) 2006, Atmel Corporation

 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 * 
 * - Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the disclaiimer below.
 * 
 * - Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the disclaimer below in the documentation and/or
 * other materials provided with the distribution. 
 * 
 * Atmel's name may not be used to endorse or promote products derived from
 * this software without specific prior written permission. 
 * 
 * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
 * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 * ----------------------------------------------------------------------------
 */

//------------------------------------------------------------------------------
/// \dir
/// !Purpose
///
///     Definition of methods and structures for using PIOs in a transparent
///     way. The main purpose is to allow portability between several boards.
///
/// !Usage
///
///     -# To configure and use pins, see pio.h.
///     -# To enable and use interrupt generation on PIO status change, see
///      pio_it.h.
//------------------------------------------------------------------------------

//------------------------------------------------------------------------------
/// \unit
/// !Purpose
/// 
/// Simple & portable usage of PIO pins.
/// 
/// !Usage
/// 
/// -# Define a constant pin description array such as the following one:
///    \code
///       const Pin at91board_dbgu[] = {
///            {AT91C_BASE_PIOA, (1 << 30), PIO_PERIPH_A, PIO_DEFAULT},
///            {AT91C_BASE_PIOA, (1 << 31), PIO_PERIPH_A, PIO_DEFAULT},
///        };
///    \endcode
///    Alternatively, constants defined in the piodefs.h header file of the
///    board module can be used:
///    \code
///    const Pin at91board_dbgu[] = {PINS_DBGU};
///    const Pin at91board_usart[] = {PIN_USART0_RXD, PIN_USART0_TXD};
///    \endcode
///    It is possible to group multiple pins if they share the same
///    attributes, to save memory. Here is the previous DBGU example
///    rewritten in such a way:
///    \code
///    const Pin at91board_dbgu[] = {
///         {AT91C_BASE_PIOA, 0xC0000000, PIO_PERIPH_A, PIO_DEFAULT}
///    };
///    \endcode
/// -# For pins configured as inputs, the PIO controller must be enabled
///    in the PMC (*enabled by PIO_Configure at the moment*).
/// -# Configure a pin array by calling PIO_Configure, using
///    the PIO_LISTSIZE macro to calculate the array size if needed. Do not
///    forget to check the return value for any error.
/// -# Set and get the value of a pin using the PIO_Set, PIO_Clear and
///    PIO_Get methods.
//------------------------------------------------------------------------------
 
#ifndef PIO_H
#define PIO_H

//------------------------------------------------------------------------------
//         Headers
//------------------------------------------------------------------------------

#include <board.h>

//------------------------------------------------------------------------------
//         Definitions
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
/// \page "Pin types" 
/// This page lists the available types for a Pin instance (in its type field).
/// !Types
/// - PIO_PERIPH_A 
/// - PIO_PERIPH_B 
/// - PIO_INPUT 
/// - PIO_OUTPUT_0 
/// - PIO_OUTPUT_1 

/// The pin is controlled by the associated signal of peripheral A.
#define PIO_PERIPH_A                0
/// The pin is controlled by the associated signal of peripheral B.
#define PIO_PERIPH_B                1
/// The pin is an input.
#define PIO_INPUT                   2
/// The pin is an output and has a default level of 0.
#define PIO_OUTPUT_0                3
/// The pin is an output and has a default level of 1.
#define PIO_OUTPUT_1                4
//------------------------------------------------------------------------------

//------------------------------------------------------------------------------
/// \page "Pin attributes"
/// This page lists the valid values for the attribute field of a Pin instance.
/// !Attributes
/// - PIO_DEFAULT
/// - PIO_PULLUP
/// - PIO_DEGLITCH
/// - PIO_OPENDRAIN

/// Default pin configuration (no attribute).
#define PIO_DEFAULT                 (0 << 0)
/// The internal pin pull-up is active.
#define PIO_PULLUP                  (1 << 0)
/// The internal glitch filter is active.
#define PIO_DEGLITCH                (1 << 1)
/// The pin is open-drain.
#define PIO_OPENDRAIN               (1 << 2)
//------------------------------------------------------------------------------

/// Calculates the size of a Pin instances array. The array must be local (i.e.
/// not a pointer), otherwise the computation will not be correct.
#define PIO_LISTSIZE(list)    (sizeof(list) / sizeof(Pin))

//------------------------------------------------------------------------------
//         Types
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
/// Describes the type and attribute of one PIO pin or a group of similar pins.
typedef struct {
    /// Bitmask indicating which pin(s) to configure.
    unsigned int mask; 
    /// Pointer to the PIO controller which has the pin(s).
    AT91S_PIO    *pio;
    /// Peripheral ID of the PIO controller which has the pin(s).
    unsigned char id;
    /// Pin type (see "Pin types").
    unsigned char type;
    /// Pin attribute (see "Pin attributes").
    unsigned char attribute;
} Pin;
//------------------------------------------------------------------------------

//------------------------------------------------------------------------------
//         Exported functions
//------------------------------------------------------------------------------
extern unsigned char PIO_Configure(const Pin *list, unsigned int size);
extern void PIO_Set(const Pin *pin );
extern void PIO_Clear(const Pin *pin);
extern unsigned char PIO_Get(const Pin *pin);
extern unsigned int PIO_GetISR(const Pin *pin);
extern unsigned char PIO_GetOutputDataStatus(const Pin *pin);

#endif //#ifndef PIO_H

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91小视频在线观看| 久久亚洲精品小早川怜子| 激情综合网av| 美女视频一区二区| 蜜桃av噜噜一区| 久久丁香综合五月国产三级网站| 午夜久久久久久| 奇米精品一区二区三区在线观看一| 亚洲国产成人va在线观看天堂| 亚洲综合免费观看高清在线观看| 亚洲一区二三区| 午夜不卡在线视频| 麻豆传媒一区二区三区| 精彩视频一区二区| 白白色亚洲国产精品| 91在线porny国产在线看| 色激情天天射综合网| 欧美日韩精品欧美日韩精品一综合| 欧美性色aⅴ视频一区日韩精品| 欧美日韩国产另类不卡| 欧美一区二区视频免费观看| 欧美不卡一区二区三区| 国产日韩三级在线| 亚洲精品网站在线观看| 偷拍一区二区三区四区| 狠狠色丁香婷婷综合| 成人高清在线视频| 欧美偷拍一区二区| 久久综合成人精品亚洲另类欧美 | 久久精品99国产精品| 国产精品一区在线观看乱码 | 亚洲欧美日韩一区二区三区在线观看| 樱花草国产18久久久久| 蜜臀av一级做a爰片久久| 成人福利电影精品一区二区在线观看| 91激情五月电影| 欧美mv日韩mv国产网站| 国产精品国产三级国产a| 偷拍日韩校园综合在线| 成人精品免费看| 欧美一区二区在线免费播放| 亚洲视频中文字幕| 精品一区二区三区影院在线午夜| 色综合 综合色| 久久精品无码一区二区三区| 亚洲国产综合色| 成人免费看黄yyy456| 日韩一级片在线播放| 亚洲欧洲精品天堂一级 | 99精品视频在线播放观看| 欧美一区二区在线播放| 亚洲激情图片一区| 国产不卡视频一区二区三区| 欧美丰满嫩嫩电影| 国产精品国产三级国产有无不卡| 精品一区二区三区久久久| 欧美另类z0zxhd电影| 18成人在线观看| 国产精品香蕉一区二区三区| 69久久夜色精品国产69蝌蚪网| 亚洲素人一区二区| 国产精品99久久久久久似苏梦涵| 91精品国产91热久久久做人人| 一区二区三区久久久| 97久久超碰国产精品| 国产欧美视频在线观看| 国内不卡的二区三区中文字幕| 欧洲日韩一区二区三区| 亚洲女人****多毛耸耸8| 高潮精品一区videoshd| 久久久另类综合| 久久69国产一区二区蜜臀| 欧美二区乱c少妇| 日韩国产高清影视| 欧美顶级少妇做爰| 免费成人av在线播放| 91精品国产免费久久综合| 日本在线观看不卡视频| 日韩一区二区三区观看| 日韩专区一卡二卡| 久久综合久久综合亚洲| 精品亚洲国产成人av制服丝袜| 日韩一级大片在线| 国产一二精品视频| 国产日本欧洲亚洲| av资源网一区| 亚洲黄色尤物视频| 精品视频一区二区不卡| 日韩电影在线免费观看| 日韩亚洲欧美综合| 国产精品一区二区在线播放| 中文字幕av一区 二区| 91亚洲国产成人精品一区二区三| 亚洲一二三专区| 91精品国产综合久久精品性色| 日韩影院免费视频| 久久九九久久九九| 91在线视频官网| 日本va欧美va精品发布| 久久亚洲私人国产精品va媚药| 成人激情免费电影网址| 亚洲综合激情网| 日韩一二三四区| 成人免费黄色在线| 亚洲chinese男男1069| 欧美va在线播放| 一本到不卡精品视频在线观看| 亚瑟在线精品视频| 日本一区二区三区高清不卡 | 看电影不卡的网站| 国产精品灌醉下药二区| 欧美精品1区2区3区| 国产成人精品三级麻豆| 亚洲一二三四久久| 久久嫩草精品久久久精品| 色婷婷国产精品久久包臀| 日本欧美大码aⅴ在线播放| 国产精品灌醉下药二区| 精品国精品国产| 欧美色电影在线| 国产91高潮流白浆在线麻豆| 偷拍一区二区三区四区| 中文字幕一区二区三区乱码在线 | 国产制服丝袜一区| 国产精品护士白丝一区av| 91精品国产91久久综合桃花| 一本大道久久a久久精二百 | 色婷婷一区二区三区四区| 久久精品国产久精国产| 亚洲一区二区三区小说| 国产精品伦理一区二区| 337p粉嫩大胆色噜噜噜噜亚洲| 欧美日韩视频在线一区二区| 成人国产在线观看| 国产成人啪免费观看软件| 日本成人超碰在线观看| 亚洲欧美一区二区三区久本道91 | 日本不卡一区二区| 樱花影视一区二区| 亚洲美女屁股眼交| 国产精品电影院| 国产亚洲一区二区在线观看| 日韩午夜在线影院| 777奇米成人网| 欧美三级电影在线看| 91精彩视频在线观看| 91在线免费视频观看| 99久久免费精品高清特色大片| 国产成人综合亚洲91猫咪| 六月丁香综合在线视频| 日韩高清不卡一区二区| 丝袜国产日韩另类美女| 偷拍亚洲欧洲综合| 免费观看成人鲁鲁鲁鲁鲁视频| 亚洲不卡在线观看| 免费的国产精品| 蜜桃视频在线观看一区| 激情综合色播激情啊| 国产麻豆精品theporn| 国产精品66部| 成人午夜激情片| 99在线精品免费| 91日韩一区二区三区| 91久久国产最好的精华液| 欧美视频中文字幕| 欧美一区二区三区喷汁尤物| 91精品国产综合久久国产大片| 555夜色666亚洲国产免| 欧美电影免费观看高清完整版在线| 日韩一级免费一区| 久久久精品免费网站| 中文字幕一区在线观看| 亚洲精品成人a在线观看| 亚洲一区二区综合| 偷拍日韩校园综合在线| 久久国产福利国产秒拍| av在线免费不卡| 欧美网站一区二区| 久久久久88色偷偷免费| 一区二区三区中文在线观看| 爽好多水快深点欧美视频| 国产一区二区在线影院| 91视频观看视频| 91麻豆精品国产91久久久久久久久| 亚洲精品一区在线观看| 中文字幕一区二区三区不卡在线| 亚洲欧美二区三区| 韩国v欧美v日本v亚洲v| 99久久精品国产网站| 欧美一区二区三区色| 中文幕一区二区三区久久蜜桃| 亚洲国产日韩a在线播放性色| 美女一区二区在线观看| eeuss鲁片一区二区三区在线看| 欧美美女一区二区| 久久久激情视频| 婷婷丁香久久五月婷婷| 成人av在线一区二区三区| 欧美一区二区三区公司| 亚洲天堂2014|