-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmcuf_base.h
More file actions
76 lines (60 loc) · 1.9 KB
/
mcuf_base.h
File metadata and controls
76 lines (60 loc) · 1.9 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/**
* Copyright (c) 2020 ZxyKira
* All rights reserved.
*
* SPDX-License-Identifier: MIT
*/
#ifndef MCUF_D9A3210A_778E_466F_BA3E_7A53ACD9064E
#define MCUF_D9A3210A_778E_466F_BA3E_7A53ACD9064E
/* ****************************************************************************************
* Macro
*/
#pragma clang diagnostic ignored "-Wnon-virtual-dtor"
#pragma clang diagnostic ignored "-Wdeprecated-copy-dtor"
#pragma clang diagnostic ignored "-Wc++98-compat"
#pragma clang diagnostic ignored "-Wweak-vtables"
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wmissing-noreturn"
#pragma clang diagnostic ignored "-Wformat-nonliteral"
#pragma clang diagnostic ignored "-Wpadded"
#pragma clang diagnostic ignored "-Wc++17-extensions"
#define abstract =0
#define extends :public
#define implements ,
#define interface struct
#ifndef VACCESS
#define VACCESS(type, target) (*static_cast<volatile type*>(&target))
#endif
#ifndef ALIGN32BIT
#define ALIGN32BIT(source) if(source&0x3){source = (source & 0xFFFFFFF8) + 4;}
#endif
#ifndef ALIGN64BIT
#define ALIGN64BIT(source) if(source&0x7){source = (source & 0xFFFFFFF8) + 8;}
#endif
#ifdef DEBUG
#ifndef __CLASSPATH__
#define __CLASSPATH__ __PRETTY_FUNCTION__
#endif
#ifndef ASSERT
#define ASSERT(expr, m, e) if(!expr) sys::System::error(m, e)
#endif
#else
#ifndef __CLASSPATH__
#define __CLASSPATH__ nullptr
#endif
#ifndef ASSERT
#define ASSERT(expr, m, e) ((void)0)
#endif
#endif
/* ****************************************************************************************
* Include
*/
#include <stdint.h>
#include <stdarg.h>
/* ****************************************************************************************
* Include folder
*/
/* *****************************************************************************************
* End of file
*/
#endif /* MCUF_AT32F415_D9A3210A_778E_466F_BA3E_7A53ACD9064E */