X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/0b1f33e2a26091714982447132b251496d5a48b2..refs/heads/master:/Bootloaders/MassStorage/BootloaderAPI.h?ds=sidebyside diff --git a/Bootloaders/MassStorage/BootloaderAPI.h b/Bootloaders/MassStorage/BootloaderAPI.h index d159f689b..8ca480828 100644 --- a/Bootloaders/MassStorage/BootloaderAPI.h +++ b/Bootloaders/MassStorage/BootloaderAPI.h @@ -1,13 +1,13 @@ /* LUFA Library - Copyright (C) Dean Camera, 2013. + Copyright (C) Dean Camera, 2021. dean [at] fourwalledcubicle [dot] com www.lufa-lib.org */ /* - Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com) + Copyright 2021 Dean Camera (dean [at] fourwalledcubicle [dot] com) Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted @@ -39,11 +39,21 @@ /* Includes: */ #include #include + #include #include #include + /* Macros: */ + #if AUX_BOOT_SECTION_SIZE > 0 + #define AUX_BOOT_SECTION __attribute__((section(".boot_aux"))) + #else + #define AUX_BOOT_SECTION + #endif + /* Function Prototypes: */ + bool IsPageAddressValid(const uint32_t Address) AUX_BOOT_SECTION ATTR_NO_INLINE; + void BootloaderAPI_ErasePage(const uint32_t Address); void BootloaderAPI_WritePage(const uint32_t Address); void BootloaderAPI_FillWord(const uint32_t Address, const uint16_t Word);