2021-04-13 08:56:21 -04:00
|
|
|
|
|
|
|
#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_COUNTIO_COUNTER_H
|
|
|
|
#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_COUNTIO_COUNTER_H
|
|
|
|
|
|
|
|
#include "common-hal/microcontroller/Pin.h"
|
|
|
|
|
|
|
|
#include "py/obj.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
mp_obj_base_t base;
|
2021-12-30 21:49:52 -05:00
|
|
|
uint8_t pin;
|
2021-04-13 08:56:21 -04:00
|
|
|
mp_int_t count;
|
|
|
|
} countio_counter_obj_t;
|
|
|
|
|
|
|
|
#endif // MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_COUNTIO_COUNT_H
|