182
"C" Programming Guide For Optimus S/R
Example Code
For this purpose, the application should call these functions in the beginning:
#include <lib_opr.h>
#include <ucos.h>
static const int beep[] = {32, 5, 0, 0};
main()
{
SetCommType (2, COMM_RF);
//Add WEDGE_EMULATOR flag to open_com //
open_com (2, BT_SERIALPORT_SLAVE|WEDGE_EmULATOR);
clr_scr();
gotoxy (0, 0); printf (" Virtual Wedge ");
gotoxy (0, 1); printf ("====================");
gotoxy (0, 2); printf (" Wait ");
gotoxy (0, 3); printf (" Connecting... ");
gotoxy (0, 4); printf ("====================");
while (1) {
if (WedgeReady()) break;
OSTimeDly (4);
Summary of Contents for Optimus R
Page 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Page 6: ......
Page 8: ...2 C Programming Guide For Optimus S R...
Page 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Page 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Page 24: ...18 C Programming Guide For Optimus S R...
Page 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...