I am using the STM32F072B-DISCO, trying to implement an example code for the touch sensing and followed the instructions of the "Getting Started with touch sensing Control on STM32 MCU". The code given in chapter 7.2.6 results in errors.
Console:
../Core/Src/main.c:78:24: error: conflicting types for 'MyLinRots' 78 | extern TSL_LinRot_T MyLinRots[]; | ^~~~~~~~~ In file included from ../TOUCHSENSING/App/tou
one other error I already removed, was one bracket too much at the end of the example code.
The given example code should be added between the User Code Begin 3 & End which is in the main loop.
Shouldn't be the extern TSL_LinRot_T MyLinRots[];
outside of the loop? According to the manual, I only have to copy and insert this code and it should work without any edits.
link to manual : Getting started with touch sensing control on STM32 microcontrollers
PS: I do not have a lot of programming experience