#ifndef CONFIG_H
#define CONFIG_H

static constexpr unsigned HALF_LEN = 0x80u;
static constexpr unsigned MAXPWM   = 6000u;

#if __riscv
#define LED_CFG GPIOA,0
#define BUT_CFG GPIOA,3,(GPIO_Speed_In | GPIO_UPDI_MPPO)
#elif __linux__
#define LED_CFG 0
#define BUT_CFG 3
#else
#error "bad target"
#endif

#endif // CONFIG_H