From 4695b47da68a5b2f75270bea21e15b8f1b9fd6ff Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Mon, 25 Jul 2016 15:18:40 +0200 Subject: Switch to CMSIS --- ucoo/arch/vector.stm32f1.hh | 220 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 220 insertions(+) create mode 100644 ucoo/arch/vector.stm32f1.hh (limited to 'ucoo/arch/vector.stm32f1.hh') diff --git a/ucoo/arch/vector.stm32f1.hh b/ucoo/arch/vector.stm32f1.hh new file mode 100644 index 0000000..39d3fd4 --- /dev/null +++ b/ucoo/arch/vector.stm32f1.hh @@ -0,0 +1,220 @@ +#ifndef ucoo_arch_vector_stm32f1_hh +#define ucoo_arch_vector_stm32f1_hh +// ucoolib - Microcontroller object oriented library. {{{ +// +// Copyright (C) 2016 Nicolas Schodet +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the "Software"), +// to deal in the Software without restriction, including without limitation +// the rights to use, copy, modify, merge, publish, distribute, sublicense, +// and/or sell copies of the Software, and to permit persons to whom the +// Software is furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +// DEALINGS IN THE SOFTWARE. +// +// }}} + +#define UCOO_VECTOR_IRQ \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + nullptr, \ + nullptr, \ + nullptr, \ + nullptr, \ + nullptr, \ + nullptr, \ + nullptr, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + nullptr, \ + nullptr, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt, \ + interrupt + +namespace ucoo { + +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); +template<> void interrupt () + __attribute__ ((weak, alias ("undefined_handler"))); + +} // namespace ucoo + +#endif // ucoo_arch_vector_stm32f1_hh -- cgit v1.2.3