I am working with STM32F103C8 and Arduino framework
It seems that TIMERx_BASE is a whell know definition but not recognized in platfomio.
TIMER4_BASE->CCR1 = 1000; //Set the ESC 1 output
TIMER4_BASE->CCR2 = 1000; //Set the ESC 2 ou
TIMER4_BASE->CCR3 = 1000; //Set the ESC 3 ou
TIMER4_BASE->CCR4 = 1000;
is to generate a pulse of 1000us, on tue four chanels of TIMER4 Where i have to look for ?
Hi thank again, I have to say what I am doing. I am trying to make the flight controller for a drone, but my knowledge about drone is zero. So looking on the net I discover a project YMFC32 that look like a good to start also because this job is coming out from a thesis. This man has given a software and I am trying to import all the files in platformio, at least to start.
By the way I discover from where is coming “TIMER4_BASE” It is coming from a file (I have no found) containing some structure defining all the address of CPU registers.I have not jet tested but I presume that also Tim4→CCR1=1000 means that 1000 is load on the register CCR1 of the TIMER4