lol

Dependencies:   MMA8451Q

Fork of Application by Mateusz Kowalik

Committer:
danix
Date:
Sun Jan 21 22:28:30 2018 +0000
Revision:
12:3a30cdffa27c
Parent:
10:41552d038a69
Working acelerometer and mouse

Who changed what in which revision?

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