initial commit

This commit is contained in:
2025-08-05 15:53:44 +08:00
commit 09dc02ae52
553 changed files with 137665 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#include "hal_interface_battery.h"
int32_t hal_battery_init(){
}
int32_t hal_battery_deinit(){
}
int32_t hal_battery_get(HAL_BATTERY_INFO *p_info){
}

7
hal/hal_battery/config.mk Executable file
View File

@@ -0,0 +1,7 @@
SRC += $(wildcard $(HAL_DIR)/hal_battery/*.c)
CFLAGS += -I$(HAL_DIR)/hal_battery
ifdef MOD_BATTERY
SRC += $(wildcard $(HAL_DIR)/hal_battery/$(MOD_BATTERY)/*.c)
else
$(warning warning you sure no audio?)
endif

View File

@@ -0,0 +1,34 @@
#ifndef __HAL_INTERFACE_BATTERY_H__
#define __HAL_INTERFACE_BATTERY_H__
#include <stdint.h>
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
typedef enum{
SOLAR_IN = 0x1,
}BATTERY_STATUS;
typedef struct
{
uint8_t percent;
uint8_t charging;
BATTERY_STATUS status;
}HAL_BATTERY_INFO;
int32_t hal_battery_init();
int32_t hal_battery_deinit();
int32_t hal_battery_get(HAL_BATTERY_INFO *p_info);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif