• Rodrigo Garcia's avatar
    Apply this change to 2.0.9 (#8131) · 85d179c6
    Rodrigo Garcia authored
    * Fix the F_CPU frequency for the ESP32-S3
    
    Hello, I was using the FastLED library and it was complaining about F_CPU not being defined. So, I just noticed that it is not defined for the ESP32-S3 module. So I made this change in the header file and it compiled. Therefore I wanted to propose this change to the HAL library to improve compatibility. Thank you for your time.
    
    * Makes F_CPU generic based on the SoC frequency
    
    Works for ESP32, ESP32C3, ESP32S2, ESP32S3
    
    * Includes ESP32C3 in the F_CPU definition
    
    Necessary for ESP32 Arduino Core 2.0.x based on IDF 4.4
    
    ---------
    Co-authored-by: default avatarAli Devrim OGUZ <11381547+devrim-oguz@users.noreply.github.com>
    85d179c6
esp32-hal.h 4.26 KB