NNP STM Generic Remote Module
git-main
Loading...
Searching...
No Matches
applicfg.h
Go to the documentation of this file.
1
8
#ifndef INC_ST32_APPLICFG_H_
9
#define INC_ST32_APPLICFG_H_
10
11
#include <string.h>
12
#include <stdio.h>
13
14
// Integers
15
#define INTEGER8 signed char
16
#define INTEGER16 short
17
#define INTEGER24 long
18
#define INTEGER32 long
19
#define INTEGER40 double
20
#define INTEGER48 double
21
#define INTEGER56 double
22
#define INTEGER64 double
23
24
// Unsigned integers
25
#define UNS8 unsigned char
26
#define UNS16 unsigned short
27
#define UNS32 unsigned long
28
#define UNS24 unsigned long
29
#define UNS40 unsigned double
30
#define UNS48 unsigned double
31
#define UNS56 unsigned double
32
#define UNS64 unsigned double
33
34
35
// Reals
36
#define REAL32 float
37
#define REAL64 double
38
//#include <can_stm.h>
39
40
// MSG functions
41
// not finished, the strings have to be placed to the flash and printed out
42
// using the printf_P function
44
// ---------------------
45
#ifdef DEBUG_ERR_CONSOLE_ON
46
#define MSG_ERR(num, str, val) \
47
printf(num, ' '); \
48
printf(str); \
49
printf(val); \
50
printf('\n');
51
#else
52
# define MSG_ERR(num, str, val)
53
#endif
54
56
// ---------------------
57
#ifdef DEBUG_WAR_CONSOLE_ON
58
#define MSG_WAR(num, str, val) \
59
printf(num, ' '); \
60
printf(str); \
61
printf(val); \
62
printf('\n');
63
#else
64
# define MSG_WAR(num, str, val)
65
#endif
66
67
typedef
void
* CAN_HANDLE;
68
69
typedef
void
* CAN_PORT;
70
71
#endif
/* INC_ST32_APPLICFG_H_ */
Core
Inc
st32
applicfg.h
Generated by
1.12.0