<GenerateEepFile>True</GenerateEepFile>\r
</PropertyGroup>\r
<ItemGroup>\r
- <Compile Include="..\..\..\FreeRTOS-Plus\Demo\Common\FreeRTOS_Plus_CLI_Demos\File-Releated-CLI-commands.c">\r
+ <Compile Include="..\..\..\FreeRTOS-Plus\Demo\Common\FreeRTOS_Plus_CLI_Demos\File-Related-CLI-commands.c">\r
<SubType>compile</SubType>\r
- <Link>src\File-Releated-CLI-commands.c</Link>\r
+ <Link>src\File-Related-CLI-commands.c</Link>\r
</Compile>\r
<Compile Include="..\..\..\FreeRTOS-Plus\Demo\Common\FreeRTOS_Plus_CLI_Demos\Sample-CLI-commands.c">\r
<SubType>compile</SubType>\r
<Link>src\Sample-CLI-commands.c</Link>\r
</Compile>\r
+ <Compile Include="..\..\..\FreeRTOS-Plus\Demo\Common\FreeRTOS_Plus_CLI_Demos\UDP-Related-CLI-commands.c">\r
+ <SubType>compile</SubType>\r
+ <Link>src\UDP-Related-CLI-commands.c</Link>\r
+ </Compile>\r
<Compile Include="..\..\..\FreeRTOS-Plus\Demo\Common\FreeRTOS_Plus_FAT_SL_Demos\CreateExampleFiles\File-system-demo.c">\r
<SubType>compile</SubType>\r
<Link>src\File-system-demo.c</Link>\r
\r
/* If ipconfigSUPPORT_OUTGOING_PINGS is set to 1 then the\r
FreeRTOS_SendPingRequest() API function is available. */\r
-#define ipconfigSUPPORT_OUTGOING_PINGS 0\r
+#define ipconfigSUPPORT_OUTGOING_PINGS 1\r
\r
/* If ipconfigSUPPORT_SELECT_FUNCTION is set to 1 then the FreeRTOS_select()\r
(and associated) API function is available. */\r
*/\r
extern void vRegisterFileSystemCLICommands( void );\r
\r
+/*\r
+ * Register the UDP related commands that can be used with FreeRTOS+CLI.\r
+ */\r
+extern void vRegisterUDPCLICommands( void );\r
+\r
/*-----------------------------------------------------------*/\r
\r
/* The default IP and MAC address used by the demo. The address configuration\r
}\r
#endif\r
\r
- /* Register generic commands with the FreeRTOS+CLI command interpreter. */\r
+ /* Register example generic, file system related and UDP related CLI \r
+ commands respectively. */\r
vRegisterSampleCLICommands();\r
-\r
- /* Register file system related commands with the FreeRTOS+CLI command\r
- interpreter. */\r
vRegisterFileSystemCLICommands();\r
+ vRegisterUDPCLICommands();\r
\r
/* Initialise the network interface. Tasks that use the network are\r
created in the network event hook when the network is connected and ready\r
/* Call the queue set ISR test function. */\r
vQueueSetAccessQueueSetFromISR();\r
}\r
+/*-----------------------------------------------------------*/\r
+\r
+/* Called automatically when a reply to an outgoing ping is received. */\r
+void vApplicationPingReplyHook( ePingReplyStatus_t eStatus, uint16_t usIdentifier )\r
+{\r
+ /* This demo has nowhere to output any information so does nothing. */\r
+ ( void ) usIdentifier;\r
+ \r
+ switch( eStatus )\r
+ {\r
+ case eSuccess :\r
+ break;\r
+\r
+ case eInvalidChecksum :\r
+ break;\r
+\r
+ case eInvalidData :\r
+ break;\r
+\r
+ default :\r
+ /* It is not possible to get here as all enums have their own\r
+ case. */\r
+ break;\r
+ }\r
+}\r
\r
\r
\r