bs_bcu_app/drv/drv_sys.h

57 lines
1.6 KiB
C
Raw Permalink Normal View History

2024-11-07 17:24:19 +08:00
/**
****************************************************************************************************
* @file sys.h
* @author XX<EFBFBD>Ŷ<EFBFBD>
* @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,
****************************************************************************************************
* @attention
*
* <EFBFBD><EFBFBD><EFBFBD>ع<EFBFBD><EFBFBD><EFBFBD>ϵͳƽ̨<EFBFBD><EFBFBD>STM32F407
*
* <EFBFBD><EFBFBD>һ<EFBFBD>η<EFBFBD><EFBFBD><EFBFBD>
****************************************************************************************************
*/
#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>ַ */
void sys_msr_msp(uint32_t addr); /* 设置栈顶地址 */
#endif