MAX32665 Peripheral Driver API
Peripheral Driver API for the MAX32665
emcc.h
1 
50 #ifndef _EMCC_H_
51 #define _EMCC_H_
52 
53 /***** Includes *****/
54 #include "emcc_regs.h"
55 #include "mxc_config.h"
56 
57 #ifdef __cplusplus
58 extern "C" {
59 #endif
60 
61 /***** Definitions *****/
62 
66 typedef enum {
67  EMCC_CACHE_ID_RELNUM, // Release Number
68  EMCC_CACHE_ID_PARTNUM, // Part Number
69  EMCC_CACHE_ID_CCHID // Cache ID
70 }
72 
73 /***** Function Prototypes *****/
74 
80 uint32_t EMCC_ID(emcc_cache_id_t id);
81 
86 uint32_t EMCC_Cache_Size(void);
87 
92 uint32_t EMCC_Mem_Size(void);
93 
97 void EMCC_Enable(void);
98 
102 void EMCC_Disable(void);
103 
107 void EMCC_Flush(void);
108 
113 
118 
123 
128 
133 uint32_t EMCC_Ready(void);
134 
139 
140 
141 #ifdef __cplusplus
142 }
143 #endif
144 
145 
146 #endif /* _EMCC_H_*/
147 
EMCC_Cache_Size
uint32_t EMCC_Cache_Size(void)
Gets the cache size in Kbytes. The default value is 16KB.
EMCC_ID
uint32_t EMCC_ID(emcc_cache_id_t id)
Reads the data from the EMCC Cache ID Register.
EMCC_Disable
void EMCC_Disable(void)
Disables the data cache controller.
EMCC_Write_Alloc_Disable
void EMCC_Write_Alloc_Disable(void)
Disables write-allocate mode with data cache controller.
EMCC_Invalidate_All
void EMCC_Invalidate_All(void)
Invalidate the entire contents of the data cache.
EMCC_Mem_Size
uint32_t EMCC_Mem_Size(void)
Gets the main memory size in units of 128KB. The default value is 512MB.
EMCC_Critical_Word_First_Disable
void EMCC_Critical_Word_First_Disable(void)
Disables critical-word-first mode with data cache controller.
emcc_cache_id_t
emcc_cache_id_t
Definition: emcc.h:66
EMCC_Critical_Word_First_Enable
void EMCC_Critical_Word_First_Enable(void)
Enables critical-word-first mode with data cache controller.
EMCC_Flush
void EMCC_Flush(void)
Flushes the data cache controller.
EMCC_Write_Alloc_Enable
void EMCC_Write_Alloc_Enable(void)
Enables write-allocate mode with data cache controller.
EMCC_Ready
uint32_t EMCC_Ready(void)
Reads the EMCC Cache ready flag, which is set and cleared by hardware.
EMCC_Enable
void EMCC_Enable(void)
Enables the data cache controller.