Mouse code for the MacroRat
mbed-dev/targets/TARGET_RENESAS/TARGET_RZ_A1H/PeripheralNames.h@18:6a4db94011d3, 2017-05-14 (annotated)
- Committer:
- sahilmgandhi
- Date:
- Sun May 14 23:18:57 2017 +0000
- Revision:
- 18:6a4db94011d3
Publishing again
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sahilmgandhi | 18:6a4db94011d3 | 1 | /* mbed Microcontroller Library |
sahilmgandhi | 18:6a4db94011d3 | 2 | * Copyright (c) 2006-2013 ARM Limited |
sahilmgandhi | 18:6a4db94011d3 | 3 | * |
sahilmgandhi | 18:6a4db94011d3 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
sahilmgandhi | 18:6a4db94011d3 | 5 | * you may not use this file except in compliance with the License. |
sahilmgandhi | 18:6a4db94011d3 | 6 | * You may obtain a copy of the License at |
sahilmgandhi | 18:6a4db94011d3 | 7 | * |
sahilmgandhi | 18:6a4db94011d3 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
sahilmgandhi | 18:6a4db94011d3 | 9 | * |
sahilmgandhi | 18:6a4db94011d3 | 10 | * Unless required by applicable law or agreed to in writing, software |
sahilmgandhi | 18:6a4db94011d3 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
sahilmgandhi | 18:6a4db94011d3 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
sahilmgandhi | 18:6a4db94011d3 | 13 | * See the License for the specific language governing permissions and |
sahilmgandhi | 18:6a4db94011d3 | 14 | * limitations under the License. |
sahilmgandhi | 18:6a4db94011d3 | 15 | */ |
sahilmgandhi | 18:6a4db94011d3 | 16 | #ifndef MBED_PERIPHERALNAMES_H |
sahilmgandhi | 18:6a4db94011d3 | 17 | #define MBED_PERIPHERALNAMES_H |
sahilmgandhi | 18:6a4db94011d3 | 18 | |
sahilmgandhi | 18:6a4db94011d3 | 19 | #include "cmsis.h" |
sahilmgandhi | 18:6a4db94011d3 | 20 | #include "PinNames.h" |
sahilmgandhi | 18:6a4db94011d3 | 21 | |
sahilmgandhi | 18:6a4db94011d3 | 22 | #ifdef __cplusplus |
sahilmgandhi | 18:6a4db94011d3 | 23 | extern "C" { |
sahilmgandhi | 18:6a4db94011d3 | 24 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 25 | |
sahilmgandhi | 18:6a4db94011d3 | 26 | typedef enum { |
sahilmgandhi | 18:6a4db94011d3 | 27 | UART0, |
sahilmgandhi | 18:6a4db94011d3 | 28 | UART1, |
sahilmgandhi | 18:6a4db94011d3 | 29 | UART2, |
sahilmgandhi | 18:6a4db94011d3 | 30 | UART3, |
sahilmgandhi | 18:6a4db94011d3 | 31 | UART4, |
sahilmgandhi | 18:6a4db94011d3 | 32 | UART5, |
sahilmgandhi | 18:6a4db94011d3 | 33 | UART6, |
sahilmgandhi | 18:6a4db94011d3 | 34 | UART7, |
sahilmgandhi | 18:6a4db94011d3 | 35 | } UARTName; |
sahilmgandhi | 18:6a4db94011d3 | 36 | |
sahilmgandhi | 18:6a4db94011d3 | 37 | // PWMType & 1 == 1 then have to use PWDTR[12] == 1 |
sahilmgandhi | 18:6a4db94011d3 | 38 | typedef enum { |
sahilmgandhi | 18:6a4db94011d3 | 39 | PWM1A = 0, |
sahilmgandhi | 18:6a4db94011d3 | 40 | PWM1B, |
sahilmgandhi | 18:6a4db94011d3 | 41 | PWM1C, |
sahilmgandhi | 18:6a4db94011d3 | 42 | PWM1D, |
sahilmgandhi | 18:6a4db94011d3 | 43 | PWM1E, |
sahilmgandhi | 18:6a4db94011d3 | 44 | PWM1F, |
sahilmgandhi | 18:6a4db94011d3 | 45 | PWM1G, |
sahilmgandhi | 18:6a4db94011d3 | 46 | PWM1H, |
sahilmgandhi | 18:6a4db94011d3 | 47 | PWM2A = 0x10, |
sahilmgandhi | 18:6a4db94011d3 | 48 | PWM2B, |
sahilmgandhi | 18:6a4db94011d3 | 49 | PWM2C, |
sahilmgandhi | 18:6a4db94011d3 | 50 | PWM2D, |
sahilmgandhi | 18:6a4db94011d3 | 51 | PWM2E, |
sahilmgandhi | 18:6a4db94011d3 | 52 | PWM2F, |
sahilmgandhi | 18:6a4db94011d3 | 53 | PWM2G, |
sahilmgandhi | 18:6a4db94011d3 | 54 | PWM2H, |
sahilmgandhi | 18:6a4db94011d3 | 55 | } PWMType; |
sahilmgandhi | 18:6a4db94011d3 | 56 | |
sahilmgandhi | 18:6a4db94011d3 | 57 | typedef enum { |
sahilmgandhi | 18:6a4db94011d3 | 58 | TIOC0A = 0, |
sahilmgandhi | 18:6a4db94011d3 | 59 | TIOC0B, |
sahilmgandhi | 18:6a4db94011d3 | 60 | TIOC0C, |
sahilmgandhi | 18:6a4db94011d3 | 61 | TIOC0D, |
sahilmgandhi | 18:6a4db94011d3 | 62 | TIOC1A = 0x10, |
sahilmgandhi | 18:6a4db94011d3 | 63 | TIOC1B, |
sahilmgandhi | 18:6a4db94011d3 | 64 | TIOC2A = 0x20, |
sahilmgandhi | 18:6a4db94011d3 | 65 | TIOC2B, |
sahilmgandhi | 18:6a4db94011d3 | 66 | TIOC3A = 0x30, |
sahilmgandhi | 18:6a4db94011d3 | 67 | TIOC3B, |
sahilmgandhi | 18:6a4db94011d3 | 68 | TIOC3C, |
sahilmgandhi | 18:6a4db94011d3 | 69 | TIOC3D, |
sahilmgandhi | 18:6a4db94011d3 | 70 | TIOC4A = 0x40, |
sahilmgandhi | 18:6a4db94011d3 | 71 | TIOC4B, |
sahilmgandhi | 18:6a4db94011d3 | 72 | TIOC4C, |
sahilmgandhi | 18:6a4db94011d3 | 73 | TIOC4D, |
sahilmgandhi | 18:6a4db94011d3 | 74 | } MTU2_PWMType; |
sahilmgandhi | 18:6a4db94011d3 | 75 | |
sahilmgandhi | 18:6a4db94011d3 | 76 | typedef enum { |
sahilmgandhi | 18:6a4db94011d3 | 77 | PWM0_PIN = 0, |
sahilmgandhi | 18:6a4db94011d3 | 78 | PWM1_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 79 | PWM2_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 80 | PWM3_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 81 | PWM4_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 82 | PWM5_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 83 | PWM6_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 84 | PWM7_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 85 | PWM8_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 86 | PWM9_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 87 | PWM10_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 88 | PWM11_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 89 | PWM12_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 90 | PWM13_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 91 | MTU2_PWM0_PIN = 0x20, |
sahilmgandhi | 18:6a4db94011d3 | 92 | MTU2_PWM1_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 93 | MTU2_PWM2_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 94 | MTU2_PWM3_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 95 | MTU2_PWM4_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 96 | MTU2_PWM5_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 97 | MTU2_PWM6_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 98 | MTU2_PWM7_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 99 | MTU2_PWM8_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 100 | MTU2_PWM9_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 101 | MTU2_PWM10_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 102 | MTU2_PWM11_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 103 | MTU2_PWM12_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 104 | MTU2_PWM13_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 105 | MTU2_PWM14_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 106 | MTU2_PWM15_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 107 | MTU2_PWM16_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 108 | MTU2_PWM17_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 109 | MTU2_PWM18_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 110 | MTU2_PWM19_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 111 | MTU2_PWM20_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 112 | MTU2_PWM21_PIN, |
sahilmgandhi | 18:6a4db94011d3 | 113 | } PWMName; |
sahilmgandhi | 18:6a4db94011d3 | 114 | |
sahilmgandhi | 18:6a4db94011d3 | 115 | typedef enum { |
sahilmgandhi | 18:6a4db94011d3 | 116 | AN0= 0, |
sahilmgandhi | 18:6a4db94011d3 | 117 | AN1= 1, |
sahilmgandhi | 18:6a4db94011d3 | 118 | AN2= 2, |
sahilmgandhi | 18:6a4db94011d3 | 119 | AN3= 3, |
sahilmgandhi | 18:6a4db94011d3 | 120 | AN4= 4, |
sahilmgandhi | 18:6a4db94011d3 | 121 | AN5= 5, |
sahilmgandhi | 18:6a4db94011d3 | 122 | AN6= 6, |
sahilmgandhi | 18:6a4db94011d3 | 123 | AN7= 7, |
sahilmgandhi | 18:6a4db94011d3 | 124 | } ADCName; |
sahilmgandhi | 18:6a4db94011d3 | 125 | |
sahilmgandhi | 18:6a4db94011d3 | 126 | typedef enum { |
sahilmgandhi | 18:6a4db94011d3 | 127 | SPI_0 = 0, |
sahilmgandhi | 18:6a4db94011d3 | 128 | SPI_1, |
sahilmgandhi | 18:6a4db94011d3 | 129 | SPI_2, |
sahilmgandhi | 18:6a4db94011d3 | 130 | SPI_3, |
sahilmgandhi | 18:6a4db94011d3 | 131 | } SPIName; |
sahilmgandhi | 18:6a4db94011d3 | 132 | |
sahilmgandhi | 18:6a4db94011d3 | 133 | typedef enum { |
sahilmgandhi | 18:6a4db94011d3 | 134 | I2C_0 = 0, |
sahilmgandhi | 18:6a4db94011d3 | 135 | I2C_1, |
sahilmgandhi | 18:6a4db94011d3 | 136 | I2C_2, |
sahilmgandhi | 18:6a4db94011d3 | 137 | I2C_3 |
sahilmgandhi | 18:6a4db94011d3 | 138 | } I2CName; |
sahilmgandhi | 18:6a4db94011d3 | 139 | |
sahilmgandhi | 18:6a4db94011d3 | 140 | typedef enum { |
sahilmgandhi | 18:6a4db94011d3 | 141 | CAN_0 = 0, |
sahilmgandhi | 18:6a4db94011d3 | 142 | CAN_1, |
sahilmgandhi | 18:6a4db94011d3 | 143 | CAN_2, |
sahilmgandhi | 18:6a4db94011d3 | 144 | CAN_3, |
sahilmgandhi | 18:6a4db94011d3 | 145 | CAN_4 |
sahilmgandhi | 18:6a4db94011d3 | 146 | } CANName; |
sahilmgandhi | 18:6a4db94011d3 | 147 | |
sahilmgandhi | 18:6a4db94011d3 | 148 | |
sahilmgandhi | 18:6a4db94011d3 | 149 | #define STDIO_UART_TX USBTX |
sahilmgandhi | 18:6a4db94011d3 | 150 | #define STDIO_UART_RX USBRX |
sahilmgandhi | 18:6a4db94011d3 | 151 | #define STDIO_UART UART2 |
sahilmgandhi | 18:6a4db94011d3 | 152 | |
sahilmgandhi | 18:6a4db94011d3 | 153 | |
sahilmgandhi | 18:6a4db94011d3 | 154 | |
sahilmgandhi | 18:6a4db94011d3 | 155 | #ifdef __cplusplus |
sahilmgandhi | 18:6a4db94011d3 | 156 | } |
sahilmgandhi | 18:6a4db94011d3 | 157 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 158 | |
sahilmgandhi | 18:6a4db94011d3 | 159 | #endif |