fixed the issue of basic scheduling at no time check mode
[adk-bluetooth-test.git] / examples / Source / main.h
blob7b2e018bf5de2e4cf0f3c7889efb4afa16c9dd75
1 #ifndef __main_h_
2 #define __main_h_
3 #include <mqx.h>
4 #include <bsp.h>
6 //-#include "usb_classes.h"
9 #include <shell.h>
10 #define APPLICATION_HAS_SHELL
13 #ifdef __USB_OTG__
14 #include "otgapi.h"
15 #include "devapi.h"
16 #else
17 #include "hostapi.h"
18 #endif
21 #define MAIN_TASK 1
23 #define USB_TASK 2
24 #define USB_TASK_STACK_SIZE 2000 // 1500 overflow
28 #define RTCS_DHCP 1
33 #define RTCS_PPP 0
35 #define MAX_FRAME_SIZE 1024
38 extern void Main_task (uint_32);
43 void usbh_init(void);
46 void usb_host_event(_usb_device_instance_handle,_usb_interface_descriptor_handle,uint_32);
49 /* PPP device must be set manually and
50 ** must be different from the default IO channel (BSP_DEFAULT_IO_CHANNEL)
52 #define PPP_DEVICE "ittyb:"
55 ** Define PPP_DEVICE_DUN only when using PPP to communicate
56 ** to Win9x Dial-Up Networking over a null-modem
57 ** This is ignored if PPP_DEVICE is not #define'd
59 #define PPP_DEVICE_DUN 1
62 ** Define the local and remote IP addresses for the PPP link
63 ** These are ignored if PPP_DEVICE is not #define'd
65 #define PPP_LOCADDR IPADDR(192,168,0,216)
66 #define PPP_PEERADDR IPADDR(192,168,0,217)
69 ** Define a default gateway
71 #define GATE_ADDR IPADDR(192,168,0,1)
73 #endif /* __main_h_ */