Quick and dirty CoOS + LWIP ( Webserver )

Dependencies:   mbed lwip

Committer:
astroboy
Date:
Sat Sep 10 22:41:10 2011 +0000
Revision:
0:94897d537b31

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
astroboy 0:94897d537b31 1
astroboy 0:94897d537b31 2 /**
astroboy 0:94897d537b31 3 *******************************************************************************
astroboy 0:94897d537b31 4 * @file OsServiceReq.h
astroboy 0:94897d537b31 5 * @version V1.1.4
astroboy 0:94897d537b31 6 * @date 2011.04.20
astroboy 0:94897d537b31 7 * @brief Header file related to service request
astroboy 0:94897d537b31 8 * @details This file including some defines and function declare related to
astroboy 0:94897d537b31 9 * service request.
astroboy 0:94897d537b31 10 *******************************************************************************
astroboy 0:94897d537b31 11 * @copy
astroboy 0:94897d537b31 12 *
astroboy 0:94897d537b31 13 * INTERNAL FILE,DON'T PUBLIC.
astroboy 0:94897d537b31 14 *
astroboy 0:94897d537b31 15 * <h2><center>&copy; COPYRIGHT 2009 CooCox </center></h2>
astroboy 0:94897d537b31 16 *******************************************************************************
astroboy 0:94897d537b31 17 */
astroboy 0:94897d537b31 18
astroboy 0:94897d537b31 19
astroboy 0:94897d537b31 20 #ifndef _SERVICEREQ_H
astroboy 0:94897d537b31 21 #define _SERVICEREQ_H
astroboy 0:94897d537b31 22
astroboy 0:94897d537b31 23 #if CFG_MAX_SERVICE_REQUEST > 0
astroboy 0:94897d537b31 24 #define SEM_REQ (U8)0x1
astroboy 0:94897d537b31 25 #define MBOX_REQ (U8)0x2
astroboy 0:94897d537b31 26 #define FLAG_REQ (U8)0x3
astroboy 0:94897d537b31 27 #define QUEUE_REQ (U8)0x4
astroboy 0:94897d537b31 28
astroboy 0:94897d537b31 29
astroboy 0:94897d537b31 30 typedef struct ServiceReqCell
astroboy 0:94897d537b31 31 {
astroboy 0:94897d537b31 32 U8 type;
astroboy 0:94897d537b31 33 U8 id;
astroboy 0:94897d537b31 34 void* arg;
astroboy 0:94897d537b31 35 }SQC,*P_SQC;
astroboy 0:94897d537b31 36
astroboy 0:94897d537b31 37 typedef struct ServiceReqQueue
astroboy 0:94897d537b31 38 {
astroboy 0:94897d537b31 39 U8 cnt;
astroboy 0:94897d537b31 40 U8 head;
astroboy 0:94897d537b31 41 SQC cell[CFG_MAX_SERVICE_REQUEST];
astroboy 0:94897d537b31 42 }SRQ,*P_SRQ;
astroboy 0:94897d537b31 43
astroboy 0:94897d537b31 44
astroboy 0:94897d537b31 45 extern SRQ ServiceReq;
astroboy 0:94897d537b31 46 extern BOOL InsertInSRQ(U8 type,U8 id,void* arg);
astroboy 0:94897d537b31 47 #endif
astroboy 0:94897d537b31 48
astroboy 0:94897d537b31 49 extern void RespondSRQ(void);
astroboy 0:94897d537b31 50 extern BOOL TimeReq;
astroboy 0:94897d537b31 51 extern BOOL TimerReq;
astroboy 0:94897d537b31 52 extern BOOL IsrReq;
astroboy 0:94897d537b31 53 #endif