in commit 2e8c85d8fff823232af46cc0f353ac170d0971e9 of esp-idf the ledc.c driver was changed and it no longer assumes APB clock use and it needs to be set explicitly
in commit 2e8c85d8fff823232af46cc0f353ac170d0971e9 of esp-idf the ledc.c driver was changed and it no longer assumes APB clock use and it needs to be set explicitly