diff --git a/Libraries/CMSIS/Device/Maxim/MAX32520/Source/system_max32520.c b/Libraries/CMSIS/Device/Maxim/MAX32520/Source/system_max32520.c index 4fdbbe9bca..4f98ee0c34 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32520/Source/system_max32520.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32520/Source/system_max32520.c @@ -39,12 +39,12 @@ The libc implementation from GCC 11+ depends on _getpid and _kill in some places There is no concept of processes/PIDs in the baremetal PeriphDrivers, therefore we implement stub functions that return an error code to resolve linker warnings. */ -int _getpid(void) +__weak int _getpid(void) { return E_NOT_SUPPORTED; } -int _kill(void) +__weak int _kill(void) { return E_NOT_SUPPORTED; } diff --git a/Libraries/CMSIS/Device/Maxim/MAX32570/Source/system_max32570.c b/Libraries/CMSIS/Device/Maxim/MAX32570/Source/system_max32570.c index 8c0fc6d125..d437a2f989 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32570/Source/system_max32570.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32570/Source/system_max32570.c @@ -36,12 +36,12 @@ The libc implementation from GCC 11+ depends on _getpid and _kill in some places There is no concept of processes/PIDs in the baremetal PeriphDrivers, therefore we implement stub functions that return an error code to resolve linker warnings. */ -int _getpid(void) +__weak int _getpid(void) { return E_NOT_SUPPORTED; } -int _kill(void) +__weak int _kill(void) { return E_NOT_SUPPORTED; } diff --git a/Libraries/CMSIS/Device/Maxim/MAX32572/Source/system_max32572.c b/Libraries/CMSIS/Device/Maxim/MAX32572/Source/system_max32572.c index 13d09951ed..c14d69d15c 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32572/Source/system_max32572.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32572/Source/system_max32572.c @@ -36,12 +36,12 @@ The libc implementation from GCC 11+ depends on _getpid and _kill in some places There is no concept of processes/PIDs in the baremetal PeriphDrivers, therefore we implement stub functions that return an error code to resolve linker warnings. */ -int _getpid(void) +__weak int _getpid(void) { return E_NOT_SUPPORTED; } -int _kill(void) +__weak int _kill(void) { return E_NOT_SUPPORTED; } diff --git a/Libraries/CMSIS/Device/Maxim/MAX32572/Source/system_riscv_max32572.c b/Libraries/CMSIS/Device/Maxim/MAX32572/Source/system_riscv_max32572.c index b922ac0d4d..6d51ac0a79 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32572/Source/system_riscv_max32572.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32572/Source/system_riscv_max32572.c @@ -33,12 +33,12 @@ The libc implementation from GCC 11+ depends on _getpid and _kill in some places There is no concept of processes/PIDs in the baremetal PeriphDrivers, therefore we implement stub functions that return an error code to resolve linker warnings. */ -int _getpid(void) +__weak int _getpid(void) { return E_NOT_SUPPORTED; } -int _kill(void) +__weak int _kill(void) { return E_NOT_SUPPORTED; } diff --git a/Libraries/CMSIS/Device/Maxim/MAX32650/Source/system_max32650.c b/Libraries/CMSIS/Device/Maxim/MAX32650/Source/system_max32650.c index 567c6ca19d..0cb9e4191b 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32650/Source/system_max32650.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32650/Source/system_max32650.c @@ -38,12 +38,12 @@ The libc implementation from GCC 11+ depends on _getpid and _kill in some places There is no concept of processes/PIDs in the baremetal PeriphDrivers, therefore we implement stub functions that return an error code to resolve linker warnings. */ -int _getpid(void) +__weak int _getpid(void) { return E_NOT_SUPPORTED; } -int _kill(void) +__weak int _kill(void) { return E_NOT_SUPPORTED; } diff --git a/Libraries/CMSIS/Device/Maxim/MAX32655/Source/system_max32655.c b/Libraries/CMSIS/Device/Maxim/MAX32655/Source/system_max32655.c index d269e39c51..c735e55dd1 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32655/Source/system_max32655.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32655/Source/system_max32655.c @@ -37,12 +37,12 @@ The libc implementation from GCC 11+ depends on _getpid and _kill in some places There is no concept of processes/PIDs in the baremetal PeriphDrivers, therefore we implement stub functions that return an error code to resolve linker warnings. */ -int _getpid(void) +__weak int _getpid(void) { return E_NOT_SUPPORTED; } -int _kill(void) +__weak int _kill(void) { return E_NOT_SUPPORTED; } diff --git a/Libraries/CMSIS/Device/Maxim/MAX32655/Source/system_riscv_max32655.c b/Libraries/CMSIS/Device/Maxim/MAX32655/Source/system_riscv_max32655.c index 58f4f77d3f..c9d3735323 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32655/Source/system_riscv_max32655.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32655/Source/system_riscv_max32655.c @@ -38,12 +38,12 @@ The libc implementation from GCC 11+ depends on _getpid and _kill in some places There is no concept of processes/PIDs in the baremetal PeriphDrivers, therefore we implement stub functions that return an error code to resolve linker warnings. */ -int _getpid(void) +__weak int _getpid(void) { return E_NOT_SUPPORTED; } -int _kill(void) +__weak int _kill(void) { return E_NOT_SUPPORTED; } diff --git a/Libraries/CMSIS/Device/Maxim/MAX32657/Source/system_max32657.c b/Libraries/CMSIS/Device/Maxim/MAX32657/Source/system_max32657.c index 417f887b2a..ac9719da57 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32657/Source/system_max32657.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32657/Source/system_max32657.c @@ -35,12 +35,12 @@ uint32_t SystemCoreClock = IPO_FREQ; // Part defaults to IPO on startup There is no concept of processes/PIDs in the baremetal PeriphDrivers, therefore we implement stub functions that return an error code to resolve linker warnings. */ -int _getpid(void) +__weak int _getpid(void) { return E_NOT_SUPPORTED; } -int _kill(void) +__weak int _kill(void) { return E_NOT_SUPPORTED; } diff --git a/Libraries/CMSIS/Device/Maxim/MAX32660/Source/system_max32660.c b/Libraries/CMSIS/Device/Maxim/MAX32660/Source/system_max32660.c index bb818302ff..024c30fefa 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32660/Source/system_max32660.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32660/Source/system_max32660.c @@ -41,12 +41,12 @@ The libc implementation from GCC 11+ depends on _getpid and _kill in some places There is no concept of processes/PIDs in the baremetal PeriphDrivers, therefore we implement stub functions that return an error code to resolve linker warnings. */ -int _getpid(void) +__weak int _getpid(void) { return E_NOT_SUPPORTED; } -int _kill(void) +__weak int _kill(void) { return E_NOT_SUPPORTED; } diff --git a/Libraries/CMSIS/Device/Maxim/MAX32662/Source/system_max32662.c b/Libraries/CMSIS/Device/Maxim/MAX32662/Source/system_max32662.c index 1d0fcd037d..29e5c8b94b 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32662/Source/system_max32662.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32662/Source/system_max32662.c @@ -40,12 +40,12 @@ The libc implementation from GCC 11+ depends on _getpid and _kill in some places There is no concept of processes/PIDs in the baremetal PeriphDrivers, therefore we implement stub functions that return an error code to resolve linker warnings. */ -int _getpid(void) +__weak int _getpid(void) { return E_NOT_SUPPORTED; } -int _kill(void) +__weak int _kill(void) { return E_NOT_SUPPORTED; } diff --git a/Libraries/CMSIS/Device/Maxim/MAX32665/Source/system_max32665.c b/Libraries/CMSIS/Device/Maxim/MAX32665/Source/system_max32665.c index a7e5bb1411..2729e992ed 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32665/Source/system_max32665.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32665/Source/system_max32665.c @@ -43,12 +43,12 @@ The libc implementation from GCC 11+ depends on _getpid and _kill in some places There is no concept of processes/PIDs in the baremetal PeriphDrivers, therefore we implement stub functions that return an error code to resolve linker warnings. */ -int _getpid(void) +__weak int _getpid(void) { return E_NOT_SUPPORTED; } -int _kill(void) +__weak int _kill(void) { return E_NOT_SUPPORTED; } diff --git a/Libraries/CMSIS/Device/Maxim/MAX32670/Source/system_max32670.c b/Libraries/CMSIS/Device/Maxim/MAX32670/Source/system_max32670.c index 7b8b644d6c..b7951e511a 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32670/Source/system_max32670.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32670/Source/system_max32670.c @@ -37,12 +37,12 @@ The libc implementation from GCC 11+ depends on _getpid and _kill in some places There is no concept of processes/PIDs in the baremetal PeriphDrivers, therefore we implement stub functions that return an error code to resolve linker warnings. */ -int _getpid(void) +__weak int _getpid(void) { return E_NOT_SUPPORTED; } -int _kill(void) +__weak int _kill(void) { return E_NOT_SUPPORTED; } diff --git a/Libraries/CMSIS/Device/Maxim/MAX32672/Source/system_max32672.c b/Libraries/CMSIS/Device/Maxim/MAX32672/Source/system_max32672.c index fbe7fc3b45..67a1c371c6 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32672/Source/system_max32672.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32672/Source/system_max32672.c @@ -35,12 +35,12 @@ The libc implementation from GCC 11+ depends on _getpid and _kill in some places There is no concept of processes/PIDs in the baremetal PeriphDrivers, therefore we implement stub functions that return an error code to resolve linker warnings. */ -int _getpid(void) +__weak int _getpid(void) { return E_NOT_SUPPORTED; } -int _kill(void) +__weak int _kill(void) { return E_NOT_SUPPORTED; } diff --git a/Libraries/CMSIS/Device/Maxim/MAX32675/Source/system_max32675.c b/Libraries/CMSIS/Device/Maxim/MAX32675/Source/system_max32675.c index 190e2b2185..ce9f218b57 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32675/Source/system_max32675.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32675/Source/system_max32675.c @@ -37,12 +37,12 @@ The libc implementation from GCC 11+ depends on _getpid and _kill in some places There is no concept of processes/PIDs in the baremetal PeriphDrivers, therefore we implement stub functions that return an error code to resolve linker warnings. */ -int _getpid(void) +__weak int _getpid(void) { return E_NOT_SUPPORTED; } -int _kill(void) +__weak int _kill(void) { return E_NOT_SUPPORTED; } diff --git a/Libraries/CMSIS/Device/Maxim/MAX32680/Source/system_max32680.c b/Libraries/CMSIS/Device/Maxim/MAX32680/Source/system_max32680.c index 33191b596d..b3395119ee 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32680/Source/system_max32680.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32680/Source/system_max32680.c @@ -36,12 +36,12 @@ The libc implementation from GCC 11+ depends on _getpid and _kill in some places There is no concept of processes/PIDs in the baremetal PeriphDrivers, therefore we implement stub functions that return an error code to resolve linker warnings. */ -int _getpid(void) +__weak int _getpid(void) { return E_NOT_SUPPORTED; } -int _kill(void) +__weak int _kill(void) { return E_NOT_SUPPORTED; } diff --git a/Libraries/CMSIS/Device/Maxim/MAX32680/Source/system_riscv_max32680.c b/Libraries/CMSIS/Device/Maxim/MAX32680/Source/system_riscv_max32680.c index b5528022bf..b0296209e6 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32680/Source/system_riscv_max32680.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32680/Source/system_riscv_max32680.c @@ -38,12 +38,12 @@ The libc implementation from GCC 11+ depends on _getpid and _kill in some places There is no concept of processes/PIDs in the baremetal PeriphDrivers, therefore we implement stub functions that return an error code to resolve linker warnings. */ -int _getpid(void) +__weak int _getpid(void) { return E_NOT_SUPPORTED; } -int _kill(void) +__weak int _kill(void) { return E_NOT_SUPPORTED; } diff --git a/Libraries/CMSIS/Device/Maxim/MAX32690/Source/system_max32690.c b/Libraries/CMSIS/Device/Maxim/MAX32690/Source/system_max32690.c index 08c66bc309..f51599c5bc 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32690/Source/system_max32690.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32690/Source/system_max32690.c @@ -36,12 +36,12 @@ The libc implementation from GCC 11+ depends on _getpid and _kill in some places There is no concept of processes/PIDs in the baremetal PeriphDrivers, therefore we implement stub functions that return an error code to resolve linker warnings. */ -int _getpid(void) +__weak int _getpid(void) { return E_NOT_SUPPORTED; } -int _kill(void) +__weak int _kill(void) { return E_NOT_SUPPORTED; } diff --git a/Libraries/CMSIS/Device/Maxim/MAX32690/Source/system_riscv_max32690.c b/Libraries/CMSIS/Device/Maxim/MAX32690/Source/system_riscv_max32690.c index e4787f588b..cf40e1d003 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32690/Source/system_riscv_max32690.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32690/Source/system_riscv_max32690.c @@ -33,12 +33,12 @@ The libc implementation from GCC 11+ depends on _getpid and _kill in some places There is no concept of processes/PIDs in the baremetal PeriphDrivers, therefore we implement stub functions that return an error code to resolve linker warnings. */ -int _getpid(void) +__weak int _getpid(void) { return E_NOT_SUPPORTED; } -int _kill(void) +__weak int _kill(void) { return E_NOT_SUPPORTED; } diff --git a/Libraries/CMSIS/Device/Maxim/MAX78000/Source/system_max78000.c b/Libraries/CMSIS/Device/Maxim/MAX78000/Source/system_max78000.c index 2b05de216c..4c5c1dc564 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX78000/Source/system_max78000.c +++ b/Libraries/CMSIS/Device/Maxim/MAX78000/Source/system_max78000.c @@ -36,12 +36,12 @@ The libc implementation from GCC 11+ depends on _getpid and _kill in some places There is no concept of processes/PIDs in the baremetal PeriphDrivers, therefore we implement stub functions that return an error code to resolve linker warnings. */ -int _getpid(void) +__weak int _getpid(void) { return E_NOT_SUPPORTED; } -int _kill(void) +__weak int _kill(void) { return E_NOT_SUPPORTED; } diff --git a/Libraries/CMSIS/Device/Maxim/MAX78000/Source/system_riscv_max78000.c b/Libraries/CMSIS/Device/Maxim/MAX78000/Source/system_riscv_max78000.c index b706dafca0..c54653cb32 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX78000/Source/system_riscv_max78000.c +++ b/Libraries/CMSIS/Device/Maxim/MAX78000/Source/system_riscv_max78000.c @@ -33,12 +33,12 @@ The libc implementation from GCC 11+ depends on _getpid and _kill in some places There is no concept of processes/PIDs in the baremetal PeriphDrivers, therefore we implement stub functions that return an error code to resolve linker warnings. */ -int _getpid(void) +__weak int _getpid(void) { return E_NOT_SUPPORTED; } -int _kill(void) +__weak int _kill(void) { return E_NOT_SUPPORTED; } diff --git a/Libraries/CMSIS/Device/Maxim/MAX78002/Source/system_max78002.c b/Libraries/CMSIS/Device/Maxim/MAX78002/Source/system_max78002.c index 1f153a3bd0..d6cbd2fcbb 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX78002/Source/system_max78002.c +++ b/Libraries/CMSIS/Device/Maxim/MAX78002/Source/system_max78002.c @@ -35,12 +35,12 @@ The libc implementation from GCC 11+ depends on _getpid and _kill in some places There is no concept of processes/PIDs in the baremetal PeriphDrivers, therefore we implement stub functions that return an error code to resolve linker warnings. */ -int _getpid(void) +__weak int _getpid(void) { return E_NOT_SUPPORTED; } -int _kill(void) +__weak int _kill(void) { return E_NOT_SUPPORTED; } diff --git a/Libraries/CMSIS/Device/Maxim/MAX78002/Source/system_riscv_max78002.c b/Libraries/CMSIS/Device/Maxim/MAX78002/Source/system_riscv_max78002.c index ba04dec793..14a8fdc39a 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX78002/Source/system_riscv_max78002.c +++ b/Libraries/CMSIS/Device/Maxim/MAX78002/Source/system_riscv_max78002.c @@ -33,12 +33,12 @@ The libc implementation from GCC 11+ depends on _getpid and _kill in some places There is no concept of processes/PIDs in the baremetal PeriphDrivers, therefore we implement stub functions that return an error code to resolve linker warnings. */ -int _getpid(void) +__weak int _getpid(void) { return E_NOT_SUPPORTED; } -int _kill(void) +__weak int _kill(void) { return E_NOT_SUPPORTED; }