
Originally Posted by
Ioannis
Probably a dumb question ... but... Do you think the code from Microchip's AN833 could be compiled into assembly include files? Changing the below code for PBP looks doable, just not sure about the possibility of getting the C files (StackTsk.h, Tick.h and http.h) into includes for PBP in some way.
http://ww1.microchip.com/downloads/e...tes/00833c.pdf
Code:
// Declare this file as main application file
#define THIS_IS_STACK_APPLICATION
#include “StackTsk.h”
#include “Tick.h”
#include “dhcp.h” // Only if DHCP is used.
#include “http.h” // Only if HTTP is used.
#include “ftp.h” // Only if FTP is used.
// Other application specific include files
...
// Main entry point
void main(void)
{
// Perform application specific initialization
...
// Initialize Stack components.
// If StackApplication is used, initialize it too.
TickInit();
StackInit();
HTTPInit(); // Only if HTTP is used.
FTPInit(); // Only if FTP is used.
// Enter into infinite program loop
while(1)
{
// Update tick count. Can be done via interrupt.
TickUpdate();
// Let Stack Manager perform its task.
StackTask();
// Let any Stack application perform its task.
HTTPServer(); // Only if HTTP is used.
FTPServer(); // Only if FTP is used.
// Application logic resides here.
DoAppSpecificTask();
}
}
Here is a product that uses the hardware mentioned in this application note:
http://www.sparkfun.com/commerce/pro...oducts_id=7829
Bookmarks