summaryrefslogtreecommitdiff
path: root/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/Zynq/uncached_memory.h
blob: 5a8e5f37fc35a74167affa8f798b880cec80766d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * uncached_memory.h
 *
 * This module will declare 1 MB of memory and switch off the caching for it.
 *
 * pucGetUncachedMemory( ulSize ) returns a trunc of this memory with a length
 * rounded up to a multiple of 4 KB
 *
 * ucIsCachedMemory( pucBuffer ) returns non-zero if a given pointer is NOT
 * within the range of the 1 MB non-cached memory.
 *
 */

#ifndef UNCACHEMEMORY_H

#define UNCACHEMEMORY_H

uint8_t *pucGetUncachedMemory( uint32_t ulSize );

uint8_t ucIsCachedMemory( const uint8_t *pucBuffer );

#endif /* UNCACHEMEMORY_H */