-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMy_BSP.h
More file actions
80 lines (66 loc) · 2.67 KB
/
My_BSP.h
File metadata and controls
80 lines (66 loc) · 2.67 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
77
78
79
//-----------------------------------------------------------------------------
// GUI.h
//
// Created on : 2016-7-14
// Author : DGVY
// version : V1.0
// brief :
//-----------------------------------------------------------------------------
// Attention:
//
//-----------------------------------------------------------------------------
// Define to prevent recursive inclusion
//-----------------------------------------------------------------------------
#ifndef __MY_BSP_H
#define __MY_BSP_H
#ifdef __cplusplus
extern "C" {
#endif
//-----------------------------------------------------------------------------
// Includes
//-----------------------------------------------------------------------------
#include <stdint.h>
#include "sys.h"
//-----------------------------------------------------------------------------
// Private Typedef
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// Private Define
#define LED_1_ON PAout(15) = 0;
#define LED_1_OFF PAout(15) = 1;
#define LED_2_ON PCout(10) = 0;
#define LED_2_OFF PCout(10) = 1;
#define LED_3_ON PCout(11) = 0;
#define LED_3_OFF PCout(11) = 1;
#define LED_4_ON PAout(4) = 0;
#define LED_4_OFF PAout(4) = 1;
#define LED_5_ON PAout(5) = 0;
#define LED_5_OFF PAout(5) = 1;
#define LED_6_ON PAout(6) = 0;
#define LED_6_OFF PAout(6) = 1;
//-----------------------------------------------------------------------------
// Private Macro
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// Exported constant
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// Extern Variables
//-----------------------------------------------------------------------------
/*****************************************************************************\
* Function Name : Init
* Input : uint32_t uart_bound [初始化UART波特率]
* uint8_t delay_sysclk [系统时钟频率]
* Output : None
* Return : None
* Description : 板级初始化,初始化硬件
* 默认uart波特率为115200
* 默认系统时钟为168MHz
\*****************************************************************************/
void BSP_Init(uint32_t uart_bound, uint8_t delay_sysclk);
void SoftReset(void);
#ifdef __cplusplus
}
#endif
#endif /* __MY_BSP_H */
/******************* (C) COPYRIGHT 2016 DGVY **********END OF FILE***********/