ledc: apply general check macro
ledc: apply general check macro

Standardize LEDC_CHECK() and LEDC_ARG_CHECK() in ledc.c to ESP_RETURN_ON_FALSE() in esp_check.h.

espressif/esp-idf,espressif/esp-idf,espressif/esp-idf,espressif/esp-idf