-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGenericTypes.h
More file actions
56 lines (42 loc) · 1.64 KB
/
GenericTypes.h
File metadata and controls
56 lines (42 loc) · 1.64 KB
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
/******************************************************************************
* #Author : Zafer Satılmış
* #Revision : 1.0
* #Date : Apr 30, 2019 - 2:40:38 PM
* #File Name : GenericTypes.h
* #File Path : GenericTypes.h
*
*******************************************************************************/
/******************************************************************************
*
******************************************************************************/
/******************************IFNDEF ? DEFINE********************************/
#ifndef __GENERIC_TYPES_H__
#define __GENERIC_TYPES_H__
/*********************************INCLUDES*************************************/
#include "stm32f4xx_hal.h"
/******************************MACRO DEFINITIONS*******************************/
#define DBG_ERR(format, args...) ;
#define DBG_WARNING(format, args...) ;
#define DBG_INFO(format, args...) ;
#define IS_NULL_PTR(x) (NULL == x)
#define IS_SAFELY_PTR(x) (NULL != x)
#ifndef FALSE
#define FALSE (0)
#endif
#ifndef TRUE
#define TRUE (1)
#endif
#define SYSTEM_VERSION "V1.01"
/*******************************TYPE DEFINITIONS ******************************/
typedef void (*VoidCallback)(void);
typedef enum
{
EN_FAILURE = -1,
EN_SUCCESS = 0
}RETURN_STATUS;
typedef unsigned int BOOL;
typedef BOOL FLAG;
/************************* GLOBAL VARIBALE REFERENCES *************************/
/************************* GLOBAL FUNCTION DEFINITIONS ************************/
#endif /* __GENERIC_TYPES_H__ */
/********************************* End Of File ********************************/