56 lines
1.7 KiB
C
56 lines
1.7 KiB
C
|
/**
|
|||
|
****************************************************************************************************
|
|||
|
* @file sys.h
|
|||
|
* @author <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ԭ<EFBFBD><EFBFBD><EFBFBD>Ŷ<EFBFBD>(ALIENTEK)
|
|||
|
* @version V1.0
|
|||
|
* @date 2021-10-14
|
|||
|
* @brief ϵͳ<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<EFBFBD>жϹ<EFBFBD><EFBFBD><EFBFBD>/GPIO<EFBFBD><EFBFBD><EFBFBD>õ<EFBFBD>)
|
|||
|
* @license Copyright (c) 2020-2032, <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӿƼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˾
|
|||
|
****************************************************************************************************
|
|||
|
* @attention
|
|||
|
*
|
|||
|
* ʵ<EFBFBD><EFBFBD>ƽ̨:<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ԭ<EFBFBD><EFBFBD> ̽<EFBFBD><EFBFBD><EFBFBD><EFBFBD> F407<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƶ:www.yuanzige.com
|
|||
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̳:www.openedv.com
|
|||
|
* <EFBFBD><EFBFBD>˾<EFBFBD><EFBFBD>ַ:www.alientek.com
|
|||
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ:openedv.taobao.com
|
|||
|
*
|
|||
|
* <EFBFBD><EFBFBD>һ<EFBFBD>η<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
* V1.0 20211014
|
|||
|
|
|||
|
****************************************************************************************************
|
|||
|
*/
|
|||
|
|
|||
|
#ifndef _SYS_H
|
|||
|
#define _SYS_H
|
|||
|
|
|||
|
#include "stm32f4xx.h"
|
|||
|
#include "core_cm4.h"
|
|||
|
#include "stm32f4xx_hal.h"
|
|||
|
|
|||
|
|
|||
|
/**
|
|||
|
* SYS_SUPPORT_OS<EFBFBD><EFBFBD><EFBFBD>ڶ<EFBFBD><EFBFBD><EFBFBD>ϵͳ<EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD>֧<EFBFBD><EFBFBD>OS
|
|||
|
* 0,<EFBFBD><EFBFBD>֧<EFBFBD><EFBFBD>OS
|
|||
|
* 1,֧<EFBFBD><EFBFBD>OS
|
|||
|
*/
|
|||
|
#define SYS_SUPPORT_OS 0
|
|||
|
|
|||
|
|
|||
|
/*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*******************************************************************************************/
|
|||
|
|
|||
|
void sys_nvic_set_vector_table(uint32_t baseaddr, uint32_t offset); /* <20><><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>ƫ<EFBFBD><C6AB><EFBFBD><EFBFBD> */
|
|||
|
void sys_standby(void); /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽ */
|
|||
|
void sys_soft_reset(void); /* ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD>λ */
|
|||
|
uint8_t sys_stm32_clock_init(uint32_t plln, uint32_t pllm, uint32_t pllp, uint32_t pllq); /* <20><><EFBFBD><EFBFBD>ϵͳʱ<CDB3><CAB1> */
|
|||
|
|
|||
|
|
|||
|
/* <20><><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD>ຯ<EFBFBD><E0BAAF> */
|
|||
|
void sys_wfi_set(void); /* ִ<><D6B4>WFIָ<49><D6B8> */
|
|||
|
void sys_intx_disable(void); /* <20>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD> */
|
|||
|
void sys_intx_enable(void); /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD> */
|
|||
|
void sys_msr_msp(uint32_t addr); /* <20><><EFBFBD><EFBFBD>ջ<EFBFBD><D5BB><EFBFBD><EFBFBD>ַ */
|
|||
|
|
|||
|
#endif
|
|||
|
|