Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
*/
Expand All @@ -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.
Expand All @@ -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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
*/
Expand All @@ -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.
Expand All @@ -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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
*/
Expand All @@ -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.
Expand All @@ -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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
*/
Expand All @@ -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 */
Expand All @@ -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.
*/
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
*/
Expand All @@ -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.
Expand All @@ -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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
*/
Expand All @@ -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.
Expand All @@ -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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
*/
Expand All @@ -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 */
Expand All @@ -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.
*/
Expand All @@ -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
Expand Down
10 changes: 5 additions & 5 deletions Libraries/CMSIS/Device/Maxim/MAX32657/Source/system_max32657.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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.
*/
Expand All @@ -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.
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
*/
Expand All @@ -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.
Expand All @@ -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.
*/
Expand Down
Loading