]>
git.gir.st - tmk_keyboard.git/blob - 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
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 #ifndef MBED_PERIPHERALNAMES_H
17 #define MBED_PERIPHERALNAMES_H
25 #define STDIO_UART_TX TX_PIN_NUMBER
26 #define STDIO_UART_RX RX_PIN_NUMBER
27 #define STDIO_UART UART_0
30 UART_0
= (int)NRF_UART0_BASE
35 SPI_0
= (int)NRF_SPI0_BASE
,
36 SPI_1
= (int)NRF_SPI1_BASE
,
37 SPIS
= (int)NRF_SPIS1_BASE
46 I2C_0
= (int)NRF_TWI0_BASE
,
47 I2C_1
= (int)NRF_TWI1_BASE
51 ADC0_0
= (int)NRF_ADC_BASE