Files @ 9294a623e8e5
Branch filter:

Location: therm/gpio.h - annotation

Ethan Zonca
Added support for both heaters and coolers as well as thermostatic control
#ifndef GPIO_H
#define GPIO_H

#include <inttypes.h>
#include "stm32f0xx_hal.h"
#include "stm32f0xx_hal_conf.h"
#include "config.h"

#define CHANGE_PERIOD_MS 100
#define CHANGE_ELAPSED (HAL_GetTick() - change_time_reset) > CHANGE_PERIOD_MS
#define CHANGE_RESET change_time_reset = HAL_GetTick()


void user_input(uint16_t* to_modify);
void user_input_signed(int32_t* to_modify);
void gpio_init(void);

#endif

// vim:softtabstop=4 shiftwidth=4 expandtab