📄 hwapi_iomux.h
字号:
/*********************************************************************************
* Copyright (C),2004-2005, Fuzhou Rockchip Co.,Ltd.
* All Rights Reserved
* V1.00
* FileName : Hwapi_iomux.h
* Author : lzy
* Description:
* History :
* <author> <time> <version> <desc>
* lzy 07/9/14 1.0 ORG
*
$Log: hwapi_iomux.h,v $
Revision 1.4 2007/10/17 01:52:20 Huangxinyu
增加iomux接口
Revision 1.3 2007/10/15 09:16:21 Huangxinyu
根据RK27提交修改driver
Revision 1.2 2007/10/08 02:38:45 Lingzhaojun
添加版本自动注释脚本
*********************************************************************************/
#ifndef _HWAPI_IOMUX_H
#define _HWAPI_IOMUX_H
typedef enum
{
I2C_IOPORT,
I2C_External,
I2C_Internal,
I2C_CE
}I2CIO_TYPE_t;
typedef enum
{
UART0_GPIO_TYPE = 0,
UART0_LCD_TYPE = 1,
UART0_UART_TYPE = 2
}UART0IO_TYPE_t;
typedef enum
{
UART1_GPIO_TYPE = 0,
UART1_SD_TYPE = 1,
UART1_UART_TYPE = 2
}UART1IO_TYPE_t;
typedef enum
{
PWM_GPIO_TYPE = 0,
PWM_PWM_TYPE
}PWM_TYPE_t;
typedef enum
{
SD_GPIO_TYPE = 0,
SD_SD_TYPE = 1,
SD_SPI_TYPE = 2
}SD_TYPE_t;
typedef enum
{
VIPCLK_PF0_TYPE = 0,
VIPCLK_VIP_TYPE
}VIPCLK_TYPE_t;
typedef enum
{
VIP_VIP_TYPE = 0,
VIP_HADC_TYPE
}VIP_TYPE_t;
void IOMUX_PowerOnInit(void);
void IOMUX_SetI2CType(I2CIO_TYPE_t i2ctype);
void IOMUX_SetUart0Port(UART0IO_TYPE_t type);
void IOMUX_SetUart1Port(UART1IO_TYPE_t type);
void IOMUX_SetPwmPort(PWM_CH_t chn, PWM_TYPE_t type);
void IOMUX_SetI2SType(UINT32 codectype);
void IOMUX_SetSDPort(SD_TYPE_t type);
void IOMUX_SetVipType(VIP_TYPE_t type);
void IOMUX_SetVipClkType(VIPCLK_TYPE_t type);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -