From f440728644ad3698ffd6af1abcfcc07aad5793c3 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Tue, 8 Aug 2023 23:10:02 -0400 Subject: initial commit * combine all source files into this monorepo * convert all third-party source packages into submodules * small fixes due to changes in latest third-part packages --- firmware/source/handlers.hpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 firmware/source/handlers.hpp (limited to 'firmware/source/handlers.hpp') diff --git a/firmware/source/handlers.hpp b/firmware/source/handlers.hpp new file mode 100644 index 0000000..fd7e10c --- /dev/null +++ b/firmware/source/handlers.hpp @@ -0,0 +1,31 @@ +/** + * @file handlers.hpp + * @brief Interrupt service routine handlers. + * + * Copyright (C) 2021 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 . + */ + +#ifndef STMDSP_HANDLERS_HPP +#define STMDSP_HANDLERS_HPP + +#include "ch.h" + +extern "C" { + +__attribute__((naked)) +void port_syscall(struct port_extctx *ctxp, uint32_t n); + +__attribute__((naked)) +void MemManage_Handler(); + +__attribute__((naked)) +void HardFault_Handler(); + +} + +#endif // STMDSP_HANDLERS_HPP + -- cgit v1.2.3