add support for f4, h7 series chips

not tested, but should work because it's just I2C
This commit is contained in:
Kilian Bracher 2024-06-27 15:29:42 +02:00
parent c88b00dfe1
commit a41cc7e9de
Signed by: k.bracher
SSH Key Fingerprint: SHA256:mXpyZkK7RDiJ7qeHCKJX108woM0cl5TrCvNBJASu6lM

View File

@ -2,7 +2,17 @@
#ifndef DS2482_HAL_H
#define DS2482_HAL_H
#include "stm32f3xx_hal.h"
#ifdef STM32F3
#include "stm32f3xx_hal.h"
#elifdef STM32F4
#include "stm32f4xx_hal.h"
#elifdef STM32H7
#include "stm32h7xx_hal.h"
#else
#error "No target defined"
#endif
#define DS2482_I2C_ADDR 0x30 // TODO: change to actual address