You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
768 B
C++

/**
* @file handlers.hpp
* @brief Interrupt service routine handlers.
*
* Copyright (C) 2023 Clyne Sullivan
*
* Distributed under the GNU GPL v3 or later. You should have received a copy of
* the GNU General Public License along with this program.
* If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef STMDSP_HANDLERS_HPP
#define STMDSP_HANDLERS_HPP
#include "ch.h"
extern "C" {
// Service call handler ("svc" calls)
__attribute__((naked))
void port_syscall(struct port_extctx *ctxp, uint32_t n);
// Handle memory faults possibly caused by the algorithm.
__attribute__((naked))
void MemManage_Handler();
// Handle execution faults possibly caused by the algorithm.
__attribute__((naked))
void HardFault_Handler();
}
#endif // STMDSP_HANDLERS_HPP