Michael Sevakis | a7af9e4 | 2008-04-12 16:56:45 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 2 | * __________ __ ___. |
| 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 7 | * \/ \/ \/ \/ \/ |
| 8 | * $Id$ |
| 9 | * |
| 10 | * Copyright (c) 2008 by Michael Sevakis |
| 11 | * |
| 12 | * Gigabeat S GPIO interrupt event descriptions header |
| 13 | * |
Daniel Stenberg | 2acc0ac | 2008-06-28 18:10:04 +0000 | [diff] [blame^] | 14 | * This program is free software; you can redistribute it and/or |
| 15 | * modify it under the terms of the GNU General Public License |
| 16 | * as published by the Free Software Foundation; either version 2 |
| 17 | * of the License, or (at your option) any later version. |
Michael Sevakis | a7af9e4 | 2008-04-12 16:56:45 +0000 | [diff] [blame] | 18 | * |
| 19 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
| 20 | * KIND, either express or implied. |
| 21 | * |
| 22 | ****************************************************************************/ |
| 23 | #ifndef GPIO_TARGET_H |
| 24 | #define GPIO_TARGET_H |
| 25 | |
Michael Sevakis | a9c20f5 | 2008-05-21 08:42:11 +0000 | [diff] [blame] | 26 | /* MC13783 GPIO pin info for this target */ |
Michael Sevakis | a7af9e4 | 2008-04-12 16:56:45 +0000 | [diff] [blame] | 27 | #define MC13783_GPIO_NUM GPIO1_NUM |
| 28 | #define MC13783_GPIO_ISR GPIO1_ISR |
| 29 | #define MC13783_GPIO_LINE 31 |
Michael Sevakis | a9c20f5 | 2008-05-21 08:42:11 +0000 | [diff] [blame] | 30 | |
| 31 | /* Declare event indexes in priority order in a packed array */ |
| 32 | enum gpio_event_ids |
| 33 | { |
| 34 | /* GPIO1 event IDs */ |
| 35 | MC13783_EVENT_ID = GPIO1_EVENT_FIRST, |
| 36 | /* GPIO2 event IDs */ |
| 37 | /* none defined */ |
| 38 | /* GPIO3 event IDs */ |
| 39 | /* none defined */ |
| 40 | }; |
| 41 | |
| 42 | void mc13783_event(void); |
Michael Sevakis | a7af9e4 | 2008-04-12 16:56:45 +0000 | [diff] [blame] | 43 | |
| 44 | #endif /* GPIO_TARGET_H */ |