Skip to main content
Vito Marolda
Associate III
Oct 28, 2019 1:08 PM UTC
Question

how to get USE_HAL_I2C_REGISTER_CALLBACKS properly defined?

How to get USE_HAL_I2C_REGISTER_CALLBACKS properly defined?

Defining it in User Constants in CubeMx, puts the #define at the bottom so stm32l4xx_hal.h cannot see it defined, and it does not work.

This topic has been closed for replies.

1 reply

DMort
Visitor II
Nov 15, 2019 10:30 PM UTC

Hey Vito, have a look in stm32l4xx_hal_conf.h. It should be defined there as generated by CubeMX.