perf: connect external error library

This commit is contained in:
2025-08-11 10:53:09 +03:00
parent 8bc9f02ad8
commit da2fd0d2a8
4 changed files with 9 additions and 29 deletions

View File

@@ -5,30 +5,14 @@
#include "avr/io.h"
#include "avr/interrupt.h"
#include "stdbool.h"
#include "avr_err.h"
#include "avr_bit_defs.h"
#ifdef __cplusplus
extern "C"
{
#endif
typedef enum
{
AVR_FAIL = -1,
AVR_OK,
AVR_ERR_NO_MEM,
AVR_ERR_INVALID_ARG,
AVR_ERR_INVALID_STATE,
AVR_ERR_INVALID_SIZE,
AVR_ERR_NOT_FOUND,
AVR_ERR_NOT_SUPPORTED,
AVR_ERR_TIMEOUT,
AVR_ERR_INVALID_RESPONSE,
AVR_ERR_INVALID_CRC,
AVR_ERR_INVALID_VERSION,
AVR_ERR_NOT_FINISHED,
AVR_ERR_NOT_ALLOWED
} avr_err_t;
/**
* @brief Initialize I2C bus.
*