mbed libraries for KL25Z

Dependents:   FRDM_RGBLED

Committer:
emilmont
Date:
Fri Nov 09 11:33:53 2012 +0000
Revision:
8:c14af7958ef5
Parent:
7:73c5efe92a6c
Child:
9:663789d7729f
SPI driver; ADC driver; DAC driver; microlib support; general bugfixing

Who changed what in which revision?

UserRevisionLine numberNew contents of line
emilmont 2:e9a661555b58 1 /* mbed Microcontroller Library - gpio_api
emilmont 2:e9a661555b58 2 * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
emilmont 7:73c5efe92a6c 3 */
emilmont 2:e9a661555b58 4 #ifndef MBED_GPIO_API_H
emilmont 2:e9a661555b58 5 #define MBED_GPIO_API_H
emilmont 2:e9a661555b58 6
emilmont 8:c14af7958ef5 7 #include "device.h"
emilmont 2:e9a661555b58 8
emilmont 2:e9a661555b58 9 #ifdef __cplusplus
emilmont 2:e9a661555b58 10 extern "C" {
emilmont 7:73c5efe92a6c 11 #endif
emilmont 2:e9a661555b58 12
emilmont 7:73c5efe92a6c 13 /* Set the given pin as GPIO
emilmont 7:73c5efe92a6c 14 * @param pin The pin to be set as GPIO
emilmont 7:73c5efe92a6c 15 * @return The GPIO port mask for this pin
emilmont 7:73c5efe92a6c 16 **/
emilmont 8:c14af7958ef5 17 uint32_t gpio_set(PinName pin);
emilmont 2:e9a661555b58 18
emilmont 7:73c5efe92a6c 19 /* GPIO object */
emilmont 7:73c5efe92a6c 20 void gpio_init(gpio_object *obj, PinName pin, PinDirection direction);
emilmont 2:e9a661555b58 21 void gpio_mode(gpio_object *obj, PinMode mode);
emilmont 2:e9a661555b58 22 void gpio_dir (gpio_object *obj, PinDirection direction);
emilmont 2:e9a661555b58 23
emilmont 2:e9a661555b58 24 #ifdef __cplusplus
emilmont 2:e9a661555b58 25 }
emilmont 7:73c5efe92a6c 26 #endif
emilmont 2:e9a661555b58 27
emilmont 7:73c5efe92a6c 28 #endif