LPC11U35 ADC Tick & USBSerial

Dependencies:   mbed

Dependents:   SmallDoseMeter_SingleCH_AE_lpc11u35_V1_00

Committer:
H_Tsunemoto
Date:
Mon Feb 19 09:09:52 2018 +0000
Revision:
1:b1a3be5f48ab
Parent:
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_GPIO_API_H
H_Tsunemoto 0:871ab6846b18 17 #define MBED_GPIO_API_H
H_Tsunemoto 0:871ab6846b18 18
H_Tsunemoto 0:871ab6846b18 19 #include "device.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 /* Set the given pin as GPIO
H_Tsunemoto 0:871ab6846b18 26 * @param pin The pin to be set as GPIO
H_Tsunemoto 0:871ab6846b18 27 * @return The GPIO port mask for this pin
H_Tsunemoto 0:871ab6846b18 28 **/
H_Tsunemoto 0:871ab6846b18 29 uint32_t gpio_set(PinName pin);
H_Tsunemoto 0:871ab6846b18 30
H_Tsunemoto 0:871ab6846b18 31 /* GPIO object */
H_Tsunemoto 0:871ab6846b18 32 void gpio_init(gpio_t *obj, PinName pin);
H_Tsunemoto 0:871ab6846b18 33
H_Tsunemoto 0:871ab6846b18 34 void gpio_mode (gpio_t *obj, PinMode mode);
H_Tsunemoto 0:871ab6846b18 35 void gpio_dir (gpio_t *obj, PinDirection direction);
H_Tsunemoto 0:871ab6846b18 36
H_Tsunemoto 0:871ab6846b18 37 void gpio_write(gpio_t *obj, int value);
H_Tsunemoto 0:871ab6846b18 38 int gpio_read (gpio_t *obj);
H_Tsunemoto 0:871ab6846b18 39
H_Tsunemoto 0:871ab6846b18 40 // the following set of functions are generic and are implemented in the common gpio.c file
H_Tsunemoto 0:871ab6846b18 41 void gpio_init_in(gpio_t* gpio, PinName pin);
H_Tsunemoto 0:871ab6846b18 42 void gpio_init_in_ex(gpio_t* gpio, PinName pin, PinMode mode);
H_Tsunemoto 0:871ab6846b18 43 void gpio_init_out(gpio_t* gpio, PinName pin);
H_Tsunemoto 0:871ab6846b18 44 void gpio_init_out_ex(gpio_t* gpio, PinName pin, int value);
H_Tsunemoto 0:871ab6846b18 45 void gpio_init_inout(gpio_t* gpio, PinName pin, PinDirection direction, PinMode mode, int value);
H_Tsunemoto 0:871ab6846b18 46
H_Tsunemoto 0:871ab6846b18 47 #ifdef __cplusplus
H_Tsunemoto 0:871ab6846b18 48 }
H_Tsunemoto 0:871ab6846b18 49 #endif
H_Tsunemoto 0:871ab6846b18 50
H_Tsunemoto 0:871ab6846b18 51 #endif