Skip to content

Commit 8196050

Browse files
hennadiykytsunadbridge
authored andcommitted
PSOC6: remove __attribute__((constructor)) from SystemInit
1 parent d9b0706 commit 8196050

File tree

5 files changed

+5
-25
lines changed

5 files changed

+5
-25
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062_4343W/device/system_psoc6.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -544,11 +544,7 @@ extern "C" {
544544
* \addtogroup group_system_config_system_functions
545545
* \{
546546
*/
547-
#if defined(__ARMCC_VERSION)
548-
extern void SystemInit(void) __attribute__((constructor));
549-
#else
550-
extern void SystemInit(void);
551-
#endif /* (__ARMCC_VERSION) */
547+
extern void SystemInit(void);
552548

553549
extern void SystemCoreClockUpdate(void);
554550
/** \} group_system_config_system_functions */

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062_BLE/device/system_psoc6.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -544,11 +544,7 @@ extern "C" {
544544
* \addtogroup group_system_config_system_functions
545545
* \{
546546
*/
547-
#if defined(__ARMCC_VERSION)
548-
extern void SystemInit(void) __attribute__((constructor));
549-
#else
550-
extern void SystemInit(void);
551-
#endif /* (__ARMCC_VERSION) */
547+
extern void SystemInit(void);
552548

553549
extern void SystemCoreClockUpdate(void);
554550
/** \} group_system_config_system_functions */

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062_WIFI_BT/device/system_psoc6.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -544,11 +544,7 @@ extern "C" {
544544
* \addtogroup group_system_config_system_functions
545545
* \{
546546
*/
547-
#if defined(__ARMCC_VERSION)
548-
extern void SystemInit(void) __attribute__((constructor));
549-
#else
550-
extern void SystemInit(void);
551-
#endif /* (__ARMCC_VERSION) */
547+
extern void SystemInit(void);
552548

553549
extern void SystemCoreClockUpdate(void);
554550
/** \} group_system_config_system_functions */

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CMOD_062_4343W/device/system_psoc6.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -544,11 +544,7 @@ extern "C" {
544544
* \addtogroup group_system_config_system_functions
545545
* \{
546546
*/
547-
#if defined(__ARMCC_VERSION)
548-
extern void SystemInit(void) __attribute__((constructor));
549-
#else
550-
extern void SystemInit(void);
551-
#endif /* (__ARMCC_VERSION) */
547+
extern void SystemInit(void);
552548

553549
extern void SystemCoreClockUpdate(void);
554550
/** \} group_system_config_system_functions */

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CYW943012P6EVB_01/device/system_psoc6.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -544,11 +544,7 @@ extern "C" {
544544
* \addtogroup group_system_config_system_functions
545545
* \{
546546
*/
547-
#if defined(__ARMCC_VERSION)
548-
extern void SystemInit(void) __attribute__((constructor));
549-
#else
550-
extern void SystemInit(void);
551-
#endif /* (__ARMCC_VERSION) */
547+
extern void SystemInit(void);
552548

553549
extern void SystemCoreClockUpdate(void);
554550
/** \} group_system_config_system_functions */

0 commit comments

Comments
 (0)