]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_M7_SAMV71_Xplained/libchip_samv7/include/flashd.h
Final V8.2.1 release ready for tagging:
[freertos] / FreeRTOS / Demo / CORTEX_M7_SAMV71_Xplained / libchip_samv7 / include / flashd.h
diff --git a/FreeRTOS/Demo/CORTEX_M7_SAMV71_Xplained/libchip_samv7/include/flashd.h b/FreeRTOS/Demo/CORTEX_M7_SAMV71_Xplained/libchip_samv7/include/flashd.h
deleted file mode 100644 (file)
index 7274e9d..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-/* ----------------------------------------------------------------------------\r
- *         SAM Software Package License\r
- * ----------------------------------------------------------------------------\r
- * Copyright (c) 2012, Atmel Corporation\r
- *\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions are met:\r
- *\r
- * - Redistributions of source code must retain the above copyright notice,\r
- * this list of conditions and the disclaimer below.\r
- *\r
- * Atmel's name may not be used to endorse or promote products derived from\r
- * this software without specific prior written permission.\r
- *\r
- * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR\r
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\r
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE\r
- * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,\r
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\r
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,\r
- * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
- * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
- * ----------------------------------------------------------------------------\r
-*/\r
-\r
-/**\r
- * \file\r
- *\r
- * The flash driver provides the unified interface for flash program operations.\r
- *\r
- */\r
-\r
-#ifndef _FLASHD_\r
-#define _FLASHD_\r
-\r
-#include <stdint.h>\r
-\r
-#ifdef __cplusplus\r
- extern "C" {\r
-#endif\r
-   \r
-#define GPNVBit_SecurityBit     0\r
-#define GPNVBit_BootMode        1\r
-#define GPNVBit_TCMBit1         6\r
-#define GPNVBit_TCMBit2         7\r
-\r
-/*----------------------------------------------------------------------------\r
- *        Exported functions\r
- *----------------------------------------------------------------------------*/\r
-\r
-extern void FLASHD_Initialize( uint32_t dwMCk, uint32_t dwUseIAP ) ;\r
-\r
-extern uint32_t FLASHD_Erase( uint32_t dwAddress ) ;\r
-\r
-extern uint32_t FLASHD_EraseSector( uint32_t dwAddress ) ;\r
-\r
-extern uint32_t FLASHD_ErasePages( uint32_t dwAddress, uint32_t dwPageNum ) ;\r
-\r
-extern uint32_t FLASHD_Write( uint32_t dwAddress, const void *pvBuffer, \r
-               uint32_t dwSize ) ;\r
-\r
-extern uint32_t FLASHD_Lock( uint32_t dwStart, uint32_t dwEnd, \r
-               uint32_t *pdwActualStart, uint32_t *pdwActualEnd ) ;\r
-\r
-extern uint32_t FLASHD_Unlock( uint32_t dwStart, uint32_t dwEnd, \r
-               uint32_t *pdwActualStart, uint32_t *pdwActualEnd ) ;\r
-\r
-extern uint32_t FLASHD_IsLocked( uint32_t dwStart, uint32_t dwEnd ) ;\r
-\r
-extern uint32_t FLASHD_SetGPNVM( uint8_t gpnvm ) ;\r
-\r
-extern uint32_t FLASHD_ClearGPNVM( uint8_t gpnvm ) ;\r
-\r
-extern uint32_t FLASHD_IsGPNVMSet( uint8_t gpnvm ) ;\r
-\r
-#define FLASHD_IsSecurityBitSet() FLASHD_IsGPNVMSet( 0 )\r
-\r
-#define FLASHD_SetSecurityBit()   FLASHD_SetGPNVM( 0 )\r
-\r
-extern uint32_t FLASHD_ReadUniqueID( uint32_t* pdwUniqueID ) ;\r
-\r
-#ifdef __cplusplus\r
-}\r
-#endif\r
-\r
-#endif /* #ifndef _FLASHD_ */\r
-\r