atsam: Add support for "timer" controlled hardware pwm pins

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2019-05-29 18:07:39 -04:00
parent f96239019a
commit 3910a44cc9
2 changed files with 145 additions and 8 deletions

View File

@@ -25,7 +25,7 @@ struct gpio_pwm {
void *reg;
};
struct gpio_pwm gpio_pwm_setup(uint8_t pin, uint32_t cycle_time, uint8_t val);
void gpio_pwm_write(struct gpio_pwm g, uint8_t val);
void gpio_pwm_write(struct gpio_pwm g, uint32_t val);
struct gpio_adc {
uint32_t chan;