Download Stellaris Peripheral Driver Library User's Guide

Transcript
Low Pin Count Interface (LPC)
Parameters:
ulBase is the base address of the LPC module.
ulConfig specifies the configuration of the LPC module.
Description:
This function configures the LPC module for basic operation. The configuration of individual
channels is handled in a separate function.
The ulConfig parameter is the logical OR of the following values:
LPC_CFG_WAKE - Force assertion of the LPC0CLKRUN signal when the LPC bus is
powered down (LPC0PD is asserted).
Returns:
None.
17.2.1.21 LPCHalfWordRead
Reads a half-word from the LPC channel pool.
Prototype:
unsigned short
LPCHalfWordRead(unsigned long ulBase,
unsigned long ulOffset)
Parameters:
ulBase specifies the LPC module base address.
ulOffset specifies the offset from the beginning of the LPC channel pool.
Description:
This function reads a half-word from the channel pool. The ulOffset specified must be half-word
aligned.
Returns:
Returns the half-word read from the pool memory.
17.2.1.22 LPCHalfWordWrite
Writes a half-word to the LPC channel pool.
Prototype:
void
LPCHalfWordWrite(unsigned long ulBase,
unsigned long ulOffset,
unsigned short usData)
Parameters:
ulBase specifies the LPC module base address.
ulOffset specifies the offset from the beginning of the LPC channel pool.
usData specifies the byte to write.
September 05, 2012
261