Upgrade doxygen configuration files to the latest version.
[pub/lufa.git] / Bootloaders / MassStorage / BootloaderAPI.h
index d159f68..8ca4808 100644 (file)
@@ -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
        /* Includes: */
                #include <avr/io.h>
                #include <avr/boot.h>
+               #include <util/atomic.h>
                #include <stdbool.h>
 
                #include <LUFA/Common/Common.h>
 
+       /* 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);