
Software Development
Porting FLEX One-Way Stack to the MC68328 MPU
FLEX Alphanumeric Chip MC68175 Interface 3-25
/* Prepare the initialization buffer */
BuildInitBuffer();
/*
* Initialize FLEXstack - init_buffer is the pointer to the
* beginning of the initialization buffer.
*/
FStkInit(init_buffer);
/*
* Poll FLEXstack for new messages. Programmer can also uses
* timer interrupt to call FLEXstack function periodically
* for new message.
*/
while(1)
{
delay(10000);
FLEXstack();
}
}
Example 3-12 Function GetPage
/************************************************************
* FUNCTION NAME: GetPage(MSGID) *
* Date created: 07/26/96 *
* *
* Description: *
* This function retrieves a message from FLEXstack *
* and calls function displayMessage to display the message *
* on the LCD. *
* *
* INPUT: msgid: MSGID-type variable - a number to *
* identify the message to be retrieved *
* OUTPUT: None *
* *
* GLOBAL VARIABLES *
* *
***********************************************************/
void GetPage(MSGID msgid)
{
HEADER* header;
UVAR8* handle;
char pageData[64];
int i = 0;
FILTERDATA filterData;
Example 3-11 Function main() (Continued)
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Comentarios a estos manuales