52 lines
1.8 KiB
C
52 lines
1.8 KiB
C
/**
|
||
**************************************************************************
|
||
* @file wk_system.h
|
||
* @brief workbench system header file
|
||
**************************************************************************
|
||
* Copyright notice & Disclaimer
|
||
*
|
||
* The software Board Support Package (BSP) that is made available to
|
||
* download from Artery official website is the copyrighted work of Artery.
|
||
* Artery authorizes customers to use, copy, and distribute the BSP
|
||
* software and its related documentation for the purpose of design and
|
||
* development in conjunction with Artery microcontrollers. Use of the
|
||
* software is governed by this copyright notice and the following disclaimer.
|
||
*
|
||
* THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,
|
||
* GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS,
|
||
* TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR
|
||
* STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS,
|
||
* INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
|
||
* FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
|
||
*
|
||
**************************************************************************
|
||
*/
|
||
/* define to prevent recursive inclusion -------------------------------------*/
|
||
#ifndef __WK_SYSTEM_H
|
||
#define __WK_SYSTEM_H
|
||
|
||
#ifdef __cplusplus
|
||
extern "C" {
|
||
#endif
|
||
|
||
#include "at32f403a_407.h"
|
||
|
||
void wk_timebase_init(void);
|
||
void wk_timebase_handler(void);
|
||
void wk_delay_ms(uint32_t delay);
|
||
void Delay_us(uint32_t us);
|
||
|
||
/* TMR6 1ms 硬件定时器(独立于 SysTick 的时间基准) */
|
||
void wk_tmr6_1ms_init(void);
|
||
void wk_tmr6_1ms_tick(void);
|
||
uint32_t wk_tmr6_tick_get(void);
|
||
|
||
/* TMR7 1ms:关机键看门狗(优先级高于 TMR6,主循环卡死仍可关) */
|
||
void wk_tmr7_pwrkey_init(void);
|
||
|
||
#ifdef __cplusplus
|
||
}
|
||
#endif
|
||
|
||
#endif
|