mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-20 01:58:32 -04:00
Update the SmartFusion SoftConsole source code to be the same as the IAR and Keil versions.
This commit is contained in:
parent
2aef3e3cfe
commit
eadd0048c4
19 changed files with 482 additions and 6925 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>
|
||||
|
@ -209,6 +210,9 @@ unsigned long ulString;
|
|||
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? */
|
||||
|
@ -221,7 +225,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