]>
git.gir.st - tmk_keyboard.git/blob - tmk_core/tool/mbed/mbed-sdk/libraries/mbed/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/PeripheralNames.h
1 /* mbed Microcontroller Library
2 * Copyright (c) 2006-2015 ARM Limited
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
26 UART_0
= (int)UART0_BASE
,
27 UART_1
= (int)UART1_BASE
,
28 UART_2
= (int)UART2_BASE
30 #define STDIO_UART_TX USBTX
31 #define STDIO_UART_RX USBRX
32 #define STDIO_UART UART_0
35 I2C_0
= (int)I2C0_BASE
,
36 I2C_1
= (int)I2C1_BASE
,
41 PWM_1
= (0 << TPM_SHIFT
) | (0), // FTM0 CH0
42 PWM_2
= (0 << TPM_SHIFT
) | (1), // FTM0 CH1
43 PWM_3
= (0 << TPM_SHIFT
) | (2), // FTM0 CH2
44 PWM_4
= (0 << TPM_SHIFT
) | (3), // FTM0 CH3
45 PWM_5
= (0 << TPM_SHIFT
) | (4), // FTM0 CH4
46 PWM_6
= (0 << TPM_SHIFT
) | (5), // FTM0 CH5
47 PWM_7
= (0 << TPM_SHIFT
) | (6), // FTM0 CH6
48 PWM_8
= (0 << TPM_SHIFT
) | (7), // FTM0 CH7
49 PWM_9
= (1 << TPM_SHIFT
) | (0), // FTM1 CH0
50 PWM_10
= (1 << TPM_SHIFT
) | (1), // FTM1 CH1
75 SPI_0
= (int)SPI0_BASE
,
76 SPI_1
= (int)SPI0_BASE
,
77 SPI_2
= (int)SPI0_BASE
,
78 SPI_3
= (int)SPI0_BASE
,
79 SPI_4
= (int)SPI0_BASE
,