![](http://datasheet.mmic.net.cn/260000/PPSMMANUAL_datasheet_15946768/PPSMMANUAL_176.png)
33-14
Device Drivers
Programmer’s Manual
33.7
UART Device Driver (uartdev.c)
This UART device driver is a supplement to the PPSM Serial Communication
Tools as described in Chapter 26 - UART Communication Tools Currently this
driver contains the UARTDevSendBreak() function which allows applications to
send the BREAK character. This UARTDevSendBreak() function manipulatesDescription
MC68328 UART hardware registers. It is assumed that the saving, setting and
restoring of appropriate system interrupt level is handled by the caller of this
device driver.
33.7.1
Sending the BREAK Character
Syntax
void
UARTDevSendBreak
(U8 sendBreak)
Description
This function starts or stops the MC68328 UART hardware to send the BREAK
character depending on the given flag.
If sendBreak flag is UART_SEND_BREAK, the UART hardware will start
sending the BREAK character.
If sendBreakflag is UART_ABORT_BREAK, the UART hardware will stop
sending the BREAK character.
It is assumed that sendBreakhas to be one of the values stated. Any Description
value will be treated as UART_ABORT_BREAK.
Parameter
Return Value
33.8
Power Management Driver (iodev.c)
4 functions are located in iodev.c for enabling or disabling I/O ports before going to
doze or sleep mode or leaving doze or sleep mode.
Name
Description
sendBreak
Operation flag
UART_SEND_BREAK
Starts sending BREAK characters
UART_ABORT_BREAK
Stops sending BREAK characters
Name
Description
None
Personal Portable System Manager
Programmer’s Manual
Device Drivers
33-15
33.8.1
Enabling I/O ports when leaving from doze mode
Syntax
void
PortDozeEnable
When PPSM wakes up from doze mode, it will call this routine to re-enable any
user defined I/O ports that are not handled internally by PPSM. User must add
in their own I/O initialization code in this routine.
Return Value
Note:
The driver function mentioned above is default to perform no
operation.
Syntax
void
PortDozeDisable
Just before PPSM goes into doze mode, it will call this routine to disable any
user defined I/O ports that are not handled internally by PPSM. User must add
in the code to disable the I/O ports in this routine.
Return Value
Note:
The driver function mentioned above is default to perform no
operation.
33.8.3
Enabling I/O ports when leaving from sleep mode
Syntax
void
PortSleepEnable
Description
When PPSM wakes up from sleep mode, it will call this routine to re-enable any
user defined I/O ports that are not handled internally by PPSM. User must add
in their own I/O initialization code in this routine.
Name
Description
None
Name
Description
None
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.