A simple 128x32 graphical LCD program to quickstart with LCD on ARM mbed IoT Starter Kit. This requires mbed Applciation Shield with FRDM-K64F platform.
mbed/gpio_irq_api.h@0:60d829a0353a, 2015-04-11 (annotated)
- Committer:
- tushki7
- Date:
- Sat Apr 11 04:08:13 2015 +0000
- Revision:
- 0:60d829a0353a
A simple 128x32 LCD program to quickstart with LCD on ARM mbed IoT Starter kit. Mbed Application Shield is required if using FRDM-K64F platform.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tushki7 | 0:60d829a0353a | 1 | /* mbed Microcontroller Library |
tushki7 | 0:60d829a0353a | 2 | * Copyright (c) 2006-2013 ARM Limited |
tushki7 | 0:60d829a0353a | 3 | * |
tushki7 | 0:60d829a0353a | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
tushki7 | 0:60d829a0353a | 5 | * you may not use this file except in compliance with the License. |
tushki7 | 0:60d829a0353a | 6 | * You may obtain a copy of the License at |
tushki7 | 0:60d829a0353a | 7 | * |
tushki7 | 0:60d829a0353a | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
tushki7 | 0:60d829a0353a | 9 | * |
tushki7 | 0:60d829a0353a | 10 | * Unless required by applicable law or agreed to in writing, software |
tushki7 | 0:60d829a0353a | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
tushki7 | 0:60d829a0353a | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
tushki7 | 0:60d829a0353a | 13 | * See the License for the specific language governing permissions and |
tushki7 | 0:60d829a0353a | 14 | * limitations under the License. |
tushki7 | 0:60d829a0353a | 15 | */ |
tushki7 | 0:60d829a0353a | 16 | #ifndef MBED_GPIO_IRQ_API_H |
tushki7 | 0:60d829a0353a | 17 | #define MBED_GPIO_IRQ_API_H |
tushki7 | 0:60d829a0353a | 18 | |
tushki7 | 0:60d829a0353a | 19 | #include "device.h" |
tushki7 | 0:60d829a0353a | 20 | |
tushki7 | 0:60d829a0353a | 21 | #if DEVICE_INTERRUPTIN |
tushki7 | 0:60d829a0353a | 22 | |
tushki7 | 0:60d829a0353a | 23 | #ifdef __cplusplus |
tushki7 | 0:60d829a0353a | 24 | extern "C" { |
tushki7 | 0:60d829a0353a | 25 | #endif |
tushki7 | 0:60d829a0353a | 26 | |
tushki7 | 0:60d829a0353a | 27 | typedef enum { |
tushki7 | 0:60d829a0353a | 28 | IRQ_NONE, |
tushki7 | 0:60d829a0353a | 29 | IRQ_RISE, |
tushki7 | 0:60d829a0353a | 30 | IRQ_FALL |
tushki7 | 0:60d829a0353a | 31 | } gpio_irq_event; |
tushki7 | 0:60d829a0353a | 32 | |
tushki7 | 0:60d829a0353a | 33 | typedef struct gpio_irq_s gpio_irq_t; |
tushki7 | 0:60d829a0353a | 34 | |
tushki7 | 0:60d829a0353a | 35 | typedef void (*gpio_irq_handler)(uint32_t id, gpio_irq_event event); |
tushki7 | 0:60d829a0353a | 36 | |
tushki7 | 0:60d829a0353a | 37 | int gpio_irq_init(gpio_irq_t *obj, PinName pin, gpio_irq_handler handler, uint32_t id); |
tushki7 | 0:60d829a0353a | 38 | void gpio_irq_free(gpio_irq_t *obj); |
tushki7 | 0:60d829a0353a | 39 | void gpio_irq_set (gpio_irq_t *obj, gpio_irq_event event, uint32_t enable); |
tushki7 | 0:60d829a0353a | 40 | void gpio_irq_enable(gpio_irq_t *obj); |
tushki7 | 0:60d829a0353a | 41 | void gpio_irq_disable(gpio_irq_t *obj); |
tushki7 | 0:60d829a0353a | 42 | |
tushki7 | 0:60d829a0353a | 43 | #ifdef __cplusplus |
tushki7 | 0:60d829a0353a | 44 | } |
tushki7 | 0:60d829a0353a | 45 | #endif |
tushki7 | 0:60d829a0353a | 46 | |
tushki7 | 0:60d829a0353a | 47 | #endif |
tushki7 | 0:60d829a0353a | 48 | |
tushki7 | 0:60d829a0353a | 49 | #endif |