static unsigned short generate_io_state( void *arg ) { extern long lParTestGetLEDState( void ); ( void ) arg; /* Get the state of the LEDs that are on the FIO1 port. */ if( lParTestGetLEDState() ) { pcStatus = ""; } else { pcStatus = "checked"; } // teja print to map right here sprintf( uip_appdata, "<polyline fill=\"none\" stroke=\"blue\" stroke-width=\"2\" points=\"%s\" /><polyline fill=\"none\" stroke=\"green\" stroke-width=\"2\" points=\"460,480 492,480\" /><text x=\"465\" y=\"495\" fill=\"Green\">8in</text>", mapCoordinatesPointer); //sprintf(uip_appdata, "%s <p>Area = %f square inches</p>", uip_appdata, 43.535); return strlen( uip_appdata ); }
void vParTestToggleLED( unsigned long ulLED ) { if( ulLED < partestNUM_LEDS ) { taskENTER_CRITICAL(); { if( lParTestGetLEDState( ulLED ) != 0x00 ) { vParTestSetLED( ulLED, 0 ); } else { vParTestSetLED( ulLED, 1 ); } } taskEXIT_CRITICAL(); } }
static unsigned short generate_world_update( void *arg ) { extern long lParTestGetLEDState( void ); ( void ) arg; /* Get the state of the LEDs that are on the FIO1 port. */ if( lParTestGetLEDState() ) { pcStatus = ""; } else { pcStatus = "checked"; } return strlen( uip_appdata ); }
static unsigned short generate_io_state( void *arg ) { extern long lParTestGetLEDState( unsigned long ulLED ); ( void ) arg; /* Are the dynamically setable LEDs currently on or off? */ if( lParTestGetLEDState( 3 ) ) { pcStatus = "checked"; } else { pcStatus = ""; } sprintf( uip_appdata, "<input type=\"checkbox\" name=\"LED0\" value=\"1\" %s>LED<p><p>", pcStatus ); return strlen( uip_appdata ); }
static unsigned short generate_io_state( void *arg ) { extern long lParTestGetLEDState( void ); ( void ) arg; /* Get the state of the LEDs that are on the FIO1 port. */ if( lParTestGetLEDState() ) { pcStatus = ""; } else { pcStatus = "checked"; } sprintf( uip_appdata, "<input type=\"checkbox\" name=\"LED0\" value=\"1\" %s>LED<p><p>", pcStatus ); return strlen( uip_appdata ); }
static unsigned short generate_io_state( void *arg ) { extern long lParTestGetLEDState( unsigned long ulLED ); unsigned short usRawVoltage; const ace_channel_handle_t xVoltageChannel = ( ace_channel_handle_t ) 0; ( void ) arg; /* Are the dynamically setable LEDs currently on or off? */ if( lParTestGetLEDState( 3 ) ) { pcStatus = "checked"; } else { pcStatus = ""; } usRawVoltage = ( unsigned short ) ACE_get_ppe_sample( xVoltageChannel ); sprintf( uip_appdata, "<input type=\"checkbox\" name=\"LED0\" value=\"1\" %s>LED<p><p><p>Raw voltage input is %d", pcStatus, usRawVoltage ); return strlen( uip_appdata ); }