-
Notifications
You must be signed in to change notification settings - Fork 3
/
sys.h
40 lines (21 loc) · 1.39 KB
/
sys.h
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
#ifndef __SYS_H
#define __SYS_H
#include "stm32f1xx.h"
/**
* SYS_SUPPORT_OS用于定义系统文件夹是否支持OS
* 0,不支持OS
* 1,支持OS
*/
#define SYS_SUPPORT_OS 0
/*函数申明 *******************************************************************************************/
void sys_nvic_set_vector_table(uint32_t baseaddr, uint32_t offset); /* �����ж�ƫ���� */
void sys_standby(void); /* �������ģʽ */
void sys_soft_reset(void); /* ϵͳ����λ */
uint8_t sys_clock_set(uint32_t plln); /* ʱ�����ú��� */
void sys_stm32_clock_init(uint32_t plln); /* ϵͳʱ�ӳ�ʼ������ */
/* 以下为汇编函数 */
void sys_wfi_set(void); /* ִ��WFIָ�� */
void sys_intx_disable(void); /* �ر������ж� */
void sys_intx_enable(void); /* ���������ж� */
void sys_msr_msp(uint32_t addr); /* ����ջ����ַ */
#endif