Subversion Repositories Code-Repo

Rev

Rev 113 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 113 Rev 114
Line 1... Line 1...
1
#ifndef __msg_queues_h
1
#ifndef __msg_queues_h
2
#define __msg_queues_h
2
#define __msg_queues_h
3
 
3
 
4
// The maximum length (in bytes) of a message
4
// The maximum length (in bytes) of a message
5
#define MSGLEN 255
5
#define MSGLEN 254
6
 
6
 
7
// The maximum number of messages in a single queue
7
// The maximum number of messages in a single queue
8
#define MSGQUEUELEN 2   // DO NOT CHANGE THIS!
8
#define MSGQUEUELEN 2   // DO NOT CHANGE THIS!
9
 
9
 
10
typedef struct __msg {
10
typedef struct __msg {
Line 45... Line 45...
45
 
45
 
46
// Queue:
46
// Queue:
47
// The "MQ_ToMainToLow" queue is a message queue from low priority
47
// The "MQ_ToMainToLow" queue is a message queue from low priority
48
//  interrupt handlers to the "main()" thread.  The send is called
48
//  interrupt handlers to the "main()" thread.  The send is called
49
//  in the interrupt handlers and the receive from "main()"
49
//  in the interrupt handlers and the receive from "main()"
50
signed char	MQ_sendmsg_ToMainFromLow(unsigned char,unsigned char,void *);
50
signed int	MQ_sendmsg_ToMainFromLow(unsigned char,unsigned char,void *);
51
signed char	MQ_recvmsg_ToMainFromLow(unsigned char,unsigned char *,void *);
51
signed int	MQ_recvmsg_ToMainFromLow(unsigned char,unsigned char *,void *);
52
unsigned char   MQ_peek_ToMainFromLow(void);
52
unsigned int   MQ_peek_ToMainFromLow(void);
53
 
53
 
54
// Queue:
54
// Queue:
55
// The "MQ_ToMainFromHigh" queue is a message queue from high priority
55
// The "MQ_ToMainFromHigh" queue is a message queue from high priority
56
//  interrupt handlers to the "main()" thread.  The send is called
56
//  interrupt handlers to the "main()" thread.  The send is called
57
//  in the interrupt handlers and the receive from "main()"
57
//  in the interrupt handlers and the receive from "main()"
58
signed char	MQ_sendmsg_ToMainFromHigh(unsigned char,unsigned char,void *);
58
signed int	MQ_sendmsg_ToMainFromHigh(unsigned char,unsigned char,void *);
59
signed char	MQ_recvmsg_ToMainFromHigh(unsigned char,unsigned char *,void *);
59
signed int	MQ_recvmsg_ToMainFromHigh(unsigned char,unsigned char *,void *);
60
unsigned char   MQ_peek_ToMainFromHigh(void);
60
unsigned int   MQ_peek_ToMainFromHigh(void);
61
 
61
 
62
// Queue:
62
// Queue:
63
// The "MQ_FromMainToLow" queue is a message queue from the "main()"
63
// The "MQ_FromMainToLow" queue is a message queue from the "main()"
64
//  thread to the low priority interrupt handlers.  The send is called
64
//  thread to the low priority interrupt handlers.  The send is called
65
//  in the "main()" thread and the receive from the interrupt handlers.
65
//  in the "main()" thread and the receive from the interrupt handlers.
66
signed char	MQ_sendmsg_FromMainToLow(unsigned char,unsigned char,void *);
66
signed int	MQ_sendmsg_FromMainToLow(unsigned char,unsigned char,void *);
67
signed char	MQ_recvmsg_FromMainToLow(unsigned char,unsigned char *,void *);
67
signed int	MQ_recvmsg_FromMainToLow(unsigned char,unsigned char *,void *);
68
unsigned char   MQ_peek_FromMainToLow(void);
68
unsigned int   MQ_peek_FromMainToLow(void);
69
 
69
 
70
// Queue:
70
// Queue:
71
// The "MQ_FromMainToHigh" queue is a message queue from the "main()"
71
// The "MQ_FromMainToHigh" queue is a message queue from the "main()"
72
//  thread to the high priority interrupt handlers.  The send is called
72
//  thread to the high priority interrupt handlers.  The send is called
73
//  in the "main()" thread and the receive from the interrupt handlers.
73
//  in the "main()" thread and the receive from the interrupt handlers.
74
signed char	MQ_sendmsg_FromMainToHigh(unsigned char,unsigned char,void *);
74
signed int	MQ_sendmsg_FromMainToHigh(unsigned char,unsigned char,void *);
75
signed char	MQ_recvmsg_FromMainToHigh(unsigned char,unsigned char *,void *);
75
signed int	MQ_recvmsg_FromMainToHigh(unsigned char,unsigned char *,void *);
76
unsigned char   MQ_peek_FromMainToHigh(void);
76
unsigned int   MQ_peek_FromMainToHigh(void);
77
 
77
 
78
#endif
78
#endif