📄 oal_iomux.h
字号:
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
//------------------------------------------------------------------------------
//
// Copyright (C) 2004, Freescale Semiconductor, Inc. All Rights Reserved
// THIS SOURCE CODE IS CONFIDENTIAL AND PROPRIETARY AND MAY NOT
// BE USED OR DISTRIBUTED WITHOUT THE WRITTEN PERMISSION OF
// FREESCALE SEMICONDUCTOR, INC.
//
//------------------------------------------------------------------------------
//
// File: oal_iomux.h
//
// This header file defines the custom IOMUX OAL module. This module implements
// function used to configure and manage the SoC IOMUX.
//
//------------------------------------------------------------------------------
#ifndef __OAL_IOMUX_H
#define __OAL_IOMUX_H
#if __cplusplus
extern "C" {
#endif
#define OAL_IOMUX_SET_MUX(pIOMUX, pin, outMux, inMux) \
OUTREG32(&pIOMUX->SW_MUX_CTL[IOMUX_MUX_REG(pin)], IOMUX_MUX_BFINS(pin, INREG32(&pIOMUX->SW_MUX_CTL[IOMUX_MUX_REG(pin)]), outMux | inMux))
#define OAL_IOMUX_SET_PAD(pIOMUX, pin, slew, drive, mode, trig, pull) \
OUTREG32(&pIOMUX->SW_PAD_CTL[IOMUX_PAD_REG(pad)], IOMUX_PAD_BFINS(pad, INREG32(&pIOMUX->SW_PAD_CTL[IOMUX_PAD_REG(pad)]), slew | drive | mode | trig | pull))
//------------------------------------------------------------------------------
//
// Function: OALIoMuxXxx
//
// These functions implement OAL support for the IOMUX.
//
BOOL OALIoMuxRequestPinout(UINT32 pinout);
BOOL OALIoMuxReleasePinout(UINT32 pinout);
#if __cplusplus
}
#endif
#endif //__OAL_IOMUX_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -