Files
luban-lite-t3e-pro/application/baremetal/bootloader/include/upg_detect.h

27 lines
445 B
C
Raw Normal View History

2023-08-30 16:21:18 +08:00
/*
* Copyright (c) 2023, Artinchip Technology Co., Ltd
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __BL_UPG_DETECT_H_
#define __BL_UPG_DETECT_H_
#ifdef __cplusplus
extern "C" {
#endif
#define UPG_DETECT_REASON_SOFT 1
#define UPG_DETECT_REASON_PIN 2
s32 upg_mode_detect(void);
s32 upg_reg_flag_check(void);
void upg_reg_flag_clear(void);
s32 upg_boot_pin_check(void);
#ifdef __cplusplus
}
#endif
#endif /* __BL_UPG_DETECT_H_ */