Implement USART with bot RX and TX interrupts
This commit is contained in:
21
src/common.h
21
src/common.h
@@ -1,23 +1,12 @@
|
||||
#ifndef MAD_COMMON_H
|
||||
#define MAD_COMMON_H
|
||||
#ifndef MAD_CORE_COMMON_H
|
||||
#define MAD_CORE_COMMON_H
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#define BIT(n) (0x1U << (n))
|
||||
#define UNUSED(s) (void)(s)
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <util/delay.h>
|
||||
#define Sleep(ms) _delay_ms(ms)
|
||||
|
||||
void Info(const char *fmt, ...);
|
||||
void Error(const char *fmt, ...);
|
||||
void SetStateFlag(bool is_running);
|
||||
|
||||
void Enable(void);
|
||||
void Disable(void);
|
||||
void SetTemp(long val);
|
||||
void SetDewp(long val);
|
||||
|
||||
#endif // MAD_COMMON_H
|
||||
#endif // MAD_CORE_COMMON_H
|
||||
|
||||
Reference in New Issue
Block a user