Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of libMiMic by
Diff: mbed/Httpd.cpp
- Revision:
- 45:63d6aa80e26d
- Parent:
- 19:33b9ba0859ee
- Child:
- 46:61edfd4b16ee
--- a/mbed/Httpd.cpp Tue Jul 09 12:40:55 2013 +0000
+++ b/mbed/Httpd.cpp Thu Jul 11 03:52:33 2013 +0000
@@ -22,7 +22,7 @@
void Httpd::loop()
{
NyLPC_cHttpd_loop((NyLPC_TcHttpd_t*)(&this->_inst));
- }
+ }
void Httpd::lock()
{
NyLPC_cHttpd_lock((NyLPC_TcHttpd_t*)(&this->_inst));
@@ -31,5 +31,15 @@
{
NyLPC_cHttpd_unlock((NyLPC_TcHttpd_t*)(&this->_inst));
}
+ void Httpd::loopTask()
+ {
+ NyLPC_TcThread_t* th=(NyLPC_TcThread_t*)malloc(sizeof(NyLPC_TcThread_t));
+ NyLPC_cThread_initialize(th,256,NyLPC_TcThread_PRIORITY_IDLE);
+ NyLPC_cThread_start(th,Httpd::taskHandler,&(this->_inst));
+ }
+ int Httpd::taskHandler(void* i_param)
+ {
+ NyLPC_cHttpd_loop((NyLPC_TcHttpd_t*)i_param);
+ }
}
\ No newline at end of file
