My Project
Loading...
Searching...
No Matches
mqx
wolfssl_client
Sources
main.h
1
/* main.h */
2
3
#ifndef __main_h_
4
#define __main_h_
5
6
#include <mqx.h>
7
#include <bsp.h>
8
#include <mfs.h>
9
#include <fio.h>
10
#include <rtcs.h>
11
#include <ipcfg.h>
12
#include <sdcard.h>
13
#include <spi.h>
14
#include <part_mgr.h>
15
16
#include <
wolfssl/ssl.h
>
17
18
#define MAIN_TASK 1
19
20
extern
void
Main_task(uint32_t);
21
extern
void
setup_ethernet(
void
);
22
extern
void
setup_clock(
void
);
23
extern
void
client_test(
void
);
24
25
/* cert file locations */
26
static
const
char
* caCert =
"a:\\certs\\ca-cert.pem"
;
27
static
const
char
* clientCert =
"a:\\certs\\client-cert.pem"
;
28
static
const
char
* clientKey =
"a:\\certs\\client-key.pem"
;
29
30
static
inline
void
err_sys(
const
char
* msg)
31
{
32
printf(
"wolfssl error: %s\n"
, msg);
33
if
(msg)
34
_mqx_exit(1);
35
}
36
37
/* PPP device must be set manually and
38
* must be different from the default IO channel (BSP_DEFAULT_IO_CHANNEL)
39
*/
40
#define PPP_DEVICE "ittyb:"
41
42
/*
43
* Define PPP_DEVICE_DUN only when using PPP to communicate
44
* to Win9x Dial-Up Networking over a null-modem
45
* This is ignored if PPP_DEVICE is not #define'd
46
*/
47
#define PPP_DEVICE_DUN 1
48
49
#ifndef ENET_IPADDR
50
#define ENET_IPADDR IPADDR(192,168,1,155)
51
#endif
52
53
#ifndef ENET_IPMASK
54
#define ENET_IPMASK IPADDR(255,255,255,0)
55
#endif
56
57
#define GATE_IPADDR IPADDR(192,168,1,1)
58
59
#endif
/* __main_h_ */
60
ssl.h
Header file containing key wolfSSL API.