source: EcnlProtoTool/trunk/asp3_dcre/mbed/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/PeripheralNames.h@ 270

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

mruby版ECNLプロトタイピング・ツールを追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-chdr
File size: 2.5 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
37// PWMType & 1 == 1 then have to use PWDTR[12] == 1
38typedef enum {
39 PWM1A = 0,
40 PWM1B,
41 PWM1C,
42 PWM1D,
43 PWM1E,
44 PWM1F,
45 PWM1G,
46 PWM1H,
47 PWM2A = 0x10,
48 PWM2B,
49 PWM2C,
50 PWM2D,
51 PWM2E,
52 PWM2F,
53 PWM2G,
54 PWM2H,
55} PWMType;
56
57typedef enum {
58 TIOC0A = 0,
59 TIOC0B,
60 TIOC0C,
61 TIOC0D,
62 TIOC1A = 0x10,
63 TIOC1B,
64 TIOC2A = 0x20,
65 TIOC2B,
66 TIOC3A = 0x30,
67 TIOC3B,
68 TIOC3C,
69 TIOC3D,
70 TIOC4A = 0x40,
71 TIOC4B,
72 TIOC4C,
73 TIOC4D,
74} MTU2_PWMType;
75
76typedef enum {
77 PWM0_PIN = 0,
78 PWM1_PIN,
79 PWM2_PIN,
80 PWM3_PIN,
81 PWM4_PIN,
82 PWM5_PIN,
83 PWM6_PIN,
84 PWM7_PIN,
85 PWM8_PIN,
86 PWM9_PIN,
87 PWM10_PIN,
88 PWM11_PIN,
89 PWM12_PIN,
90 PWM13_PIN,
91 MTU2_PWM0_PIN = 0x20,
92 MTU2_PWM1_PIN,
93 MTU2_PWM2_PIN,
94 MTU2_PWM3_PIN,
95 MTU2_PWM4_PIN,
96 MTU2_PWM5_PIN,
97 MTU2_PWM6_PIN,
98 MTU2_PWM7_PIN,
99 MTU2_PWM8_PIN,
100 MTU2_PWM9_PIN,
101 MTU2_PWM10_PIN,
102 MTU2_PWM11_PIN,
103 MTU2_PWM12_PIN,
104 MTU2_PWM13_PIN,
105 MTU2_PWM14_PIN,
106 MTU2_PWM15_PIN,
107 MTU2_PWM16_PIN,
108 MTU2_PWM17_PIN,
109 MTU2_PWM18_PIN,
110 MTU2_PWM19_PIN,
111 MTU2_PWM20_PIN,
112 MTU2_PWM21_PIN,
113} PWMName;
114
115typedef enum {
116 AN0= 0,
117 AN1= 1,
118 AN2= 2,
119 AN3= 3,
120 AN4= 4,
121 AN5= 5,
122 AN6= 6,
123 AN7= 7,
124} ADCName;
125
126typedef enum {
127 SPI_0 = 0,
128 SPI_1,
129 SPI_2,
130} SPIName;
131
132typedef enum {
133 I2C_0 = 0,
134 I2C_1,
135 I2C_2,
136 I2C_3
137} I2CName;
138
139typedef enum {
140 CAN_0 = 0,
141 CAN_1,
142 CAN_2,
143 CAN_3,
144 CAN_4
145} CANName;
146
147
148#define STDIO_UART_TX USBTX
149#define STDIO_UART_RX USBRX
150#define STDIO_UART UART2
151
152
153
154#ifdef __cplusplus
155}
156#endif
157
158#endif
Note: See TracBrowser for help on using the repository browser.