-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinclude.h
More file actions
42 lines (29 loc) · 996 Bytes
/
include.h
File metadata and controls
42 lines (29 loc) · 996 Bytes
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
#ifndef INCLUDE_H
#define INCLUDE_H
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
// #define USE_STDPERIPH_DRIVER // to use stm32f10x_conf.h
// #ifdef DEBUG
// #define ASSERT_FAILED() (printf("Assert failed %s: line %d", __FILE__, __LINE__);while(1))
// #define ASSERT(expr) (expr ? 0 : ASSERT_FAILED())
// #else
// #define ASSERT(expr) ((void)0)
// #endif
#define TRUE 1;
#define FALSE 0;
typedef unsigned char INT8U; // Unsigned 8 bit quantity
typedef unsigned short INT16U; // Unsigned 16 bit quantity
typedef unsigned int INT32U; // Unsigned 32 bit quantity
typedef char bool_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef char sint8_t;
typedef short sint16_t;
typedef int sint32_t;
typedef unsigned int OS_STK; // Each stack entry is 32-bit wide(OS Stack)
// WanShell Response Signal
// Temp code
#define USART_RX_BUF_SIZE 4
#endif