From 3a8bd7b829582969a72ae52f562bad9cb65cca13 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Wed, 23 Dec 2015 15:25:45 -0200 Subject: [PATCH] AP_Progmem: remove unused library --- libraries/AP_Progmem/AP_Progmem.h | 41 ------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 libraries/AP_Progmem/AP_Progmem.h diff --git a/libraries/AP_Progmem/AP_Progmem.h b/libraries/AP_Progmem/AP_Progmem.h deleted file mode 100644 index 9cae3a7fdb..0000000000 --- a/libraries/AP_Progmem/AP_Progmem.h +++ /dev/null @@ -1,41 +0,0 @@ -#pragma once - -#include -#include - -// read something the size of a byte -static inline uint8_t pgm_read_byte(const void *s) { - return *(const uint8_t *)s; -} - -// read something the size of a byte, far version -static inline uint8_t pgm_read_byte_far(const void *s) { - return *(const uint8_t *)s; -} - -// read something the size of a word -static inline uint16_t pgm_read_word(const void *s) { - return *(const uint16_t *)s; -} - -// read something the size of a dword -static inline uint32_t pgm_read_dword(const void *s) { - return *(const uint32_t *)s; -} - -// read something the size of a float -static inline float pgm_read_float(const void *s) { - return *(const float *)s; -} - -// read something the size of a pointer. This makes the menu code more -// portable -static inline uintptr_t pgm_read_pointer(const void *s) { - return *(const uintptr_t *)s; -} - -// read something the size of a pointer. This makes the menu code more -// portable -static inline void pgm_read_block(const void *s, void *dest, uint8_t len) { - memcpy(dest, s, len); -}