add support for f4, h7 series chips
not tested, but should work because it's just I2C
This commit is contained in:
parent
c88b00dfe1
commit
a41cc7e9de
12
DS2482_HAL.h
12
DS2482_HAL.h
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user