The common folder libraries from keil LPC11Uxx code bundle
gpio.h@0:05d110ee258e, 2012-05-27 (annotated)
- Committer:
- alexan_e
- Date:
- Sun May 27 23:59:30 2012 +0000
- Revision:
- 0:05d110ee258e
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
alexan_e | 0:05d110ee258e | 1 | /**************************************************************************** |
alexan_e | 0:05d110ee258e | 2 | * $Id:: gpio.h 6172 2011-01-13 18:22:51Z usb00423 $ |
alexan_e | 0:05d110ee258e | 3 | * Project: NXP LPC11xx software example |
alexan_e | 0:05d110ee258e | 4 | * |
alexan_e | 0:05d110ee258e | 5 | * Description: |
alexan_e | 0:05d110ee258e | 6 | * This file contains definition and prototype for GPIO. |
alexan_e | 0:05d110ee258e | 7 | * |
alexan_e | 0:05d110ee258e | 8 | **************************************************************************** |
alexan_e | 0:05d110ee258e | 9 | * Software that is described herein is for illustrative purposes only |
alexan_e | 0:05d110ee258e | 10 | * which provides customers with programming information regarding the |
alexan_e | 0:05d110ee258e | 11 | * products. This software is supplied "AS IS" without any warranties. |
alexan_e | 0:05d110ee258e | 12 | * NXP Semiconductors assumes no responsibility or liability for the |
alexan_e | 0:05d110ee258e | 13 | * use of the software, conveys no license or title under any patent, |
alexan_e | 0:05d110ee258e | 14 | * copyright, or mask work right to the product. NXP Semiconductors |
alexan_e | 0:05d110ee258e | 15 | * reserves the right to make changes in the software without |
alexan_e | 0:05d110ee258e | 16 | * notification. NXP Semiconductors also make no representation or |
alexan_e | 0:05d110ee258e | 17 | * warranty that such application will be suitable for the specified |
alexan_e | 0:05d110ee258e | 18 | * use without further testing or modification. |
alexan_e | 0:05d110ee258e | 19 | ****************************************************************************/ |
alexan_e | 0:05d110ee258e | 20 | #ifndef __GPIO_H |
alexan_e | 0:05d110ee258e | 21 | #define __GPIO_H |
alexan_e | 0:05d110ee258e | 22 | |
alexan_e | 0:05d110ee258e | 23 | #define CHANNEL0 0 |
alexan_e | 0:05d110ee258e | 24 | #define CHANNEL1 1 |
alexan_e | 0:05d110ee258e | 25 | #define CHANNEL2 2 |
alexan_e | 0:05d110ee258e | 26 | #define CHANNEL3 3 |
alexan_e | 0:05d110ee258e | 27 | #define CHANNEL4 4 |
alexan_e | 0:05d110ee258e | 28 | #define CHANNEL5 5 |
alexan_e | 0:05d110ee258e | 29 | #define CHANNEL6 6 |
alexan_e | 0:05d110ee258e | 30 | #define CHANNEL7 7 |
alexan_e | 0:05d110ee258e | 31 | |
alexan_e | 0:05d110ee258e | 32 | #define PORT0 0 |
alexan_e | 0:05d110ee258e | 33 | #define PORT1 1 |
alexan_e | 0:05d110ee258e | 34 | |
alexan_e | 0:05d110ee258e | 35 | #define GROUP0 0 |
alexan_e | 0:05d110ee258e | 36 | #define GROUP1 1 |
alexan_e | 0:05d110ee258e | 37 | |
alexan_e | 0:05d110ee258e | 38 | void FLEX_INT0_IRQHandler(void); |
alexan_e | 0:05d110ee258e | 39 | void FLEX_INT1_IRQHandler(void); |
alexan_e | 0:05d110ee258e | 40 | void FLEX_INT2_IRQHandler(void); |
alexan_e | 0:05d110ee258e | 41 | void FLEX_INT3_IRQHandler(void); |
alexan_e | 0:05d110ee258e | 42 | void FLEX_INT4_IRQHandler(void); |
alexan_e | 0:05d110ee258e | 43 | void FLEX_INT5_IRQHandler(void); |
alexan_e | 0:05d110ee258e | 44 | void FLEX_INT6_IRQHandler(void); |
alexan_e | 0:05d110ee258e | 45 | void FLEX_INT7_IRQHandler(void); |
alexan_e | 0:05d110ee258e | 46 | void GINT0_IRQHandler(void); |
alexan_e | 0:05d110ee258e | 47 | void GINT1_IRQHandler(void); |
alexan_e | 0:05d110ee258e | 48 | void GPIOInit( void ); |
alexan_e | 0:05d110ee258e | 49 | void GPIOSetFlexInterrupt( uint32_t channelNum, uint32_t portNum, uint32_t bitPosi, |
alexan_e | 0:05d110ee258e | 50 | uint32_t sense, uint32_t event ); |
alexan_e | 0:05d110ee258e | 51 | void GPIOFlexIntEnable( uint32_t channelNum, uint32_t event ); |
alexan_e | 0:05d110ee258e | 52 | void GPIOFlexIntDisable( uint32_t channelNum, uint32_t event ); |
alexan_e | 0:05d110ee258e | 53 | uint32_t GPIOFlexIntStatus( uint32_t channelNum ); |
alexan_e | 0:05d110ee258e | 54 | void GPIOFlexIntClear( uint32_t channelNum ); |
alexan_e | 0:05d110ee258e | 55 | void GPIOSetGroupedInterrupt( uint32_t groupNum, uint32_t *bitPattern, uint32_t logic, |
alexan_e | 0:05d110ee258e | 56 | uint32_t sense, uint32_t *eventPattern ); |
alexan_e | 0:05d110ee258e | 57 | uint32_t GPIOGetPinValue( uint32_t portNum, uint32_t bitPosi ); |
alexan_e | 0:05d110ee258e | 58 | void GPIOSetBitValue( uint32_t portNum, uint32_t bitPosi, uint32_t bitVal ); |
alexan_e | 0:05d110ee258e | 59 | void GPIOSetDir( uint32_t portNum, uint32_t bitPosi, uint32_t dir ); |
alexan_e | 0:05d110ee258e | 60 | |
alexan_e | 0:05d110ee258e | 61 | #endif /* end __GPIO_H */ |
alexan_e | 0:05d110ee258e | 62 | /***************************************************************************** |
alexan_e | 0:05d110ee258e | 63 | ** End Of File |
alexan_e | 0:05d110ee258e | 64 | ******************************************************************************/ |