initial commit
This commit is contained in:
12
hal/hal_battery/atbm6441/hal_interface_battery_atbm6441.c
Executable file
12
hal/hal_battery/atbm6441/hal_interface_battery_atbm6441.c
Executable 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
7
hal/hal_battery/config.mk
Executable 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
|
||||
34
hal/hal_battery/hal_interface_battery.h
Executable file
34
hal/hal_battery/hal_interface_battery.h
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user