/* ** ################################################################### ** ** Filename : OSD.C ** ** Project : OSD ** ** Processor : MC68HC908LD64IFU ** ** Version : Driver 01.00 ** ** Compiler : Metrowerks HC08 C Compiler ** ** Date/Time : 21.11.2002, 15:50 ** ** Abstract : ** ** Main module. ** Here is to be placed user's code. ** ** Settings : ** ** ** Contents : ** ** No public methods ** ** ** Copyright: 1997 - 2009 Freescale Semiconductor, Inc. All Rights Reserved. ** ** ** ** http : www.freescale.com ** mail : support@freescale.com ** ** ################################################################### */ /* MODULE OSD */ /*Including used modules for compilling procedure*/ #include "Cpu.h" #include "Events.h" #include "OSD1.h" /*Include shared modules, which are used for whole project*/ #include "PE_Types.h" #include "PE_Error.h" #include "PE_Const.h" #include "IO_Map.h" byte ErrorCode; void main(void) { /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/ PE_low_level_init(); /*** End of Processor Expert internal initialization. ***/ /* Set background window 0. */ ErrorCode = OSD1_SetWinAttrb(0,0,10,0,15,clWhite,1,1,clGreen,8,8); /* Set background window 1. */ ErrorCode = OSD1_SetWinAttrb(1,0,11,0,27,clBlue,0,0,clRed,8,8); /* Set background window 2. */ ErrorCode = OSD1_SetWinAttrb(2,0,12,0,29,clRed,0,0,clGreen,8,8); /* Set background window 3. */ ErrorCode = OSD1_SetWinAttrb(3,0,15,0,31,clWhite,0,0,clBlue,8,8); /* Set vertical position for all background windows. */ ErrorCode = OSD1_SetVertPos(20); /* Set horizontal position for all background windows. */ ErrorCode = OSD1_SetHorizPos(20); /* Show OSD Window on the monitor screen*/ ErrorCode = OSD1_Enable(); /*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/ for(;;){} /*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/ } /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/ /* END OSD */ /* ** ################################################################### ** ** This file was created by Processor Expert 03.08 for ** the Freescale HC08 series of microcontrollers. ** ** ################################################################### */