Files @ f2990941d9d9
Branch filter:

Location: therm/gpio.h - annotation

Ethan Zonca
Added untested jump-to-DFU using option bytes per ST forums. Should work, need to make sure the user program is run after DFU flash so the bits are unset
#ifndef GPIO_H
#define GPIO_H

#include <inttypes.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 init_gpio(void);

#endif

// vim:softtabstop=4 shiftwidth=4 expandtab