typedef struct {
uint32_t csr;
uint32_t div;
uint32_t top;
} pwm_config;
// pwm_set_chan_level(uint slice_num, uint chan, uint16_t level)
struct pwm_slice_t {
uint16_t level_a;
uint16_t level_b;
};
struct pwm_pins_t {
pwm_config pwm_cfg;
uint8_t pin;
uint8_t slice_num;
uint8_t channel[2];
};
void setup() {
Serial.begin(115200);
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
}