41 #ifndef SYSTEM_ADUCM4050_H 42 #define SYSTEM_ADUCM4050_H 55 #if defined (__ICCARM__) 63 #pragma diag_suppress=Pm011 82 #define __HFOSC 26000000u 85 #define __HFXTAL 26000000u 88 #define __LFCLK 32768u 91 #define HFMUX_INTERNAL_OSC_VAL (0u << BITP_CLKG_CLK_CTL0_CLKMUX) 94 #define HFMUX_EXTERNAL_XTAL_VAL (1u << BITP_CLKG_CLK_CTL0_CLKMUX) 97 #define HFMUX_SYSTEM_SPLL_VAL (2u << BITP_CLKG_CLK_CTL0_CLKMUX) 100 #define HFMUX_GPIO_VAL (3u << BITP_CLKG_CLK_CTL0_CLKMUX) 103 #define CACHE_CONTROLLER_KEY 0xF123F456u 105 #define PWRKEY_VALUE_KEY 0x4859u 108 #define NVIC_INTS (72u) 115 const uint32_t ReadProtectKeyHash[4];
116 const uint32_t CrcOfReadProtectKeyHash;
117 const uint32_t LastCRCPage;
118 const uint32_t InCircuitWriteProtectCode;
119 const uint32_t FlashBlockWriteProtect;
121 } ADI_ADUCM4X50_SECURITY_OPTIONS;
131 #define ADI_SRAM_BANK_0 (1u << 0) 133 #define ADI_SRAM_BANK_1 (1u << 1) 135 #define ADI_SRAM_BANK_2 (1u << 2) 137 #define ADI_SRAM_BANK_3 (1u << 3) 139 #define ADI_SRAM_BANK_4 (1u << 4) 141 #define ADI_SRAM_BANK_5 (1u << 5) 143 #define ADI_SRAM_BANK_6 (1u << 6) 145 #define ADI_SRAM_BANK_7 (1u << 7) 154 #define KEEP_VAR(var) var __attribute__((used)) 155 #define SECTION_PLACE(def,sectionname) __attribute__ ((section(sectionname))) def 158 #ifdef __ARMCC_VERSION 159 #define KEEP_VAR(var) var __attribute__((used)) 160 #define SECTION_PLACE(def,sectionname) __attribute__ ((section(sectionname))) def 161 #endif // __ARMCC_VERSION 170 #pragma diag_suppress=Pm154 172 #define KEEP_VAR(var) __root var 173 #define SECTION_PLACE(def,sectionname) def @ sectionname 177 #if !defined(KEEP_VAR) || !defined(SECTION_PLACE) 178 #error "This compiler is not yet supported" 182 #if defined (__ICCARM__) 183 #pragma diag_default=Pm011 184 #pragma diag_default=Pm154 void SystemInit(void)
Sets up the microcontroller system. Initializes the System and updates the relocate vector table.
void SystemCoreClockUpdate(void)
Update the clock.
void adi_system_EnableCache(bool bEnable)
Enables or disables the cache.
void adi_system_SetGlobalIrqPriority(void)
This function sets the priority for all IRQ interrupts to the value defined by ADI_MAX_IRQ_PRIORITY (...
ADI_SYS_RESULT adi_system_EnableRetention(ADI_SRAM_BANK eBank, bool bEnable)
This enables/disable SRAM retention during the hibernation.