Skip to content

Instantly share code, notes, and snippets.

@Franky1
Franky1 / bq2022A.c
Created May 3, 2022 13:21
bq2022A example reading library for STM32 or other MCUs
#include <stdint.h>
#include <stdbool.h>
#include <stm32f0xx_ll_gpio.h>
const int tRST = 600;
const int tPPD = 40;
const int tPPmin = 60;
const int tRSTREC = 480;
const int tWSTRB = 7;
const int tWDH = 90;