1 /* 2 * Copyright (C) 2017 C-SKY Microsystems Co., Ltd. All rights reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /****************************************************************************** 18 * @file pin_name.h 19 * @brief header file for the pin_name 20 * @version V1.0 21 * @date 02. June 2017 22 ******************************************************************************/ 23 #ifndef _PINNAMES_H 24 #define _PINNAMES_H 25 26 27 #ifdef __cplusplus 28 extern "C" { 29 #endif 30 31 32 typedef enum { 33 PA0 = 0, 34 PA1, 35 PA2, 36 PA3, 37 PA4, 38 PA5, 39 PA6, 40 PA7, 41 PAD_UART0_SIN, 42 PAD_UART0_SOUT 43 } 44 pin_name_e; 45 46 typedef enum { 47 PORTA = 0, 48 PORTB = 1, 49 PORTC = 2, 50 PORTD = 3, 51 PORTE = 4, 52 PORTF = 5, 53 PORTG = 6, 54 PORTH = 7 55 } port_name_e; 56 57 typedef enum { 58 NONE = 0 59 } pin_func_e; 60 61 #ifdef __cplusplus 62 } 63 #endif 64 65 #endif 66