mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-22 06:04:03 -06:00
gpio: Merge gpio_adc_sample_time() into gpio_adc_sample()
Return the number of clock ticks to wait directly from gpio_adc_sample(). This simplifies the ADC interface. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
5419c456ac
commit
7c8addc5c5
5 changed files with 29 additions and 34 deletions
|
@ -27,17 +27,14 @@ void gpio_pwm_write(struct gpio_pwm g, uint8_t val) {
|
|||
struct gpio_adc gpio_adc_setup(uint8_t pin) {
|
||||
return (struct gpio_adc){.pin=pin};
|
||||
}
|
||||
uint32_t gpio_adc_sample_time(void) {
|
||||
uint32_t gpio_adc_sample(struct gpio_adc g) {
|
||||
return 0;
|
||||
}
|
||||
uint8_t gpio_adc_sample(struct gpio_adc g) {
|
||||
return 0;
|
||||
}
|
||||
void gpio_adc_clear_sample(struct gpio_adc g) {
|
||||
}
|
||||
uint16_t gpio_adc_read(struct gpio_adc g) {
|
||||
return 0;
|
||||
}
|
||||
void gpio_adc_cancel_sample(struct gpio_adc g) {
|
||||
}
|
||||
|
||||
void spi_config(void) {
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue