游戏王对战板,目前code还是空的

Committer:
WFKnight
Date:
Thu Jun 21 13:51:43 2018 +0000
Revision:
0:9b3d4731edbb
UART, RTOS, LED

Who changed what in which revision?

UserRevisionLine numberNew contents of line
WFKnight 0:9b3d4731edbb 1 /* mbed Microcontroller Library
WFKnight 0:9b3d4731edbb 2 *******************************************************************************
WFKnight 0:9b3d4731edbb 3 * Copyright (c) 2014, STMicroelectronics
WFKnight 0:9b3d4731edbb 4 * All rights reserved.
WFKnight 0:9b3d4731edbb 5 *
WFKnight 0:9b3d4731edbb 6 * Redistribution and use in source and binary forms, with or without
WFKnight 0:9b3d4731edbb 7 * modification, are permitted provided that the following conditions are met:
WFKnight 0:9b3d4731edbb 8 *
WFKnight 0:9b3d4731edbb 9 * 1. Redistributions of source code must retain the above copyright notice,
WFKnight 0:9b3d4731edbb 10 * this list of conditions and the following disclaimer.
WFKnight 0:9b3d4731edbb 11 * 2. Redistributions in binary form must reproduce the above copyright notice,
WFKnight 0:9b3d4731edbb 12 * this list of conditions and the following disclaimer in the documentation
WFKnight 0:9b3d4731edbb 13 * and/or other materials provided with the distribution.
WFKnight 0:9b3d4731edbb 14 * 3. Neither the name of STMicroelectronics nor the names of its contributors
WFKnight 0:9b3d4731edbb 15 * may be used to endorse or promote products derived from this software
WFKnight 0:9b3d4731edbb 16 * without specific prior written permission.
WFKnight 0:9b3d4731edbb 17 *
WFKnight 0:9b3d4731edbb 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
WFKnight 0:9b3d4731edbb 19 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
WFKnight 0:9b3d4731edbb 20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
WFKnight 0:9b3d4731edbb 21 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
WFKnight 0:9b3d4731edbb 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
WFKnight 0:9b3d4731edbb 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
WFKnight 0:9b3d4731edbb 24 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
WFKnight 0:9b3d4731edbb 25 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
WFKnight 0:9b3d4731edbb 26 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
WFKnight 0:9b3d4731edbb 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
WFKnight 0:9b3d4731edbb 28 *******************************************************************************
WFKnight 0:9b3d4731edbb 29 */
WFKnight 0:9b3d4731edbb 30
WFKnight 0:9b3d4731edbb 31 #ifndef MBED_PERIPHERALPINS_H
WFKnight 0:9b3d4731edbb 32 #define MBED_PERIPHERALPINS_H
WFKnight 0:9b3d4731edbb 33
WFKnight 0:9b3d4731edbb 34 #include "pinmap.h"
WFKnight 0:9b3d4731edbb 35 #include "PeripheralNames.h"
WFKnight 0:9b3d4731edbb 36
WFKnight 0:9b3d4731edbb 37 //*** ADC ***
WFKnight 0:9b3d4731edbb 38 #ifdef DEVICE_ANALOGIN
WFKnight 0:9b3d4731edbb 39 extern const PinMap PinMap_ADC[];
WFKnight 0:9b3d4731edbb 40 extern const PinMap PinMap_ADC_Internal[];
WFKnight 0:9b3d4731edbb 41 #endif
WFKnight 0:9b3d4731edbb 42
WFKnight 0:9b3d4731edbb 43 //*** DAC ***
WFKnight 0:9b3d4731edbb 44 #ifdef DEVICE_ANALOGOUT
WFKnight 0:9b3d4731edbb 45 extern const PinMap PinMap_DAC[];
WFKnight 0:9b3d4731edbb 46 #endif
WFKnight 0:9b3d4731edbb 47
WFKnight 0:9b3d4731edbb 48 //*** I2C ***
WFKnight 0:9b3d4731edbb 49 #if DEVICE_I2C
WFKnight 0:9b3d4731edbb 50 extern const PinMap PinMap_I2C_SDA[];
WFKnight 0:9b3d4731edbb 51 extern const PinMap PinMap_I2C_SCL[];
WFKnight 0:9b3d4731edbb 52 #endif
WFKnight 0:9b3d4731edbb 53
WFKnight 0:9b3d4731edbb 54 //*** PWM ***
WFKnight 0:9b3d4731edbb 55 #if DEVICE_PWMOUT
WFKnight 0:9b3d4731edbb 56 extern const PinMap PinMap_PWM[];
WFKnight 0:9b3d4731edbb 57 #endif
WFKnight 0:9b3d4731edbb 58
WFKnight 0:9b3d4731edbb 59 //*** SERIAL ***
WFKnight 0:9b3d4731edbb 60 #ifdef DEVICE_SERIAL
WFKnight 0:9b3d4731edbb 61 extern const PinMap PinMap_UART_TX[];
WFKnight 0:9b3d4731edbb 62 extern const PinMap PinMap_UART_RX[];
WFKnight 0:9b3d4731edbb 63 #ifdef DEVICE_SERIAL_FC
WFKnight 0:9b3d4731edbb 64 extern const PinMap PinMap_UART_RTS[];
WFKnight 0:9b3d4731edbb 65 extern const PinMap PinMap_UART_CTS[];
WFKnight 0:9b3d4731edbb 66 #endif
WFKnight 0:9b3d4731edbb 67 #endif
WFKnight 0:9b3d4731edbb 68
WFKnight 0:9b3d4731edbb 69 //*** SPI ***
WFKnight 0:9b3d4731edbb 70 #ifdef DEVICE_SPI
WFKnight 0:9b3d4731edbb 71 extern const PinMap PinMap_SPI_MOSI[];
WFKnight 0:9b3d4731edbb 72 extern const PinMap PinMap_SPI_MISO[];
WFKnight 0:9b3d4731edbb 73 extern const PinMap PinMap_SPI_SCLK[];
WFKnight 0:9b3d4731edbb 74 extern const PinMap PinMap_SPI_SSEL[];
WFKnight 0:9b3d4731edbb 75 #endif
WFKnight 0:9b3d4731edbb 76
WFKnight 0:9b3d4731edbb 77 //*** CAN ***
WFKnight 0:9b3d4731edbb 78 #ifdef DEVICE_CAN
WFKnight 0:9b3d4731edbb 79 extern const PinMap PinMap_CAN_RD[];
WFKnight 0:9b3d4731edbb 80 extern const PinMap PinMap_CAN_TD[];
WFKnight 0:9b3d4731edbb 81 #endif
WFKnight 0:9b3d4731edbb 82
WFKnight 0:9b3d4731edbb 83 #endif