1 /*******************************************************************************
\r
3 * This software is supplied by Renesas Electronics Corporation and is only
\r
4 * intended for use with Renesas products. No other uses are authorized. This
\r
5 * software is owned by Renesas Electronics Corporation and is protected under
\r
6 * all applicable laws, including copyright laws.
\r
7 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
\r
8 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
\r
9 * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
\r
10 * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
\r
11 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
\r
12 * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
\r
13 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
\r
14 * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
\r
15 * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
\r
16 * Renesas reserves the right, without notice, to make changes to this software
\r
17 * and to discontinue the availability of this software. By using this software,
\r
18 * you agree to the additional terms and conditions found by accessing the
\r
20 * http://www.renesas.com/disclaimer
\r
22 * Copyright (C) 2014 Renesas Electronics Corporation. All rights reserved.
\r
23 *******************************************************************************/
\r
24 /*******************************************************************************
\r
25 * System Name : RZ/T1 Init program
\r
26 * File Name : r_port.h
\r
28 * Device : R7S9100xx
\r
29 * Abstract : API for PORT function
\r
30 * Tool-Chain : IAR Embedded Workbench Ver.7.20
\r
32 * H/W Platform : Renesas Starter Kit for RZ/T1(Preliminary)
\r
33 * Description : PORT setting API of RZ/T1
\r
35 *******************************************************************************/
\r
36 /*******************************************************************************
\r
37 * History : DD.MM.YYYY Version Description
\r
39 *******************************************************************************/
\r
41 #ifndef _R_PORT_HEADER_
\r
42 #define _R_PORT_HEADER_
\r
44 /*******************************************************************************
\r
45 Includes <System Includes> , "Project Includes"
\r
46 *******************************************************************************/
\r
48 /*******************************************************************************
\r
50 *******************************************************************************/
\r
51 #define PORT_DIRECTION_HIZ (0)
\r
52 #define PORT_DIRECTION_INPUT (2)
\r
53 #define PORT_DIRECTION_OUTPUT (3)
\r
55 #define PORT_OUTPUT_LOW (0)
\r
56 #define PORT_OUTPUT_HIGH (1)
\r
58 #define PORT_MODE_GENERAL (0)
\r
59 #define PORT_MODE_PERIPHERAL (1)
\r
61 #define PORT_PULL_UPDOWN_DISABLE (0)
\r
62 #define PORT_PULL_DOWN (1)
\r
63 #define PORT_PULL_UP (2)
\r
65 #define PORT_P10_NORMAL_DRIVE (0)
\r
66 #define PORT_P10_HIGH_DRIVE (1)
\r
68 /*******************************************************************************
\r
69 Exported global variables and functions (to be accessed by other files)
\r
70 *******************************************************************************/
\r