diff --git a/Libraries/CMSIS/Device/Maxim/MAX32520/Source/system_max32520.c b/Libraries/CMSIS/Device/Maxim/MAX32520/Source/system_max32520.c index 1da913590a..35b8f7350e 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32520/Source/system_max32520.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32520/Source/system_max32520.c @@ -2,7 +2,7 @@ * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), - * Copyright (C) 2023-2024 Analog Devices, Inc. + * Copyright (C) 2023-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -81,7 +81,7 @@ __weak void SystemCoreClockUpdate(void) * implemented by the application for early initializations. If a value other * than '0' is returned, the C runtime initialization will be skipped. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit(), but care should be taken to reproduce the initialization steps * or a non-functional system may result. */ @@ -92,7 +92,7 @@ __weak int PreInit(void) } /* This function is called before the Board_Init function. This weak - * implementation does nothing, but you may over-ride this function in your + * implementation does nothing, but you may override this function in your * program if you want to configure the state of all pins prior to the * application running. This is useful when using external tools (like a * Pin Mux configuration tool) that generate code to initialize the pins. @@ -117,7 +117,7 @@ __weak int Board_Init(void) /* This function is called just before control is transferred to main(). * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ diff --git a/Libraries/CMSIS/Device/Maxim/MAX32570/Source/system_max32570.c b/Libraries/CMSIS/Device/Maxim/MAX32570/Source/system_max32570.c index 9894f8291d..8ded67863f 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32570/Source/system_max32570.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32570/Source/system_max32570.c @@ -2,7 +2,7 @@ * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), - * Copyright (C) 2023-2024 Analog Devices, Inc. + * Copyright (C) 2023-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -87,7 +87,7 @@ __weak void SystemCoreClockUpdate(void) * implemented by the application for early initializations. If a value other * than '0' is returned, the C runtime initialization will be skipped. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit(), but care should be taken to reproduce the initialization steps * or a non-functional system may result. */ @@ -98,7 +98,7 @@ __weak int PreInit(void) } /* This function is called before the Board_Init function. This weak - * implementation does nothing, but you may over-ride this function in your + * implementation does nothing, but you may override this function in your * program if you want to configure the state of all pins prior to the * application running. This is useful when using external tools (like a * Pin Mux configuration tool) that generate code to initialize the pins. @@ -123,7 +123,7 @@ __weak int Board_Init(void) /* This function is called just before control is transferred to main(). * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ diff --git a/Libraries/CMSIS/Device/Maxim/MAX32572/Source/system_max32572.c b/Libraries/CMSIS/Device/Maxim/MAX32572/Source/system_max32572.c index d38d6967a8..05ebf93d58 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32572/Source/system_max32572.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32572/Source/system_max32572.c @@ -2,7 +2,7 @@ * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), - * Copyright (C) 2023-2024 Analog Devices, Inc. + * Copyright (C) 2023-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -87,7 +87,7 @@ __weak void SystemCoreClockUpdate(void) * implemented by the application for early initializations. If a value other * than '0' is returned, the C runtime initialization will be skipped. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit(), but care should be taken to reproduce the initialization steps * or a non-functional system may result. */ @@ -98,7 +98,7 @@ __weak int PreInit(void) } /* This function is called before the Board_Init function. This weak - * implementation does nothing, but you may over-ride this function in your + * implementation does nothing, but you may override this function in your * program if you want to configure the state of all pins prior to the * application running. This is useful when using external tools (like a * Pin Mux configuration tool) that generate code to initialize the pins. @@ -123,7 +123,7 @@ __weak int Board_Init(void) /* This function is called just before control is transferred to main(). * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ 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 7287d0d062..dfcc334db7 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32572/Source/system_riscv_max32572.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32572/Source/system_riscv_max32572.c @@ -2,7 +2,7 @@ * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), - * Copyright (C) 2023-2024 Analog Devices, Inc. + * Copyright (C) 2023-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -84,7 +84,7 @@ __weak void SystemCoreClockUpdate(void) * implemented by the application for early initializations. If a value other * than '0' is returned, the C runtime initialization will be skipped. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit(), but care should be taken to reproduce the initilization steps * or a non-functional system may result. */ @@ -94,6 +94,17 @@ __weak int PreInit(void) return 0; } +/* This function is called before the Board_Init function. This weak + * implementation does nothing, but you may override this function in your + * program if you want to configure the state of all pins prior to the + * application running. This is useful when using external tools (like a + * Pin Mux configuration tool) that generate code to initialize the pins. + */ +__weak void PinInit(void) +{ + /* Do nothing */ +} + __weak int PeripheralInit(void) { /* Do nothing */ @@ -115,7 +126,7 @@ void __enable_irq(void) /* This function is called just before control is transferred to main(). * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ @@ -125,6 +136,7 @@ __weak void SystemInit(void) __enable_irq(); + PinInit(); Board_Init(); /* Call peripheral init after board init to ensure the user's configuration diff --git a/Libraries/CMSIS/Device/Maxim/MAX32650/Source/system_max32650.c b/Libraries/CMSIS/Device/Maxim/MAX32650/Source/system_max32650.c index f38bbcdb49..678ffc4054 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32650/Source/system_max32650.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32650/Source/system_max32650.c @@ -2,7 +2,7 @@ * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), - * Copyright (C) 2023-2024 Analog Devices, Inc. + * Copyright (C) 2023-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -85,7 +85,7 @@ __weak void SystemCoreClockUpdate(void) * implemented by the application for early initializations. If a value other * than '0' is returned, the C runtime initialization will be skipped. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit(), but care should be taken to reproduce the initialization steps * or a non-functional system may result. */ @@ -97,7 +97,7 @@ __weak int PreInit(void) } /* This function is called before the Board_Init function. This weak - * implementation does nothing, but you may over-ride this function in your + * implementation does nothing, but you may override this function in your * program if you want to configure the state of all pins prior to the * application running. This is useful when using external tools (like a * Pin Mux configuration tool) that generate code to initialize the pins. @@ -122,7 +122,7 @@ __weak int Board_Init(void) /* This function is called just before control is transferred to main(). * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ diff --git a/Libraries/CMSIS/Device/Maxim/MAX32655/Source/system_max32655.c b/Libraries/CMSIS/Device/Maxim/MAX32655/Source/system_max32655.c index 953e44dd6f..403f43e0d0 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32655/Source/system_max32655.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32655/Source/system_max32655.c @@ -2,7 +2,7 @@ * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), - * Copyright (C) 2023-2024 Analog Devices, Inc. + * Copyright (C) 2023-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -92,7 +92,7 @@ __weak void SystemCoreClockUpdate(void) * implemented by the application for early initializations. If a value other * than '0' is returned, the C runtime initialization will be skipped. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit(), but care should be taken to reproduce the initialization steps * or a non-functional system may result. */ @@ -115,7 +115,7 @@ __weak int PreInit(void) } /* This function is called before the Board_Init function. This weak - * implementation does nothing, but you may over-ride this function in your + * implementation does nothing, but you may override this function in your * program if you want to configure the state of all pins prior to the * application running. This is useful when using external tools (like a * Pin Mux configuration tool) that generate code to initialize the pins. @@ -142,7 +142,7 @@ __weak void PalSysInit(void) {} /* This function is called just before control is transferred to main(). * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ 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 1319342961..eac23787fe 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32655/Source/system_riscv_max32655.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32655/Source/system_riscv_max32655.c @@ -2,7 +2,7 @@ * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), - * Copyright (C) 2023-2024 Analog Devices, Inc. + * Copyright (C) 2023-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -734,7 +734,7 @@ void SystemCoreClockUpdate(void) * implemented by the application for early initializations. If a value other * than '0' is returned, the C runtime initialization will be skipped. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit(), but care should be taken to reproduce the initilization steps * or a non-functional system may result. */ @@ -744,6 +744,17 @@ __weak int PreInit(void) return 0; } +/* This function is called before the Board_Init function. This weak + * implementation does nothing, but you may override this function in your + * program if you want to configure the state of all pins prior to the + * application running. This is useful when using external tools (like a + * Pin Mux configuration tool) that generate code to initialize the pins. + */ +__weak void PinInit(void) +{ + /* Do nothing */ +} + __weak int PeripheralInit(void) { /* Do nothing */ @@ -761,7 +772,7 @@ __weak void PalSysInit(void) {} /* This function is called just before control is transferred to main(). * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ @@ -778,6 +789,7 @@ __weak void SystemInit(void) __enable_irq(); + PinInit(); Board_Init(); /* Call peripheral init after board init to ensure the user's configuration diff --git a/Libraries/CMSIS/Device/Maxim/MAX32657/Source/system_max32657.c b/Libraries/CMSIS/Device/Maxim/MAX32657/Source/system_max32657.c index 503d5e35b2..7cd729e364 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32657/Source/system_max32657.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32657/Source/system_max32657.c @@ -1,6 +1,6 @@ /****************************************************************************** * - * Copyright (C) 2024 Analog Devices, Inc. + * Copyright (C) 2024-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -102,7 +102,7 @@ __weak void SystemCoreClockUpdate(void) * implemented by the application for early initializations. If a value other * than '0' is returned, the C runtime initialization will be skipped. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit(), but care should be taken to reproduce the initialization steps * or a non-functional system may result. */ @@ -114,7 +114,7 @@ __weak int PreInit(void) /** * This function is called before the Board_Init function. This weak - * implementation does nothing, but you may over-ride this function in your + * implementation does nothing, but you may override this function in your * program if you want to configure the state of all pins prior to the * application running. This is useful when using external tools (like a * Pin Mux configuration tool) that generate code to initialize the pins. @@ -143,7 +143,7 @@ __weak void PalSysInit(void) {} /** * This function is called just before control is transferred to main(). * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ @@ -206,7 +206,7 @@ __weak void SystemInit(void) * is transferred to non-secure world. Only available when * trustzone feature is used. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * NonSecure_Init(), but care should be taken to reproduce the initialization * steps to non-secure code. * diff --git a/Libraries/CMSIS/Device/Maxim/MAX32660/Source/system_max32660.c b/Libraries/CMSIS/Device/Maxim/MAX32660/Source/system_max32660.c index 5d77b706eb..9619c42a1d 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32660/Source/system_max32660.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32660/Source/system_max32660.c @@ -7,7 +7,7 @@ * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), - * Copyright (C) 2023-2024 Analog Devices, Inc. + * Copyright (C) 2023-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -87,7 +87,7 @@ __weak void SystemCoreClockUpdate(void) * implemented by the application for early initializations. If a value other * than '0' is returned, the C runtime initialization will be skipped. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit(), but care should be taken to reproduce the initilization steps * or a non-functional system may result. */ @@ -98,7 +98,7 @@ __weak int PreInit(void) } /* This function is called before the Board_Init function. This weak - * implementation does nothing, but you may over-ride this function in your + * implementation does nothing, but you may override this function in your * program if you want to configure the state of all pins prior to the * application running. This is useful when using external tools (like a * Pin Mux configuration tool) that generate code to initialize the pins. @@ -123,7 +123,7 @@ __weak int Board_Init(void) /* This function is called just before control is transferred to main(). * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ diff --git a/Libraries/CMSIS/Device/Maxim/MAX32662/Source/system_max32662.c b/Libraries/CMSIS/Device/Maxim/MAX32662/Source/system_max32662.c index c2505480cc..e1e014e119 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32662/Source/system_max32662.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32662/Source/system_max32662.c @@ -6,7 +6,7 @@ * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), - * Copyright (C) 2023-2024 Analog Devices, Inc. + * Copyright (C) 2023-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -110,7 +110,7 @@ __weak void SystemCoreClockUpdate(void) * implemented by the application for early initializations. If a value other * than '0' is returned, the C runtime initialization will be skipped. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit(), but care should be taken to reproduce the initialization steps * or a non-functional system may result. */ @@ -121,7 +121,7 @@ __weak int PreInit(void) } /* This function is called before the Board_Init function. This weak - * implementation does nothing, but you may over-ride this function in your + * implementation does nothing, but you may override this function in your * program if you want to configure the state of all pins prior to the * application running. This is useful when using external tools (like a * Pin Mux configuration tool) that generate code to initialize the pins. @@ -148,7 +148,7 @@ __weak void PalSysInit(void) {} /* This function is called just before control is transferred to main(). * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ diff --git a/Libraries/CMSIS/Device/Maxim/MAX32665/Source/system_core1_max32665.c b/Libraries/CMSIS/Device/Maxim/MAX32665/Source/system_core1_max32665.c index 74a277be54..811dbef188 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32665/Source/system_core1_max32665.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32665/Source/system_core1_max32665.c @@ -2,7 +2,7 @@ * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), - * Copyright (C) 2023-2024 Analog Devices, Inc. + * Copyright (C) 2023-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -48,7 +48,7 @@ __weak int main_core1(void) } /** - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit_Core1(). */ __weak void PreInit_Core1(void) @@ -60,7 +60,7 @@ __weak void PreInit_Core1(void) * This function is called just before control is transferred to main() * on Core 1. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ diff --git a/Libraries/CMSIS/Device/Maxim/MAX32665/Source/system_max32665.c b/Libraries/CMSIS/Device/Maxim/MAX32665/Source/system_max32665.c index 4edfbfabba..251b89dc58 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32665/Source/system_max32665.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32665/Source/system_max32665.c @@ -2,7 +2,7 @@ * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), - * Copyright (C) 2023-2024 Analog Devices, Inc. + * Copyright (C) 2023-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -93,7 +93,7 @@ __weak void SystemCoreClockUpdate(void) * implemented by the application for early initializations. If a value other * than '0' is returned, the C runtime initialization will be skipped. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit(), but care should be taken to reproduce the initialization steps * or a non-functional system may result. */ @@ -121,7 +121,7 @@ __weak int PreInit(void) } /* This function is called before the Board_Init function. This weak - * implementation does nothing, but you may over-ride this function in your + * implementation does nothing, but you may override this function in your * program if you want to configure the state of all pins prior to the * application running. This is useful when using external tools (like a * Pin Mux configuration tool) that generate code to initialize the pins. @@ -148,7 +148,7 @@ __weak void PalSysInit(void) {} /* This function is called just before control is transferred to main(). * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ diff --git a/Libraries/CMSIS/Device/Maxim/MAX32670/Source/system_max32670.c b/Libraries/CMSIS/Device/Maxim/MAX32670/Source/system_max32670.c index a919f38dfa..37d220df51 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32670/Source/system_max32670.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32670/Source/system_max32670.c @@ -2,7 +2,7 @@ * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), - * Copyright (C) 2023-2024 Analog Devices, Inc. + * Copyright (C) 2023-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -100,7 +100,7 @@ __weak void SystemCoreClockUpdate(void) * implemented by the application for early initializations. If a value other * than '0' is returned, the C runtime initialization will be skipped. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit(), but care should be taken to reproduce the initialization steps * or a non-functional system may result. */ @@ -111,7 +111,7 @@ __weak int PreInit(void) } /* This function is called before the Board_Init function. This weak - * implementation does nothing, but you may over-ride this function in your + * implementation does nothing, but you may override this function in your * program if you want to configure the state of all pins prior to the * application running. This is useful when using external tools (like a * Pin Mux configuration tool) that generate code to initialize the pins. @@ -136,7 +136,7 @@ __weak int Board_Init(void) /* This function is called just before control is transferred to main(). * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ diff --git a/Libraries/CMSIS/Device/Maxim/MAX32672/Source/system_max32672.c b/Libraries/CMSIS/Device/Maxim/MAX32672/Source/system_max32672.c index 70bd4b60ac..996dd3bbf9 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32672/Source/system_max32672.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32672/Source/system_max32672.c @@ -2,7 +2,7 @@ * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), - * Copyright (C) 2023-2024 Analog Devices, Inc. + * Copyright (C) 2023-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -105,7 +105,7 @@ __weak void SystemCoreClockUpdate(void) * implemented by the application for early initializations. If a value other * than '0' is returned, the C runtime initialization will be skipped. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit(), but care should be taken to reproduce the initialization steps * or a non-functional system may result. */ @@ -116,7 +116,7 @@ __weak int PreInit(void) } /* This function is called before the Board_Init function. This weak - * implementation does nothing, but you may over-ride this function in your + * implementation does nothing, but you may override this function in your * program if you want to configure the state of all pins prior to the * application running. This is useful when using external tools (like a * Pin Mux configuration tool) that generate code to initialize the pins. @@ -141,7 +141,7 @@ __weak int Board_Init(void) /* This function is called just before control is transferred to main(). * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ diff --git a/Libraries/CMSIS/Device/Maxim/MAX32675/Source/system_max32675.c b/Libraries/CMSIS/Device/Maxim/MAX32675/Source/system_max32675.c index 6d4ff32239..de60438255 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32675/Source/system_max32675.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32675/Source/system_max32675.c @@ -2,7 +2,7 @@ * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), - * Copyright (C) 2023-2024 Analog Devices, Inc. + * Copyright (C) 2023-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -107,7 +107,7 @@ __weak void SystemCoreClockUpdate(void) * implemented by the application for early initializations. If a value other * than '0' is returned, the C runtime initialization will be skipped. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit(), but care should be taken to reproduce the initialization steps * or a non-functional system may result. */ @@ -118,7 +118,7 @@ __weak int PreInit(void) } /* This function is called before the Board_Init function. This weak - * implementation does nothing, but you may over-ride this function in your + * implementation does nothing, but you may override this function in your * program if you want to configure the state of all pins prior to the * application running. This is useful when using external tools (like a * Pin Mux configuration tool) that generate code to initialize the pins. @@ -143,7 +143,7 @@ __weak int Board_Init(void) /* This function is called just before control is transferred to main(). * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ diff --git a/Libraries/CMSIS/Device/Maxim/MAX32680/Source/system_max32680.c b/Libraries/CMSIS/Device/Maxim/MAX32680/Source/system_max32680.c index fdd525ccb0..4dac645b57 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32680/Source/system_max32680.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32680/Source/system_max32680.c @@ -2,7 +2,7 @@ * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), - * Copyright (C) 2023-2024 Analog Devices, Inc. + * Copyright (C) 2023-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -91,7 +91,7 @@ __weak void SystemCoreClockUpdate(void) * implemented by the application for early initializations. If a value other * than '0' is returned, the C runtime initialization will be skipped. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit(), but care should be taken to reproduce the initialization steps * or a non-functional system may result. */ @@ -102,7 +102,7 @@ __weak int PreInit(void) } /* This function is called before the Board_Init function. This weak - * implementation does nothing, but you may over-ride this function in your + * implementation does nothing, but you may override this function in your * program if you want to configure the state of all pins prior to the * application running. This is useful when using external tools (like a * Pin Mux configuration tool) that generate code to initialize the pins. @@ -129,7 +129,7 @@ __weak void PalSysInit(void) {} /* This function is called just before control is transferred to main(). * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ 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 475486172c..0b0bd334b9 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32680/Source/system_riscv_max32680.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32680/Source/system_riscv_max32680.c @@ -2,7 +2,7 @@ * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), - * Copyright (C) 2023-2024 Analog Devices, Inc. + * Copyright (C) 2023-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -735,7 +735,7 @@ void SystemCoreClockUpdate(void) * implemented by the application for early initializations. If a value other * than '0' is returned, the C runtime initialization will be skipped. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit(), but care should be taken to reproduce the initilization steps * or a non-functional system may result. */ @@ -745,6 +745,17 @@ __weak int PreInit(void) return 0; } +/* This function is called before the Board_Init function. This weak + * implementation does nothing, but you may override this function in your + * program if you want to configure the state of all pins prior to the + * application running. This is useful when using external tools (like a + * Pin Mux configuration tool) that generate code to initialize the pins. + */ +__weak void PinInit(void) +{ + /* Do nothing */ +} + __weak int PeripheralInit(void) { /* Do nothing */ @@ -762,7 +773,7 @@ __weak void PalSysInit(void) {} /* This function is called just before control is transferred to main(). * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ @@ -780,6 +791,7 @@ __weak void SystemInit(void) MXC_ICC_Enable(MXC_ICC1); MXC_ICC_Flush(MXC_ICC1); + PinInit(); Board_Init(); /* Call peripheral init after board init to ensure the user's configuration diff --git a/Libraries/CMSIS/Device/Maxim/MAX32690/Source/system_max32690.c b/Libraries/CMSIS/Device/Maxim/MAX32690/Source/system_max32690.c index a85f05f57d..6db2c5febd 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32690/Source/system_max32690.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32690/Source/system_max32690.c @@ -2,7 +2,7 @@ * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), - * Copyright (C) 2023-2024 Analog Devices, Inc. + * Copyright (C) 2023-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -90,7 +90,7 @@ __weak void SystemCoreClockUpdate(void) * implemented by the application for early initializations. If a value other * than '0' is returned, the C runtime initialization will be skipped. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit(), but care should be taken to reproduce the initialization steps * or a non-functional system may result. */ @@ -101,7 +101,7 @@ __weak int PreInit(void) } /* This function is called before the Board_Init function. This weak - * implementation does nothing, but you may over-ride this function in your + * implementation does nothing, but you may override this function in your * program if you want to configure the state of all pins prior to the * application running. This is useful when using external tools (like a * Pin Mux configuration tool) that generate code to initialize the pins. @@ -134,7 +134,7 @@ __weak void PalSysInit(void) {} /* This function is called just before control is transferred to main(). * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ 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 f26b65b5cb..36bd81dcad 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32690/Source/system_riscv_max32690.c +++ b/Libraries/CMSIS/Device/Maxim/MAX32690/Source/system_riscv_max32690.c @@ -2,7 +2,7 @@ * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), - * Copyright (C) 2023-2024 Analog Devices, Inc. + * Copyright (C) 2023-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -87,7 +87,7 @@ __weak void SystemCoreClockUpdate(void) * implemented by the application for early initializations. If a value other * than '0' is returned, the C runtime initialization will be skipped. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit(), but care should be taken to reproduce the initilization steps * or a non-functional system may result. */ @@ -97,6 +97,17 @@ __weak int PreInit(void) return 0; } +/* This function is called before the Board_Init function. This weak + * implementation does nothing, but you may override this function in your + * program if you want to configure the state of all pins prior to the + * application running. This is useful when using external tools (like a + * Pin Mux configuration tool) that generate code to initialize the pins. + */ +__weak void PinInit(void) +{ + /* Do nothing */ +} + __weak int PeripheralInit(void) { /* Do nothing */ @@ -121,7 +132,7 @@ void __enable_irq(void) /* This function is called just before control is transferred to main(). * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ @@ -133,6 +144,7 @@ __weak void SystemInit(void) __enable_irq(); + PinInit(); Board_Init(); /* Call peripheral init after board init to ensure the user's configuration diff --git a/Libraries/CMSIS/Device/Maxim/MAX78000/Source/system_max78000.c b/Libraries/CMSIS/Device/Maxim/MAX78000/Source/system_max78000.c index 0104fa01aa..f6781ae0c9 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX78000/Source/system_max78000.c +++ b/Libraries/CMSIS/Device/Maxim/MAX78000/Source/system_max78000.c @@ -2,7 +2,7 @@ * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), - * Copyright (C) 2023-2024 Analog Devices, Inc. + * Copyright (C) 2023-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -87,7 +87,7 @@ __weak void SystemCoreClockUpdate(void) * implemented by the application for early initializations. If a value other * than '0' is returned, the C runtime initialization will be skipped. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit(), but care should be taken to reproduce the initialization steps * or a non-functional system may result. */ @@ -98,7 +98,7 @@ __weak int PreInit(void) } /* This function is called before the Board_Init function. This weak - * implementation does nothing, but you may over-ride this function in your + * implementation does nothing, but you may override this function in your * program if you want to configure the state of all pins prior to the * application running. This is useful when using external tools (like a * Pin Mux configuration tool) that generate code to initialize the pins. @@ -123,7 +123,7 @@ __weak int Board_Init(void) /* This function is called just before control is transferred to main(). * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ 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 17542a33bc..30d6a46b1e 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX78000/Source/system_riscv_max78000.c +++ b/Libraries/CMSIS/Device/Maxim/MAX78000/Source/system_riscv_max78000.c @@ -2,7 +2,7 @@ * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), - * Copyright (C) 2023-2024 Analog Devices, Inc. + * Copyright (C) 2023-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -60,7 +60,7 @@ __weak void SystemCoreClockUpdate(void) * implemented by the application for early initializations. If a value other * than '0' is returned, the C runtime initialization will be skipped. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit(), but care should be taken to reproduce the initilization steps * or a non-functional system may result. */ @@ -70,6 +70,17 @@ __weak int PreInit(void) return 0; } +/* This function is called before the Board_Init function. This weak + * implementation does nothing, but you may override this function in your + * program if you want to configure the state of all pins prior to the + * application running. This is useful when using external tools (like a + * Pin Mux configuration tool) that generate code to initialize the pins. + */ +__weak void PinInit(void) +{ + /* Do nothing */ +} + __weak int PeripheralInit(void) { /* Do nothing */ @@ -85,7 +96,7 @@ __weak int Board_Init(void) /* This function is called just before control is transferred to main(). * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ @@ -95,6 +106,7 @@ __weak void SystemInit(void) // but riscv needs variables initialized SystemCoreClockUpdate(); + PinInit(); Board_Init(); /* Call peripheral init after board init to ensure the user's configuration diff --git a/Libraries/CMSIS/Device/Maxim/MAX78002/Source/system_max78002.c b/Libraries/CMSIS/Device/Maxim/MAX78002/Source/system_max78002.c index 9d117eb4a8..68885da853 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX78002/Source/system_max78002.c +++ b/Libraries/CMSIS/Device/Maxim/MAX78002/Source/system_max78002.c @@ -2,7 +2,7 @@ * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), - * Copyright (C) 2023-2024 Analog Devices, Inc. + * Copyright (C) 2023-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -92,7 +92,7 @@ __weak void SystemCoreClockUpdate(void) * implemented by the application for early initializations. If a value other * than '0' is returned, the C runtime initialization will be skipped. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit(), but care should be taken to reproduce the initialization steps * or a non-functional system may result. */ @@ -103,7 +103,7 @@ __weak int PreInit(void) } /* This function is called before the Board_Init function. This weak - * implementation does nothing, but you may over-ride this function in your + * implementation does nothing, but you may override this function in your * program if you want to configure the state of all pins prior to the * application running. This is useful when using external tools (like a * Pin Mux configuration tool) that generate code to initialize the pins. @@ -127,7 +127,7 @@ __weak int Board_Init(void) /* This function is called just before control is transferred to main(). * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ 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 6d7354e2f0..20b9fecb7b 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX78002/Source/system_riscv_max78002.c +++ b/Libraries/CMSIS/Device/Maxim/MAX78002/Source/system_riscv_max78002.c @@ -2,7 +2,7 @@ * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), - * Copyright (C) 2023-2024 Analog Devices, Inc. + * Copyright (C) 2023-2025 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -60,7 +60,7 @@ __weak void SystemCoreClockUpdate(void) * implemented by the application for early initializations. If a value other * than '0' is returned, the C runtime initialization will be skipped. * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * PreInit(), but care should be taken to reproduce the initilization steps * or a non-functional system may result. */ @@ -70,6 +70,17 @@ __weak int PreInit(void) return 0; } +/* This function is called before the Board_Init function. This weak + * implementation does nothing, but you may override this function in your + * program if you want to configure the state of all pins prior to the + * application running. This is useful when using external tools (like a + * Pin Mux configuration tool) that generate code to initialize the pins. + */ +__weak void PinInit(void) +{ + /* Do nothing */ +} + __weak int PeripheralInit(void) { /* Do nothing */ @@ -85,7 +96,7 @@ __weak int Board_Init(void) /* This function is called just before control is transferred to main(). * - * You may over-ride this function in your program by defining a custom + * You may override this function in your program by defining a custom * SystemInit(), but care should be taken to reproduce the initialization * steps or a non-functional system may result. */ @@ -95,6 +106,7 @@ __weak void SystemInit(void) // but riscv needs variables initialized SystemCoreClockUpdate(); + PinInit(); Board_Init(); /* Call peripheral init after board init to ensure the user's configuration