LPC11U35 ADC Tick & USBSerial

Dependencies:   mbed

Dependents:   SmallDoseMeter_SingleCH_AE_lpc11u35_V1_00

Committer:
H_Tsunemoto
Date:
Mon Feb 19 08:51:33 2018 +0000
Revision:
0:871ab6846b18
test

Who changed what in which revision?

UserRevisionLine numberNew contents of line
H_Tsunemoto 0:871ab6846b18 1 /* mbed Microcontroller Library
H_Tsunemoto 0:871ab6846b18 2 * Copyright (c) 2006-2013 ARM Limited
H_Tsunemoto 0:871ab6846b18 3 *
H_Tsunemoto 0:871ab6846b18 4 * Licensed under the Apache License, Version 2.0 (the "License");
H_Tsunemoto 0:871ab6846b18 5 * you may not use this file except in compliance with the License.
H_Tsunemoto 0:871ab6846b18 6 * You may obtain a copy of the License at
H_Tsunemoto 0:871ab6846b18 7 *
H_Tsunemoto 0:871ab6846b18 8 * http://www.apache.org/licenses/LICENSE-2.0
H_Tsunemoto 0:871ab6846b18 9 *
H_Tsunemoto 0:871ab6846b18 10 * Unless required by applicable law or agreed to in writing, software
H_Tsunemoto 0:871ab6846b18 11 * distributed under the License is distributed on an "AS IS" BASIS,
H_Tsunemoto 0:871ab6846b18 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
H_Tsunemoto 0:871ab6846b18 13 * See the License for the specific language governing permissions and
H_Tsunemoto 0:871ab6846b18 14 * limitations under the License.
H_Tsunemoto 0:871ab6846b18 15 */
H_Tsunemoto 0:871ab6846b18 16 #ifndef MBED_PINMAP_H
H_Tsunemoto 0:871ab6846b18 17 #define MBED_PINMAP_H
H_Tsunemoto 0:871ab6846b18 18
H_Tsunemoto 0:871ab6846b18 19 #include "PinNames.h"
H_Tsunemoto 0:871ab6846b18 20
H_Tsunemoto 0:871ab6846b18 21 #ifdef __cplusplus
H_Tsunemoto 0:871ab6846b18 22 extern "C" {
H_Tsunemoto 0:871ab6846b18 23 #endif
H_Tsunemoto 0:871ab6846b18 24
H_Tsunemoto 0:871ab6846b18 25 typedef struct {
H_Tsunemoto 0:871ab6846b18 26 PinName pin;
H_Tsunemoto 0:871ab6846b18 27 int peripheral;
H_Tsunemoto 0:871ab6846b18 28 int function;
H_Tsunemoto 0:871ab6846b18 29 } PinMap;
H_Tsunemoto 0:871ab6846b18 30
H_Tsunemoto 0:871ab6846b18 31 void pin_function(PinName pin, int function);
H_Tsunemoto 0:871ab6846b18 32 void pin_mode (PinName pin, PinMode mode);
H_Tsunemoto 0:871ab6846b18 33
H_Tsunemoto 0:871ab6846b18 34 uint32_t pinmap_peripheral(PinName pin, const PinMap* map);
H_Tsunemoto 0:871ab6846b18 35 uint32_t pinmap_merge (uint32_t a, uint32_t b);
H_Tsunemoto 0:871ab6846b18 36 void pinmap_pinout (PinName pin, const PinMap *map);
H_Tsunemoto 0:871ab6846b18 37 uint32_t pinmap_find_peripheral(PinName pin, const PinMap* map);
H_Tsunemoto 0:871ab6846b18 38
H_Tsunemoto 0:871ab6846b18 39 #ifdef __cplusplus
H_Tsunemoto 0:871ab6846b18 40 }
H_Tsunemoto 0:871ab6846b18 41 #endif
H_Tsunemoto 0:871ab6846b18 42
H_Tsunemoto 0:871ab6846b18 43 #endif