mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-03 12:53:52 -04:00
Updated compiler version for RX RDK demo and completed initial web server demo. Still some tidying up to do.
This commit is contained in:
parent
a4893aed60
commit
a91ec6efe7
17 changed files with 4241 additions and 4683 deletions
|
@ -55,6 +55,7 @@
|
|||
#include "iodefine.h"
|
||||
#include "typedefine.h"
|
||||
#include "r_ether.h"
|
||||
#include "phy.h"
|
||||
|
||||
/* FreeRTOS includes. */
|
||||
#include "FreeRTOS.h"
|
||||
|
|
|
@ -202,17 +202,17 @@ unsigned long ulString;
|
|||
|
||||
static unsigned short generate_io_state( void *arg )
|
||||
{
|
||||
extern long lParTestGetLEDState( void );
|
||||
extern long lParTestGetLEDState( unsigned long ulLED );
|
||||
( void ) arg;
|
||||
|
||||
/* Get the state of the LEDs that are on the FIO1 port. */
|
||||
if( lParTestGetLEDState() )
|
||||
/* Are the dynamically setable LEDs currently on or off? */
|
||||
if( lParTestGetLEDState( 8 ) )
|
||||
{
|
||||
pcStatus = "";
|
||||
pcStatus = "checked";
|
||||
}
|
||||
else
|
||||
{
|
||||
pcStatus = "checked";
|
||||
pcStatus = "";
|
||||
}
|
||||
|
||||
sprintf( uip_appdata, "<input type=\"checkbox\" name=\"LED0\" value=\"1\" %s>LED<p><p>", pcStatus );
|
||||
|
@ -227,7 +227,17 @@ static unsigned short generate_runtime_stats( void *arg )
|
|||
( void ) arg;
|
||||
lRefreshCount++;
|
||||
sprintf( cCountBuf, "<p><br>Refresh count = %d", ( int ) lRefreshCount );
|
||||
vTaskGetRunTimeStats( uip_appdata );
|
||||
|
||||
#ifdef INCLUDE_HIGH_FREQUENCY_TIMER_TEST
|
||||
{
|
||||
vTaskGetRunTimeStats( uip_appdata );
|
||||
}
|
||||
#else
|
||||
{
|
||||
strcpy( uip_appdata, "<p>Run time stats are only available in the debug_with_optimisation build configuration.<p>" );
|
||||
}
|
||||
#endif
|
||||
|
||||
strcat( uip_appdata, cCountBuf );
|
||||
|
||||
return strlen( uip_appdata );
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 32 KiB |
File diff suppressed because it is too large
Load diff
|
@ -27,13 +27,14 @@ foreach $file (@files) {
|
|||
print "Adding file $file\n";
|
||||
|
||||
open(FILE, $file) || die "Could not open file $file\n";
|
||||
binmode FILE;
|
||||
|
||||
$file =~ s-^-/-;
|
||||
$fvar = $file;
|
||||
$fvar =~ s-/-_-g;
|
||||
$fvar =~ s-\.-_-g;
|
||||
# for AVR, add PROGMEM here
|
||||
print(OUTPUT "static const unsigned char data".$fvar."[] = {\n");
|
||||
print(OUTPUT "static const char data".$fvar."[] = {\n");
|
||||
print(OUTPUT "\t/* $file */\n\t");
|
||||
for($j = 0; $j < length($file); $j++) {
|
||||
printf(OUTPUT "%#02x, ", unpack("C", substr($file, $j, 1)));
|
||||
|
|
|
@ -108,6 +108,33 @@ int32_t R_Ether_Close(uint32_t ch);
|
|||
int32_t R_Ether_Write(uint32_t ch, void *buf, uint32_t len);
|
||||
int32_t R_Ether_Read(uint32_t ch, void *buf);
|
||||
|
||||
/**
|
||||
* FreeRTOS Ethernet API prototypes.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Configure all the ethernet components (MAC, DMA, PHY) ready for communication.
|
||||
*/
|
||||
void vInitEmac( void );
|
||||
|
||||
/*
|
||||
* Auto negotiate the link, returning pass or fail depending on whether a link
|
||||
* was established or not.
|
||||
*/
|
||||
long lEMACWaitForLink( void );
|
||||
|
||||
/*
|
||||
* Check the Rx status, and return the number of bytes received if any.
|
||||
*/
|
||||
unsigned long ulEMACRead( void );
|
||||
|
||||
/*
|
||||
* Send uip_len bytes from uip_buf to the Tx descriptors and initiate a Tx.
|
||||
*/
|
||||
void vEMACWrite( void );
|
||||
|
||||
|
||||
|
||||
|
||||
/****************************************************/
|
||||
/* Ethernet statistic collection data */
|
||||
|
|
|
@ -114,7 +114,11 @@ typedef unsigned short uip_stats_t;
|
|||
*
|
||||
* \hideinitializer
|
||||
*/
|
||||
#ifdef __LIT
|
||||
#define UIP_CONF_BYTE_ORDER UIP_LITTLE_ENDIAN
|
||||
#else
|
||||
#define UIP_CONF_BYTE_ORDER UIP_BIG_ENDIAN
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Logging on or off
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue