Closed St0RM53 closed 2 years ago
For the Kinetis chips, the define appears to be KINETIS_SYSCLK_FREQUENCY
rather than STM32_SYSCLK
. CYCLES_PER_SEC
will need to be made aware of this, and the NOP fudge factor(s) found for K20x
and KL2x
. Apart from that I don't see any other STM32-oriented code in the driver (though my eyes are not trained for ChibiOS).
Ok i can put this then should compile. However i don't know what the proper NOP fudge factor value for K20x is, or what it actually is.
#define STM32_SYSCLK KINETIS_SYSCLK_FREQUENCY
#define NOP_FUDGE 0.4
edit: seems to be functional after setting led_config_t, i need to configure further and see if it breaks
edit2: Functionality works as expected
The WS2812 driver used for RGB Matrix functionality does not support KINETIS ARM microcontrollers.
Feature Request Type
Description
I have been waiting to implement this functionality on my finished keyboard i made about 3 months ago. This has been discussed on the discord server and while some process was made, the driver has no proper definitions to compile and work for KINETIS boards.
Setting the following in:
config.h
will result in the following compilation output:
Since it doesn't compile i can't verify if the E1 pin is defined (since in the past not all of the teensy 3.2 pins were defined). In that case this should be added in the config file:
define E1 PAL_LINE(GPIOE, 1)
This is the furthest i could get with my skills. Hopefully the community can implement this properly since it will open up the functionality of QMK even further:) I can provide hardware testing since it is already build and used daily.