2024-07-13 02:22:47 +00:00
|
|
|
|
/*
|
|
|
|
|
* Android.h
|
|
|
|
|
*
|
|
|
|
|
* Created on: 2024<EFBFBD><EFBFBD>5<EFBFBD><EFBFBD>16<EFBFBD><EFBFBD>
|
|
|
|
|
* Author: 34509
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef SOFTWARE_POWER_CTRL_ANDROID_H_
|
|
|
|
|
#define SOFTWARE_POWER_CTRL_ANDROID_H_
|
|
|
|
|
|
|
|
|
|
#include "ch32v30x.h"
|
|
|
|
|
#include <rtthread.h>
|
|
|
|
|
#include <rthw.h>
|
|
|
|
|
#include "drivers/pin.h"
|
|
|
|
|
|
2024-08-19 07:01:40 +00:00
|
|
|
|
/* PE3<45><33><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3><EFBFBD>ĵ<EFBFBD>Դ<EFBFBD><D4B4><EFBFBD><EFBFBD> */
|
2024-07-13 02:22:47 +00:00
|
|
|
|
#define android_PowerCtrl_Pin 2
|
2024-08-19 07:01:40 +00:00
|
|
|
|
/* PE2<45><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD>7 ~10S<30><53><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3>ϵͳ<CFB5><CDB3>ǿ<EFBFBD>Ƹ<EFBFBD>λ */
|
|
|
|
|
#define android_PowerKey_Pin 1
|
|
|
|
|
|
|
|
|
|
|
2024-07-13 02:22:47 +00:00
|
|
|
|
|
|
|
|
|
void android_PowerCtrl_Init(void);
|
|
|
|
|
void android_PowerCtrl_Open(void);
|
|
|
|
|
void android_PowerCtrl_Close(void);
|
|
|
|
|
|
2024-08-19 07:01:40 +00:00
|
|
|
|
void android_PowerKey_Init(void);
|
|
|
|
|
void android_PowerKey_Rest(void);
|
2024-07-13 02:22:47 +00:00
|
|
|
|
|
|
|
|
|
#endif /* SOFTWARE_POWER_CTRL_ANDROID_H_ */
|