File tree Expand file tree Collapse file tree 5 files changed +4
-29
lines changed
targets/TARGET_Cypress/TARGET_PSOC6
TARGET_CY8CKIT_062_4343W/device
TARGET_CY8CKIT_062_BLE/device
TARGET_CY8CMOD_062_4343W/device Expand file tree Collapse file tree 5 files changed +4
-29
lines changed Original file line number Diff line number Diff line change @@ -193,13 +193,6 @@ void mailbox_init(void);
193193*******************************************************************************/
194194void SystemInit (void )
195195{
196- /* Workaround to avoid twice SystemInit() call when ARMC5 compiler is used */
197- static uint32_t temp_var = 0 ;
198-
199- if (temp_var == 0 )
200- {
201- temp_var = 1 ;
202-
203196 Cy_PDL_Init (CY_DEVICE_CFG );
204197
205198 /* Restore FLL registers to the default state as they are not restored by the ROM code */
@@ -299,8 +292,6 @@ void SystemInit(void)
299292#else /* !defined(CY_IPC_DEFAULT_CFG_DISABLE) */
300293 Cy_SemaIpcFlashInit ();
301294#endif /* !defined(CY_IPC_DEFAULT_CFG_DISABLE) */
302-
303- }
304295}
305296
306297
Original file line number Diff line number Diff line change @@ -539,11 +539,7 @@ extern "C" {
539539* \addtogroup group_system_config_system_functions
540540* \{
541541*/
542- #if defined(__ARMCC_VERSION )
543- extern void SystemInit (void ) __attribute__((constructor ));
544- #else
545- extern void SystemInit (void );
546- #endif /* (__ARMCC_VERSION) */
542+ extern void SystemInit (void );
547543
548544extern void SystemCoreClockUpdate (void );
549545/** \} group_system_config_system_functions */
Original file line number Diff line number Diff line change @@ -539,11 +539,7 @@ extern "C" {
539539* \addtogroup group_system_config_system_functions
540540* \{
541541*/
542- #if defined(__ARMCC_VERSION )
543- extern void SystemInit (void ) __attribute__((constructor ));
544- #else
545- extern void SystemInit (void );
546- #endif /* (__ARMCC_VERSION) */
542+ extern void SystemInit (void );
547543
548544extern void SystemCoreClockUpdate (void );
549545/** \} group_system_config_system_functions */
Original file line number Diff line number Diff line change @@ -539,11 +539,7 @@ extern "C" {
539539* \addtogroup group_system_config_system_functions
540540* \{
541541*/
542- #if defined(__ARMCC_VERSION )
543- extern void SystemInit (void ) __attribute__((constructor ));
544- #else
545- extern void SystemInit (void );
546- #endif /* (__ARMCC_VERSION) */
542+ extern void SystemInit (void );
547543
548544extern void SystemCoreClockUpdate (void );
549545/** \} group_system_config_system_functions */
Original file line number Diff line number Diff line change @@ -539,11 +539,7 @@ extern "C" {
539539* \addtogroup group_system_config_system_functions
540540* \{
541541*/
542- #if defined(__ARMCC_VERSION )
543- extern void SystemInit (void ) __attribute__((constructor ));
544- #else
545- extern void SystemInit (void );
546- #endif /* (__ARMCC_VERSION) */
542+ extern void SystemInit (void );
547543
548544extern void SystemCoreClockUpdate (void );
549545/** \} group_system_config_system_functions */
You can’t perform that action at this time.
0 commit comments