QQT912/CW32F030/MCU厂资料/CW32F030_StandardPeripheral.../Libraries/inc/system_cw32f030.h

72 lines
2.6 KiB
C

#ifndef __SYSTEM_CW32F030_H
#define __SYSTEM_CW32F030_H
/******************************************************************************/
/* Include files */
/******************************************************************************/
#include "base_types.h"
#ifdef __cplusplus
extern "C" {
#endif
/******************************************************************************/
/* Global pre-processor symbols/macros ('define') */
/******************************************************************************/
#define HWWD_DISABLE (1)
/**
******************************************************************************
** \brief Clock Setup macro definition
**
** - 0: CLOCK_SETTING_NONE - User provides own clock setting in application
** - 1: CLOCK_SETTING_CMSIS -
******************************************************************************/
#define CLOCK_SETTING_NONE 0u
#define CLOCK_SETTING_CMSIS 1u
/******************************************************************************/
/* */
/* START OF USER SETTINGS HERE */
/* =========================== */
/* */
/* All lines with '<<<' can be set by user. */
/* */
/******************************************************************************/
/******************************************************************************/
/* Global function prototypes ('extern', definition in C source) */
/******************************************************************************/
extern uint32_t SystemCoreClock; // System Clock Frequency (Core Clock)
extern void SystemInit(void); // Initialize the system
//extern void SystemCoreClockUpdate (void); // Update SystemCoreClock variable
/**
*******************************************************************************
** This hook is part of wait loops.
******************************************************************************/
extern void delay1ms(uint32_t u32Cnt);
extern void delay100us(uint32_t u32Cnt);
extern void delay10us(uint32_t u32Cnt);
extern void FirmwareDelay(uint32_t DlyCnt);
extern void memclr(void *pu8Address, uint32_t u32Count);
#ifdef __cplusplus
}
#endif
#endif /* __SYSTEM_PS030 _H__ */