source: asp3_tinet_ecnl_arm/trunk/asp3_dcre/mbed/targets/TARGET_RENESAS/TARGET_RZA1XX/TARGET_RZ_A1H/PeripheralNames.h@ 374

Last change on this file since 374 was 374, checked in by coas-nagasima, 5 years ago

mbed関連を更新
シリアルドライバをmbedのHALを使うよう変更
ファイルディスクリプタの処理を更新

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 1.8 KB
Line 
1/* mbed Microcontroller Library
2 * Copyright (c) 2006-2013 ARM Limited
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#ifndef MBED_PERIPHERALNAMES_H
17#define MBED_PERIPHERALNAMES_H
18
19#include "cmsis.h"
20#include "PinNames.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26typedef enum {
27 UART0,
28 UART1,
29 UART2,
30 UART3,
31 UART4,
32 UART5,
33 UART6,
34 UART7,
35} UARTName;
36
37typedef enum {
38 PWM_PWM1A = 0,
39 PWM_PWM1B,
40 PWM_PWM1C,
41 PWM_PWM1D,
42 PWM_PWM1E,
43 PWM_PWM1F,
44 PWM_PWM1G,
45 PWM_PWM1H,
46 PWM_PWM2A,
47 PWM_PWM2B,
48 PWM_PWM2C,
49 PWM_PWM2D,
50 PWM_PWM2E,
51 PWM_PWM2F,
52 PWM_PWM2G,
53 PWM_PWM2H,
54 PWM_TIOC0A = 0x20,
55 PWM_TIOC0C,
56 PWM_TIOC1A,
57 PWM_TIOC2A,
58 PWM_TIOC3A,
59 PWM_TIOC3C,
60 PWM_TIOC4A,
61 PWM_TIOC4C,
62} PWMName;
63
64typedef enum {
65 AN0= 0,
66 AN1= 1,
67 AN2= 2,
68 AN3= 3,
69 AN4= 4,
70 AN5= 5,
71 AN6= 6,
72 AN7= 7,
73} ADCName;
74
75typedef enum {
76 SPI_0 = 0,
77 SPI_1,
78 SPI_2,
79 SPI_3,
80 SPI_4,
81} SPIName;
82
83typedef enum {
84 I2C_0 = 0,
85 I2C_1,
86 I2C_2,
87 I2C_3,
88} I2CName;
89
90typedef enum {
91 CAN_0 = 0,
92 CAN_1,
93 CAN_2,
94 CAN_3,
95 CAN_4,
96} CANName;
97
98
99#define STDIO_UART_TX USBTX
100#define STDIO_UART_RX USBRX
101#define STDIO_UART UART2
102
103
104
105#ifdef __cplusplus
106}
107#endif
108
109#endif
Note: See TracBrowser for help on using the repository browser.