EG33 and C++

This commit is contained in:
Andrey 2023-10-06 10:21:57 -04:00
parent 19dde2fcf8
commit ebf749f746
3 changed files with 7 additions and 4 deletions

View File

@ -7,7 +7,7 @@
#include "hal.h"
#include "stm32_gpio.h"
#include "efilib.h"
#include "unused.h"
#include "board_io.h"

View File

@ -7,6 +7,7 @@
#pragma once
#include "unused.h"
#include <stdint.h>
#ifdef __cplusplus
@ -53,9 +54,6 @@ int mytolower(const char c);
int efiPow10(int param);
bool startsWith(const char *line, const char *prefix);
#ifndef UNUSED
#define UNUSED(x) (void)(x)
#endif
/**
* Rounds value to specified precision.

5
firmware/util/unused.h Normal file
View File

@ -0,0 +1,5 @@
#pragma once
#ifndef UNUSED
#define UNUSED(x) (void)(x)
#endif