Neither it is possible to set the pointer constant nor static, because there would be different types of defition of the variable. If the file is included by multiple other files, I get a multiple definition error. I would prefer directly defining the PinMap_PWM in the header file but I don't know how to do this or wheter it is even possible. Important: This table has to be adjusted for the individually used STM-type! Important: The attribute weak has to be removed! Instead you have to uncomment the combination you like to use and comment the normal one. The file does not include the alternative pin combinations with different names like in the library for VSC. Own_PeripheralPins.c: #include "Own_PeripheralPins.h" The PWM-pin combinations are stored in: \AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\variants\NUCLEOF446RE\PeripheralPins.c. It has to include the corresponding h-file which can be included this in the program. Therefore I suggest to copy the whole table into a new c-file in the program's folder. Instead you have to uncomment the combination you like to use and comment the normal one.ĭirectly editing this library would change the PWM-settings for all programs. The PWM-pin combinations are stored in: \AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\variants\NUCLEO_F446RE\PeripheralPins.c But where do I find these combinations in the datasheet? I only found them randomly in the code but nowhere in the datasheet of the STM32F446RE.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |