monoZ docs
MZ_common.h
Go to the documentation of this file.
1
10#ifndef MZ_COMMON_H
11#define MZ_COMMON_H
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16#define MZ_IFNULLGOCLEAN(X) do{if(0 == X) goto clean;}while(0);
17#define MZ_IFNOTNULLGOCLEAN(X) do{if(0 != X) goto clean;}while(0);
18#define MZ_IFRETNOTMZ_OKGOCLEAN(X) \
19 do{_ret = X; if(MZ_OK != _ret)goto clean;}while(0);
21#define __INTERNAL static
22#define __EXTERNAL
24#include "stm32l4xx_hal.h"
25#include "MZ_BoardCfg.h"
26#include "MZ_tool_config.h"
27#include "stddef.h"
28//#include "task.h"
29#include "string.h"
30
31
32typedef void (*_mz_fp)(void *);
38typedef _mz_fp mz_fn;
44typedef char mzInt8;
50typedef signed char mzSint8;
56typedef unsigned char mzUint8;
58
63typedef short int mzInt16;
69typedef signed short int mzSint16;
75typedef unsigned short int mzUint16;
77
82typedef long int mzInt32;
88typedef signed long int mzSint32;
94typedef unsigned long int mzUint32;
96
97/* 8 Byte data type */
102typedef long long mzInt64;
108typedef signed long long mzSint64;
110
115typedef unsigned long long mzUint64;
121typedef enum
123 MZ_DEREG,
126
127//#include "MZ_public.h"
128
129#define MZ_VAR_NOINIT __attribute__((section(".mz_RamBlock_noinit")))
130#define MZ_VAR_INIT __attribute__((section(".mz_RamBlock_init")))
131#define MZ_VAR_CONST __attribute__((section(".mz_const_section")))
132#define MZ_FUN __attribute__((section(".mz_FunctionBlock")))
133#define MZ_VAR_CONFIG __attribute__((section(".mz_config_table")))
135#ifdef __cplusplus
136}
137#endif
138#endif
Configuration of monoZ Board This file defines the Hardware and Software features enabled in monoZ Li...
signed long int mzSint32
4 Byte data type
Definition: MZ_common.h:89
signed long long mzSint64
8 Byte data type
Definition: MZ_common.h:109
unsigned char mzUint8
1 Byte data type
Definition: MZ_common.h:57
unsigned long int mzUint32
4 Byte data type
Definition: MZ_common.h:95
signed short int mzSint16
2 Byte data type
Definition: MZ_common.h:70
_mz_fp mz_fn
1 Byte data type
Definition: MZ_common.h:39
signed char mzSint8
1 Byte data type
Definition: MZ_common.h:51
long int mzInt32
4 Byte data type
Definition: MZ_common.h:83
mzReg
monoZ Register and Deregister
Definition: MZ_common.h:123
@ MZ_REG
Definition: MZ_common.h:125
@ MZ_DEREG
Definition: MZ_common.h:124
unsigned long long mzUint64
8 Byte data type
Definition: MZ_common.h:116
short int mzInt16
2 Byte data type
Definition: MZ_common.h:64
unsigned short int mzUint16
2 Byte data type
Definition: MZ_common.h:76
char mzInt8
1 Byte data type
Definition: MZ_common.h:45
void(* _mz_fp)(void *)
Definition: MZ_common.h:33
long long mzInt64
8 Byte data type
Definition: MZ_common.h:103
Configuration of monoZ Tool.