Files @ c1b2840961f0
Branch filter:

Location: therm-ng/inc/system/error.h

Ethan Zonca <ethanzonca>
Hacking thermostatic mode into operation. This code needs some love.
#ifndef ERROR_H
#define ERROR_H

// Each error message has an enum entry
// If adding errors, remember to define a message for each in error.c
enum error_number
{
    ERR_INFO = 0,
    ERR_GENERIC,
    ERR_PERIPHINIT,
    ERR_COMMANDTIMEOUT,
};

void error_assert(const uint8_t errno);
void error_assert_info(const uint8_t errno, const char* details);
uint8_t error_check(const uint8_t errno);
uint8_t error_occurred(void);
uint8_t error_count(void);

#endif