kopia lustrzana https://github.com/OpenRTX/OpenRTX
core: battery: added Li-Ion battery type, updated targets accordingly
rodzic
71c144d426
commit
0962b533c7
|
@ -29,6 +29,9 @@
|
|||
#if defined(CONFIG_BAT_LIPO)
|
||||
static const uint16_t vcell_max = 0x0414; // 4.08V
|
||||
static const uint16_t vcell_min = 0x039C; // 3.61V
|
||||
#elif defined (CONFIG_BAT_LIION)
|
||||
static const uint16_t vcell_max = 0x0433; // 4.15V
|
||||
static const uint16_t vcell_min = 0x0333; // 3.2V
|
||||
#elif defined(CONFIG_BAT_NONE)
|
||||
#else
|
||||
#error Please define a battery type into platform/targets/.../hwconfig.h
|
||||
|
|
|
@ -62,7 +62,7 @@ extern const struct sky73210 pll;
|
|||
#define CONFIG_SCREEN_BRIGHTNESS
|
||||
|
||||
/* Battery type */
|
||||
#define CONFIG_BAT_LIPO
|
||||
#define CONFIG_BAT_LIION
|
||||
#define CONFIG_BAT_NCELLS 2
|
||||
|
||||
/* Device supports M17 mode */
|
||||
|
|
|
@ -62,7 +62,7 @@ extern const struct sky73210 pll;
|
|||
#define CONFIG_SCREEN_BRIGHTNESS
|
||||
|
||||
/* Battery type */
|
||||
#define CONFIG_BAT_LIPO
|
||||
#define CONFIG_BAT_LIION
|
||||
#define CONFIG_BAT_NCELLS 2
|
||||
|
||||
/* Device supports M17 mode */
|
||||
|
|
|
@ -56,7 +56,7 @@ extern const struct Adc adc1;
|
|||
#define CONFIG_PIX_FMT_RGB565
|
||||
|
||||
/* Battery type */
|
||||
#define CONFIG_BAT_LIPO
|
||||
#define CONFIG_BAT_LIION
|
||||
#define CONFIG_BAT_NCELLS 2
|
||||
|
||||
/* Device supports M17 mode */
|
||||
|
|
|
@ -51,7 +51,7 @@ extern const struct spiDevice c6000_spi;
|
|||
#define CONFIG_SCREEN_BRIGHTNESS
|
||||
|
||||
/* Battery type */
|
||||
#define CONFIG_BAT_LIPO
|
||||
#define CONFIG_BAT_LIION
|
||||
#define CONFIG_BAT_NCELLS 2
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -61,7 +61,7 @@ extern const struct Adc adc1;
|
|||
#define CONFIG_SCREEN_BRIGHTNESS
|
||||
|
||||
/* Battery type */
|
||||
#define CONFIG_BAT_LIPO
|
||||
#define CONFIG_BAT_LIION
|
||||
#define CONFIG_BAT_NCELLS 2
|
||||
|
||||
/* Device supports M17 mode */
|
||||
|
|
|
@ -58,7 +58,7 @@ extern const struct Adc adc1;
|
|||
#define CONFIG_PIX_FMT_RGB565
|
||||
|
||||
/* Battery type */
|
||||
#define CONFIG_BAT_LIPO
|
||||
#define CONFIG_BAT_LIION
|
||||
#define CONFIG_BAT_NCELLS 2
|
||||
|
||||
/* Device supports M17 mode */
|
||||
|
|
Ładowanie…
Reference in New Issue