]> git.gir.st - tmk_keyboard.git/blob - tmk_core/tool/mbed/mbed-sdk/libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32F4XX/PeripheralNames.h
Merge commit '1fe4406f374291ab2e86e95a97341fd9c475fcb8'
[tmk_keyboard.git] / tmk_core / tool / mbed / mbed-sdk / libraries / mbed / targets / hal / TARGET_STM / TARGET_STM32F4XX / 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
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25 typedef enum {
26 UART_1 = (int)USART1_BASE,
27 UART_2 = (int)USART2_BASE,
28 UART_3 = (int)USART3_BASE,
29 UART_4 = (int)UART4_BASE,
30 UART_5 = (int)UART5_BASE,
31 UART_6 = (int)USART6_BASE
32 } UARTName;
33
34 typedef enum {
35 ADC0_0 = 0,
36 ADC0_1,
37 ADC0_2,
38 ADC0_3,
39 ADC0_4,
40 ADC0_5,
41 ADC0_6,
42 ADC0_7,
43 ADC0_8,
44 ADC0_9,
45 ADC0_10,
46 ADC0_11,
47 ADC0_12,
48 ADC0_13,
49 ADC0_14,
50 ADC0_15
51 } ADCName;
52
53 typedef enum {
54 DAC_0 = 0,
55 DAC_1
56 } DACName;
57
58 typedef enum {
59 SPI_1 = (int)SPI1_BASE,
60 SPI_2 = (int)SPI2_BASE,
61 SPI_3 = (int)SPI3_BASE,
62 } SPIName;
63
64 typedef enum {
65 I2C_1 = (int)I2C1_BASE,
66 I2C_2 = (int)I2C2_BASE,
67 I2C_3 = (int)I2C3_BASE
68 } I2CName;
69
70 typedef enum {
71 PWM_1 = 1,
72 PWM_2,
73 PWM_3,
74 PWM_4,
75 PWM_5,
76 PWM_6
77 } PWMName;
78
79 typedef enum {
80 CAN_1 = (int)CAN1_BASE,
81 CAN_2 = (int)CAN2_BASE
82 } CANName;
83
84 #ifdef __cplusplus
85 }
86 #endif
87
88 #endif
Imprint / Impressum