blob: ce48829581dbb84c138babe44df1779efb27ee59 [file] [log] [blame]
Vishal Bhoj82c80712015-12-15 21:13:33 +05301/***************************************************************************
2#
3#
4# Copyright (c) Huawei Technologies Co., Ltd. 2013. All rights reserved.
5# This program and the accompanying materials
6# are licensed and made available under the terms and conditions of the BSD License
7# which accompanies this distribution. The full text of the license may be found at
8# http://opensource.org/licenses/bsd-license.php
9#
10# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12#
13#**/
14
15#include "PinIo_Api.h"
16#include "config.h"
17extern void D01_PortInit( U32 ulPortNo, U32 ulPinNo, U32 ulDir, U32 ulOpenDrain );
18extern void D01_SetPortLevel( U32 ulPortNo, U32 ulPinNo, U32 ulLevel );
19extern U32 D01_GetPortLevel( U32 ulPortNo, U32 ulPinNo );
20
21#define BSP_OUTPUT 0
22#define BSP_INPUT 1
23
24void PortInit( U32 ulPortNo, U32 ulPinNo, U32 ulDir, U32 ulOpenDrain )
25{
26 D01_PortInit(ulPortNo, ulPinNo, ulDir,ulOpenDrain);
27}
28
29void SetPortLevel( U32 ulPortNo, U32 ulPinNo, U32 ulLevel)
30{
31 /*lint -e553*/
32 D01_SetPortLevel(ulPortNo, ulPinNo, ulLevel);
33}
34U32 GetPortLevel( U32 ulPortNo, U32 ulPinNo )
35{
36 return D01_GetPortLevel(ulPortNo, ulPinNo);
37}
38