mirror of
https://github.com/mytechnotalent/Embedded-Hacking.git
synced 2026-05-20 23:04:55 +02:00
d072ec5946
- Restructure flat files into Inc/ (headers) and Src/ (sources) - Replace constants.h with rp2350.h register layer (datasheet-verified) - Add full Doxygen docstrings on all files, functions, and structs - Replace build.bat/clean.bat with cross-platform Makefile - Fix GPIO_IN offset (0x004), XOSC COUNT offset (0x10), SRAM size (520K) - Rename blink_* API to led_* (name after peripheral, not feature) - Build outputs to build/ directory - Cross-platform .vscode configs (Windows/macOS/Linux)
35 lines
1013 B
C
35 lines
1013 B
C
/**
|
|
******************************************************************************
|
|
* @file rp2350_stack.h
|
|
* @author Kevin Thomas
|
|
* @brief Stack pointer initialization header for RP2350.
|
|
*
|
|
* Sets MSP, PSP, MSPLIM, and PSPLIM from the STACK_TOP and
|
|
* STACK_LIMIT values defined in rp2350.h.
|
|
*
|
|
******************************************************************************
|
|
* @attention
|
|
*
|
|
* Copyright (c) 2026 Kevin Thomas.
|
|
* All rights reserved.
|
|
*
|
|
* This software is licensed under terms that can be found in the LICENSE file
|
|
* in the root directory of this software component.
|
|
* If no LICENSE file comes with this software, it is provided AS-IS.
|
|
*
|
|
******************************************************************************
|
|
*/
|
|
|
|
#ifndef __RP2350_STACK_H
|
|
#define __RP2350_STACK_H
|
|
|
|
#include "rp2350.h"
|
|
|
|
/**
|
|
* @brief Initialize MSP, PSP, MSPLIM, and PSPLIM stack pointers.
|
|
* @retval None
|
|
*/
|
|
void stack_init(void);
|
|
|
|
#endif /* __RP2350_STACK_H */
|