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);
193
193
*******************************************************************************/
194
194
void SystemInit (void )
195
195
{
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
-
203
196
Cy_PDL_Init (CY_DEVICE_CFG );
204
197
205
198
/* Restore FLL registers to the default state as they are not restored by the ROM code */
@@ -299,8 +292,6 @@ void SystemInit(void)
299
292
#else /* !defined(CY_IPC_DEFAULT_CFG_DISABLE) */
300
293
Cy_SemaIpcFlashInit ();
301
294
#endif /* !defined(CY_IPC_DEFAULT_CFG_DISABLE) */
302
-
303
- }
304
295
}
305
296
306
297
Original file line number Diff line number Diff line change @@ -539,11 +539,7 @@ extern "C" {
539
539
* \addtogroup group_system_config_system_functions
540
540
* \{
541
541
*/
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 );
547
543
548
544
extern void SystemCoreClockUpdate (void );
549
545
/** \} group_system_config_system_functions */
Original file line number Diff line number Diff line change @@ -539,11 +539,7 @@ extern "C" {
539
539
* \addtogroup group_system_config_system_functions
540
540
* \{
541
541
*/
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 );
547
543
548
544
extern void SystemCoreClockUpdate (void );
549
545
/** \} group_system_config_system_functions */
Original file line number Diff line number Diff line change @@ -539,11 +539,7 @@ extern "C" {
539
539
* \addtogroup group_system_config_system_functions
540
540
* \{
541
541
*/
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 );
547
543
548
544
extern void SystemCoreClockUpdate (void );
549
545
/** \} group_system_config_system_functions */
Original file line number Diff line number Diff line change @@ -539,11 +539,7 @@ extern "C" {
539
539
* \addtogroup group_system_config_system_functions
540
540
* \{
541
541
*/
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 );
547
543
548
544
extern void SystemCoreClockUpdate (void );
549
545
/** \} group_system_config_system_functions */
You can’t perform that action at this time.
0 commit comments