forked

Committer:
Kojto
Date:
Thu Aug 03 13:13:39 2017 +0100
Revision:
170:19eb464bc2be
Parent:
150:02e0a0aed4ec
This updates the lib to the mbed lib v 148

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 150:02e0a0aed4ec 1 /* mbed Microcontroller Library
<> 150:02e0a0aed4ec 2 * Copyright (c) 2016 u-blox
<> 150:02e0a0aed4ec 3 *
<> 150:02e0a0aed4ec 4 * Licensed under the Apache License, Version 2.0 (the "License");
<> 150:02e0a0aed4ec 5 * you may not use this file except in compliance with the License.
<> 150:02e0a0aed4ec 6 * You may obtain a copy of the License at
<> 150:02e0a0aed4ec 7 *
<> 150:02e0a0aed4ec 8 * http://www.apache.org/licenses/LICENSE-2.0
<> 150:02e0a0aed4ec 9 *
<> 150:02e0a0aed4ec 10 * Unless required by applicable law or agreed to in writing, software
<> 150:02e0a0aed4ec 11 * distributed under the License is distributed on an "AS IS" BASIS,
<> 150:02e0a0aed4ec 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<> 150:02e0a0aed4ec 13 * See the License for the specific language governing permissions and
<> 150:02e0a0aed4ec 14 * limitations under the License.
<> 150:02e0a0aed4ec 15 */
<> 150:02e0a0aed4ec 16
<> 150:02e0a0aed4ec 17 #ifndef MBED_PERIPHERALNAMES_H
<> 150:02e0a0aed4ec 18 #define MBED_PERIPHERALNAMES_H
<> 150:02e0a0aed4ec 19
<> 150:02e0a0aed4ec 20 #include "cmsis.h"
<> 150:02e0a0aed4ec 21
<> 150:02e0a0aed4ec 22 #ifdef __cplusplus
<> 150:02e0a0aed4ec 23 extern "C" {
<> 150:02e0a0aed4ec 24 #endif
<> 150:02e0a0aed4ec 25
<> 150:02e0a0aed4ec 26 #define STDIO_UART_TX UART0_TX
<> 150:02e0a0aed4ec 27 #define STDIO_UART_RX UART0_RX
<> 150:02e0a0aed4ec 28
<> 150:02e0a0aed4ec 29 typedef enum {
<> 150:02e0a0aed4ec 30 SERIAL_CONFIG_UARTLP_RX_UART0_TX,
<> 150:02e0a0aed4ec 31 SERIAL_CONFIG_UART0_RX_UART0_TX,
<> 150:02e0a0aed4ec 32 SERIAL_CONFIG_UART1_RX_UART1_TX,
<> 150:02e0a0aed4ec 33 MAX_NUM_SERIAL_CONFIGS
<> 150:02e0a0aed4ec 34 } SerialConfig;
<> 150:02e0a0aed4ec 35
<> 150:02e0a0aed4ec 36 typedef enum {
<> 150:02e0a0aed4ec 37 PIN_FUNCTION_UNCLAIMED = 0,
<> 150:02e0a0aed4ec 38 PIN_FUNCTION_GPIO = 1,
<> 150:02e0a0aed4ec 39 PIN_FUNCTION_PWM0 = 2,
<> 150:02e0a0aed4ec 40 PIN_FUNCTION_PWM0B = 3,
<> 150:02e0a0aed4ec 41 PIN_FUNCTION_PWM1 = 4,
<> 150:02e0a0aed4ec 42 PIN_FUNCTION_PWM1B = 5,
<> 150:02e0a0aed4ec 43 PIN_FUNCTION_SSP0TXD = 6,
<> 150:02e0a0aed4ec 44 PIN_FUNCTION_SSP0RXD = 7,
<> 150:02e0a0aed4ec 45 PIN_FUNCTION_SSP0TRX = 8,
<> 150:02e0a0aed4ec 46 PIN_FUNCTION_SSP0CLK = 9,
<> 150:02e0a0aed4ec 47 PIN_FUNCTION_SSP0FSS = 10,
<> 150:02e0a0aed4ec 48 PIN_FUNCTION_SSP1CLK = 11,
<> 150:02e0a0aed4ec 49 PIN_FUNCTION_SSP1FSS = 12,
<> 150:02e0a0aed4ec 50 PIN_FUNCTION_SSP1TXD = 13,
<> 150:02e0a0aed4ec 51 PIN_FUNCTION_SSP1RXD = 14,
<> 150:02e0a0aed4ec 52 PIN_FUNCTION_SSP1TRX = 15,
<> 150:02e0a0aed4ec 53 PIN_FUNCTION_I2C0 = 16,
<> 150:02e0a0aed4ec 54 PIN_FUNCTION_I2C1 = 17,
<> 150:02e0a0aed4ec 55 PIN_FUNCTION_UART0_TXD = 18,
<> 150:02e0a0aed4ec 56 PIN_FUNCTION_UART0_TXIR = 19,
<> 150:02e0a0aed4ec 57 PIN_FUNCTION_UART0_O2 = 20,
<> 150:02e0a0aed4ec 58 PIN_FUNCTION_UART0_O1 = 21,
<> 150:02e0a0aed4ec 59 PIN_FUNCTION_UART0_RTS = 22,
<> 150:02e0a0aed4ec 60 PIN_FUNCTION_UART0_DTR = 23,
<> 150:02e0a0aed4ec 61 PIN_FUNCTION_UART0_RXD = 24,
<> 150:02e0a0aed4ec 62 PIN_FUNCTION_UART0_RXIR = 25,
<> 150:02e0a0aed4ec 63 PIN_FUNCTION_UART0_CTS = 26,
<> 150:02e0a0aed4ec 64 PIN_FUNCTION_UART0_DCD = 27,
<> 150:02e0a0aed4ec 65 PIN_FUNCTION_UART0_DSR = 28,
<> 150:02e0a0aed4ec 66 PIN_FUNCTION_UART0_RI = 29,
<> 150:02e0a0aed4ec 67 PIN_FUNCTION_UART1_TXD = 30,
<> 150:02e0a0aed4ec 68 PIN_FUNCTION_UART1_TXIR = 31,
<> 150:02e0a0aed4ec 69 PIN_FUNCTION_UART1_O2 = 32,
<> 150:02e0a0aed4ec 70 PIN_FUNCTION_UART1_O1 = 33,
<> 150:02e0a0aed4ec 71 PIN_FUNCTION_UART1_RTS = 34,
<> 150:02e0a0aed4ec 72 PIN_FUNCTION_UART1_DTR = 35,
<> 150:02e0a0aed4ec 73 PIN_FUNCTION_UART1_RXD = 36,
<> 150:02e0a0aed4ec 74 PIN_FUNCTION_UART1_RXIR = 37,
<> 150:02e0a0aed4ec 75 PIN_FUNCTION_UART1_CTS = 38,
<> 150:02e0a0aed4ec 76 PIN_FUNCTION_UART1_DCD = 39,
<> 150:02e0a0aed4ec 77 PIN_FUNCTION_UART1_DSR = 40,
<> 150:02e0a0aed4ec 78 PIN_FUNCTION_UART1_RI = 41,
<> 150:02e0a0aed4ec 79 PIN_FUNCTION_LP_UART = 42,
<> 150:02e0a0aed4ec 80 PIN_FUNCTION_MAX_NUMBER
<> 150:02e0a0aed4ec 81 } PinFunction;
<> 150:02e0a0aed4ec 82
<> 150:02e0a0aed4ec 83 #ifdef __cplusplus
<> 150:02e0a0aed4ec 84 }
<> 150:02e0a0aed4ec 85 #endif
<> 150:02e0a0aed4ec 86
<> 150:02e0a0aed4ec 87 #endif