forked from gary/BCU
2
0
Fork 0
BCU/library/drv_stm32f4xx/drv_misc.h

33 lines
556 B
C
Raw Permalink Normal View History

2024-11-26 15:52:49 +08:00
#ifndef _DRV_MISC_H_
#define _DRV_MISC_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "kit_macro.h"
typedef enum
{
kPwrOffVolt_2_2,
kPwrOffVolt_2_3,
kPwrOffVolt_2_4,
kPwrOffVolt_2_5,
kPwrOffVolt_2_6,
kPwrOffVolt_2_7,
kPwrOffVolt_2_8,
kPwrOffVolt_2_9,
kPwrOffVolt_End,
}PwrOffVolt;
void drv_misc_reset_mcu(void);
void drv_misc_reset_core(void);
void drv_misc_set_nvic(int8_t irq_channel, uint8_t priority);
void drv_misc_cfg_pwr_off_interrupt(uint8_t priority,PwrOffVolt volt, NoArgFuncCall int_call);
#ifdef __cplusplus
}
#endif
#endif