]> git.gir.st - tmk_keyboard.git/blob - tool/mbed/mbed-sdk/libraries/mbed/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/PeripheralNames.h
Squashed 'tmk_core/' changes from 7967731..b9e0ea0
[tmk_keyboard.git] / tool / mbed / mbed-sdk / libraries / mbed / targets / hal / TARGET_RENESAS / TARGET_RZ_A1H / PeripheralNames.h
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
23 extern "C" {
24 #endif
25
26 typedef 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
38 typedef 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
57 typedef enum {
58 PWM0_PIN,
59 PWM1_PIN,
60 PWM2_PIN,
61 PWM3_PIN,
62 PWM4_PIN,
63 PWM5_PIN,
64 PWM6_PIN,
65 PWM7_PIN,
66 PWM8_PIN,
67 PWM9_PIN,
68 PWM10_PIN,
69 PWM11_PIN,
70 PWM12_PIN,
71 PWM13_PIN,
72 } PWMName;
73
74 typedef enum {
75 AN0= 0,
76 AN1= 1,
77 AN2= 2,
78 AN3= 3,
79 AN4= 4,
80 AN5= 5,
81 AN6= 6,
82 AN7= 7,
83 } ADCName;
84
85 typedef enum {
86 SPI_0 = 0,
87 SPI_1,
88 SPI_2,
89 } SPIName;
90
91 typedef enum {
92 I2C_0 = 0,
93 I2C_1,
94 I2C_2,
95 I2C_3
96 } I2CName;
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
Imprint / Impressum