mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-11-04 18:52:31 -05:00
Tidy up the IAR SmartFusion demo reading for release.
This commit is contained in:
parent
f6879be327
commit
f155921461
7 changed files with 300 additions and 20 deletions
|
|
@ -49,6 +49,7 @@
|
|||
#include "apps/httpd/httpd.h"
|
||||
#include "apps/httpd/httpd-cgi.h"
|
||||
#include "apps/httpd/httpd-fs.h"
|
||||
#include "mss_ace.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
|
@ -210,6 +211,8 @@ static unsigned short generate_io_state( void *arg )
|
|||
{
|
||||
extern long lParTestGetLEDState( unsigned long ulLED );
|
||||
( void ) arg;
|
||||
unsigned short usRawVoltage;
|
||||
const ace_channel_handle_t xVoltageChannel = ( ace_channel_handle_t ) 0;
|
||||
|
||||
/* Are the dynamically setable LEDs currently on or off? */
|
||||
if( lParTestGetLEDState( 3 ) )
|
||||
|
|
@ -221,7 +224,8 @@ static unsigned short generate_io_state( void *arg )
|
|||
pcStatus = "";
|
||||
}
|
||||
|
||||
sprintf( uip_appdata, "<input type=\"checkbox\" name=\"LED0\" value=\"1\" %s>LED<p><p>", 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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue