From 1a2b02a5638d2728e8e58e6df24844ab7b234b64 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 26 May 2015 14:34:13 +1000 Subject: [PATCH] AP_HAL: removed AVR special case no longer needed --- libraries/AP_HAL/AP_HAL_Namespace.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/libraries/AP_HAL/AP_HAL_Namespace.h b/libraries/AP_HAL/AP_HAL_Namespace.h index 35c67d9b72..e90ef7a12c 100644 --- a/libraries/AP_HAL/AP_HAL_Namespace.h +++ b/libraries/AP_HAL/AP_HAL_Namespace.h @@ -7,18 +7,8 @@ #include "string.h" #include "utility/FastDelegate.h" -#if defined(__AVR__) -/* - gcc on AVR doesn't allow for delegates in progmem. It gives a - warning that the progmem area is uninitialised, and fills the area - with zeros. This is a workaround. - */ -#define DELEGATE_FUNCTION_VOID_TYPEDEF(type) typedef void (*type)(const void *) -#define AP_HAL_CLASSPROC_VOID(classptr, func) (void (*)(const void*))func -#else #define DELEGATE_FUNCTION_VOID_TYPEDEF(type) typedef fastdelegate::FastDelegate0 type #define AP_HAL_CLASSPROC_VOID(classptr, func) fastdelegate::MakeDelegate(classptr, func) -#endif // macros to hide the details of delegate functions using FastDelegate #define AP_HAL_CLASSPROC(classptr, func) fastdelegate::MakeDelegate(classptr, func)