]> git.gir.st - tmk_keyboard.git/blob - tmk_core/tool/mbed/mbed-sdk/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/PeripheralNames.h
Merge commit '1fe4406f374291ab2e86e95a97341fd9c475fcb8'
[tmk_keyboard.git] / tmk_core / tool / mbed / mbed-sdk / libraries / mbed / targets / hal / TARGET_NORDIC / TARGET_MCU_NRF51822 / PeripheralNames.h
1 /* mbed Microcontroller Library
2 * Copyright (c) 2013 Nordic Semiconductor
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 #define STDIO_UART_TX TX_PIN_NUMBER
26 #define STDIO_UART_RX RX_PIN_NUMBER
27 #define STDIO_UART UART_0
28
29 typedef enum {
30 UART_0 = (int)NRF_UART0_BASE
31 } UARTName;
32
33
34 typedef enum {
35 SPI_0 = (int)NRF_SPI0_BASE,
36 SPI_1 = (int)NRF_SPI1_BASE,
37 SPIS = (int)NRF_SPIS1_BASE
38 } SPIName;
39
40 typedef enum {
41 PWM_1 = 0,
42 PWM_2
43 } PWMName;
44
45 typedef enum {
46 I2C_0 = (int)NRF_TWI0_BASE,
47 I2C_1 = (int)NRF_TWI1_BASE
48 } I2CName;
49
50 typedef enum {
51 ADC0_0 = (int)NRF_ADC_BASE
52 } ADCName;
53
54 #ifdef __cplusplus
55 }
56 #endif
57
58 #endif
Imprint / Impressum