Vishal Bhoj | 82c8071 | 2015-12-15 21:13:33 +0530 | [diff] [blame^] | 1 | /***************************************************************************
|
| 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"
|
| 17 | extern void D01_PortInit( U32 ulPortNo, U32 ulPinNo, U32 ulDir, U32 ulOpenDrain );
|
| 18 | extern void D01_SetPortLevel( U32 ulPortNo, U32 ulPinNo, U32 ulLevel );
|
| 19 | extern U32 D01_GetPortLevel( U32 ulPortNo, U32 ulPinNo );
|
| 20 |
|
| 21 | #define BSP_OUTPUT 0
|
| 22 | #define BSP_INPUT 1
|
| 23 |
|
| 24 | void PortInit( U32 ulPortNo, U32 ulPinNo, U32 ulDir, U32 ulOpenDrain )
|
| 25 | {
|
| 26 | D01_PortInit(ulPortNo, ulPinNo, ulDir,ulOpenDrain);
|
| 27 | }
|
| 28 |
|
| 29 | void SetPortLevel( U32 ulPortNo, U32 ulPinNo, U32 ulLevel)
|
| 30 | {
|
| 31 | /*lint -e553*/
|
| 32 | D01_SetPortLevel(ulPortNo, ulPinNo, ulLevel);
|
| 33 | }
|
| 34 | U32 GetPortLevel( U32 ulPortNo, U32 ulPinNo )
|
| 35 | {
|
| 36 | return D01_GetPortLevel(ulPortNo, ulPinNo);
|
| 37 | }
|
| 38 |
|