-
大小: 12.99MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-06-29
- 语言: 其他
- 标签: BMS-LTC6803
资源简介
这是基于stm32的BMS,LTC6803芯片均衡,带SOC统计
代码片段和文件信息
#include “accessory.h“
#include “hw_conf.h“
#include “power.h“
#include “ws2812b.h“
void accessory_init(void)
{
palSetPadMode(ACC1_GPIO ACC1_PIN PAL_MODE_OUTPUT_OPENDRAIN | PAL_STM32_OSPEED_MID1);
palSetPad(ACC1_GPIO ACC1_PIN);
palSetPadMode(ACC2_GPIO ACC2_PIN PAL_MODE_ALTERNATE(6));
ws2812b_init();
}
void accessory_update(void)
{
if (!power_is_shutdown())
{
palClearPad(ACC1_GPIO ACC1_PIN);
ws2812b_set_all(0x00FF00);
}
else
{
palSetPad(ACC1_GPIO ACC1_PIN);
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-12-05 23:55 battman-firmware-master\
文件 37 2016-12-05 23:55 battman-firmware-master\.gitignore
文件 118 2016-12-05 23:55 battman-firmware-master\.gitmodules
目录 0 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\
文件 224 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\.project
目录 0 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\
文件 29 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\.gitignore
文件 494 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\AUTHORS.txt
文件 664 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\README.md
目录 0 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\demos\
文件 0 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\demos\.keep
目录 0 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\demos\NRF51\
目录 0 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\demos\NRF51\RT-WVSHARE_BLE400\
文件 5979 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\demos\NRF51\RT-WVSHARE_BLE400\Makefile
文件 16059 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\demos\NRF51\RT-WVSHARE_BLE400\chconf.h
目录 0 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\demos\NRF51\RT-WVSHARE_BLE400\debug\
文件 120 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\demos\NRF51\RT-WVSHARE_BLE400\debug\openocd.cfg
文件 10225 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\demos\NRF51\RT-WVSHARE_BLE400\halconf.h
文件 1780 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\demos\NRF51\RT-WVSHARE_BLE400\main.c
文件 781 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\demos\NRF51\RT-WVSHARE_BLE400\mcuconf.h
文件 694 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\demos\NRF51\RT-WVSHARE_BLE400\readme.txt
目录 0 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\demos\STM32\
目录 0 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\demos\STM32\RT-STM32F429-DISCOVERY-DMA2D\
文件 4432 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\demos\STM32\RT-STM32F429-DISCOVERY-DMA2D\.cproject
文件 15 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\demos\STM32\RT-STM32F429-DISCOVERY-DMA2D\.gitignore
文件 2722 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\demos\STM32\RT-STM32F429-DISCOVERY-DMA2D\.project
文件 6598 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\demos\STM32\RT-STM32F429-DISCOVERY-DMA2D\Makefile
文件 2042 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\demos\STM32\RT-STM32F429-DISCOVERY-DMA2D\STM32F429xI_SDRAM.ld
文件 16071 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\demos\STM32\RT-STM32F429-DISCOVERY-DMA2D\chconf.h
目录 0 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\demos\STM32\RT-STM32F429-DISCOVERY-DMA2D\debug\
文件 4443 2016-12-05 23:55 battman-firmware-master\ChibiOS_16.1.4\community\demos\STM32\RT-STM32F429-DISCOVERY-DMA2D\debug\RT-STM32F429-DISCOVERY-DMA2D (OpenOCD Flash and Run).launch
............此处省略4126个文件信息
评论
共有 条评论