auto-sync

This commit is contained in:
rusEfi 2014-11-11 11:03:20 -06:00
parent 0079636f4c
commit 2ce4e928b4
4 changed files with 14 additions and 3 deletions

View File

@ -12,6 +12,8 @@
#define EFI_USE_CCM TRUE
#define EFI_ENABLE_ASSERTS FALSE
//#define EFI_UART_ECHO_TEST_MODE TRUE
#define EFI_USE_UART_FOR_CONSOLE FALSE

View File

@ -14,6 +14,7 @@ extern "C"
#endif /* __cplusplus */
#include "obd_error_codes.h"
#include "efifeatures.h"
#include "stdbool.h"
/**
@ -53,9 +54,13 @@ int getRusEfiVersion(void);
* @deprecated Global panic is inconvenient because it's hard to deliver the error message while whole instance
* is stopped. Please use firmwareWarning() instead
*/
#define efiAssert(condition, message, result) { if (!(condition)) { firmwareError(message); return result; } }
#define efiAssertVoid(condition, message) { if (!(condition)) { firmwareError(message); return; } }
#if EFI_ENABLE_ASSERTS
#define efiAssert(condition, message, result) { if (!(condition)) { firmwareError(message); return result; } }
#define efiAssertVoid(condition, message) { if (!(condition)) { firmwareError(message); return; } }
#else /* EFI_ENABLE_ASSERTS */
#define efiAssert(condition, message, result) { (void)(condition); }
#define efiAssertVoid(condition, message) { (void)(condition); }
#endif /* EFI_ENABLE_ASSERTS */
#ifdef __cplusplus
}

View File

@ -8,6 +8,8 @@
#ifndef EFIFEATURES_H_
#define EFIFEATURES_H_
#define EFI_ENABLE_ASSERTS TRUE
#define EFI_HISTOGRAMS TRUE
#define EFI_CLI_SUPPORT FALSE

View File

@ -8,6 +8,8 @@
#ifndef EFIFEATURES_H_
#define EFIFEATURES_H_
#define EFI_ENABLE_ASSERTS TRUE
#define EFI_SIMULATOR TRUE
#define EFI_SUPPORT_DODGE_NEON TRUE