NXP's driver library for LPC17xx, ported to mbed's online compiler. Not tested! I had to fix a lot of warings and found a couple of pretty obvious bugs, so the chances are there are more. Original: http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

lpc17xx_gpio.c File Reference

lpc17xx_gpio.c File Reference

: Contains all functions support for GPIO firmware library on LPC17xx More...

Go to the source code of this file.

Functions

static LPC_GPIO_TypeDef * GPIO_GetPointer (uint8_t portNum)
 Get pointer to GPIO peripheral due to GPIO port.
static GPIO_HalfWord_TypeDefFIO_HalfWordGetPointer (uint8_t portNum)
 Get pointer to FIO peripheral in halfword accessible style due to FIO port.
static GPIO_Byte_TypeDefFIO_ByteGetPointer (uint8_t portNum)
 Get pointer to FIO peripheral in byte accessible style due to FIO port.
void GPIO_SetDir (uint8_t portNum, uint32_t bitValue, uint8_t dir)
 Set Direction for GPIO port.
void GPIO_SetValue (uint8_t portNum, uint32_t bitValue)
 Set Value for bits that have output direction on GPIO port.
void GPIO_ClearValue (uint8_t portNum, uint32_t bitValue)
 Clear Value for bits that have output direction on GPIO port.
uint32_t GPIO_ReadValue (uint8_t portNum)
 Read Current state on port pin that have input direction of GPIO.
void FIO_SetDir (uint8_t portNum, uint32_t bitValue, uint8_t dir)
 The same with GPIO_SetDir()
void FIO_SetValue (uint8_t portNum, uint32_t bitValue)
 The same with GPIO_SetValue()
void FIO_ClearValue (uint8_t portNum, uint32_t bitValue)
 The same with GPIO_ClearValue()
uint32_t FIO_ReadValue (uint8_t portNum)
 The same with GPIO_ReadValue()
void FIO_SetMask (uint8_t portNum, uint32_t bitValue, uint8_t maskValue)
 Set mask value for bits in FIO port.
void FIO_HalfWordSetDir (uint8_t portNum, uint8_t halfwordNum, uint16_t bitValue, uint8_t dir)
 Set direction for FIO port in halfword accessible style.
void FIO_HalfWordSetMask (uint8_t portNum, uint8_t halfwordNum, uint16_t bitValue, uint8_t maskValue)
 Set mask value for bits in FIO port in halfword accessible style.
void FIO_HalfWordSetValue (uint8_t portNum, uint8_t halfwordNum, uint16_t bitValue)
 Set bits for FIO port in halfword accessible style.
void FIO_HalfWordClearValue (uint8_t portNum, uint8_t halfwordNum, uint16_t bitValue)
 Clear bits for FIO port in halfword accessible style.
uint16_t FIO_HalfWordReadValue (uint8_t portNum, uint8_t halfwordNum)
 Read Current state on port pin that have input direction of GPIO in halfword accessible style.
void FIO_ByteSetDir (uint8_t portNum, uint8_t byteNum, uint8_t bitValue, uint8_t dir)
 Set direction for FIO port in byte accessible style.
void FIO_ByteSetMask (uint8_t portNum, uint8_t byteNum, uint8_t bitValue, uint8_t maskValue)
 Set mask value for bits in FIO port in byte accessible style.
void FIO_ByteSetValue (uint8_t portNum, uint8_t byteNum, uint8_t bitValue)
 Set bits for FIO port in byte accessible style.
void FIO_ByteClearValue (uint8_t portNum, uint8_t byteNum, uint8_t bitValue)
 Clear bits for FIO port in byte accessible style.
uint8_t FIO_ByteReadValue (uint8_t portNum, uint8_t byteNum)
 Read Current state on port pin that have input direction of GPIO in byte accessible style.

Detailed Description

: Contains all functions support for GPIO firmware library on LPC17xx

Version:
: 1.0
Date:
: 11. Jun. 2009
Author:
: HieuNguyen

Software that is described herein is for illustrative purposes only which provides customers with programming information regarding the products. This software is supplied "AS IS" without any warranties. NXP Semiconductors assumes no responsibility or liability for the use of the software, conveys no license or title under any patent, copyright, or mask work right to the product. NXP Semiconductors reserves the right to make changes in the software without notification. NXP Semiconductors also make no representation or warranty that such application will be suitable for the specified use without further testing or modification.

Definition in file lpc17xx_gpio.c.