File: main.h

package info (click to toggle)
wolfssl 5.8.4-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 117,604 kB
  • sloc: ansic: 1,584,954; asm: 481,206; sh: 11,586; cs: 6,596; xml: 3,878; perl: 3,291; makefile: 2,058; ada: 1,891; javascript: 748; python: 636; cpp: 131; ruby: 118; objc: 80; tcl: 73
file content (60 lines) | stat: -rw-r--r-- 1,287 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* main.h */

#ifndef __main_h_
#define __main_h_

#include <mqx.h>
#include <bsp.h>
#include <mfs.h>
#include <fio.h>
#include <rtcs.h>
#include <ipcfg.h>
#include <sdcard.h>
#include <spi.h>
#include <part_mgr.h>

#include <wolfssl/ssl.h>

#define MAIN_TASK 1

extern void Main_task(uint32_t);
extern void setup_ethernet(void);
extern void setup_clock(void);
extern void client_test(void);

/* cert file locations */
static const char* caCert = "a:\\certs\\ca-cert.pem";
static const char* clientCert = "a:\\certs\\client-cert.pem";
static const char* clientKey = "a:\\certs\\client-key.pem";

static inline void err_sys(const char* msg)
{
    printf("wolfssl error: %s\n", msg);
    if (msg)
        _mqx_exit(1);
}

/* PPP device must be set manually and
 * must be different from the default IO channel (BSP_DEFAULT_IO_CHANNEL)
 */
#define PPP_DEVICE      "ittyb:"

/*
 * Define PPP_DEVICE_DUN only when using PPP to communicate
 * to Win9x Dial-Up Networking over a null-modem
 * This is ignored if PPP_DEVICE is not #define'd
 */
#define PPP_DEVICE_DUN  1

#ifndef ENET_IPADDR
    #define ENET_IPADDR   IPADDR(192,168,1,155)
#endif

#ifndef ENET_IPMASK
    #define ENET_IPMASK   IPADDR(255,255,255,0)
#endif

#define GATE_IPADDR       IPADDR(192,168,1,1)

#endif /* __main_h_ */