]> git.sur5r.net Git - freertos/blob - FreeRTOS-Labs/Source/FreeRTOS-Plus-FAT/portable/avr32_uc3/ff_flush.h
Add the Labs projects provided in the V10.2.1_191129 zip file.
[freertos] / FreeRTOS-Labs / Source / FreeRTOS-Plus-FAT / portable / avr32_uc3 / ff_flush.h
1 /*\r
2  * FreeRTOS+FAT build 191128 - Note:  FreeRTOS+FAT is still in the lab!\r
3  * Copyright (C) 2018 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
4  * Authors include James Walmsley, Hein Tibosch and Richard Barry\r
5  *\r
6  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
7  * this software and associated documentation files (the "Software"), to deal in\r
8  * the Software without restriction, including without limitation the rights to\r
9  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\r
10  * the Software, and to permit persons to whom the Software is furnished to do so,\r
11  * subject to the following conditions:\r
12  *\r
13  * The above copyright notice and this permission notice shall be included in all\r
14  * copies or substantial portions of the Software.\r
15  *\r
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\r
18  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\r
19  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\r
20  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
21  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
22  *\r
23  * https://www.FreeRTOS.org\r
24  *\r
25  */\r
26 \r
27 #if     !defined(__FF_FLUSH_H__)\r
28 \r
29 #define __FF_FLUSH_H__\r
30 \r
31 #ifdef  __cplusplus\r
32 extern "C" {\r
33 #endif\r
34 \r
35 // HT addition: call FF_FlushCache and in addition call cache_write_flush (see secCache.cpp)\r
36 FF_Error_t FF_FlushWrites( FF_IOManager_t *pxIOManager, BaseType_t xForced );\r
37 \r
38 #define FLUSH_DISABLE   1\r
39 #define FLUSH_ENABLE    0\r
40 \r
41 // HT addition: prevent flushing temporarily FF_StopFlush(pIoMan, true)\r
42 FF_Error_t FF_StopFlush( FF_IOManager_t *pxIOManager, BaseType_t xFlag );\r
43 #ifdef  __cplusplus\r
44 }       // extern "C"\r
45 #endif\r
46 \r
47 \r
48 #endif  // !defined(__FF_FLUSH_H__)\r