From ce5d59bc8f499376bdcdd409b36f3c5ea9b81d77 Mon Sep 17 00:00:00 2001 From: suikan <26223147+suikan4github@users.noreply.github.com> Date: Fri, 22 Feb 2019 08:50:11 +0900 Subject: [PATCH] Finished Application flow. Next one is HAL assertion flow. --- Inc/murasaki_2_ug.hpp | 51 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 48 insertions(+), 3 deletions(-) diff --git a/Inc/murasaki_2_ug.hpp b/Inc/murasaki_2_ug.hpp index 29b59bb..e49850d 100644 --- a/Inc/murasaki_2_ug.hpp +++ b/Inc/murasaki_2_ug.hpp @@ -375,6 +375,8 @@ * @li @subpage ug_sect_6_1 * @li @subpage ug_sect_6_2 * @li @subpage ug_sect_6_3 + * @li @subpage ug_sect_6_4 + * @li @subpage ug_sect_6_5 */ /** @@ -514,14 +516,57 @@ /** * @page ug_sect_6_2 HAL Assertion flow - * @brief @ref murasaki::BitOut and murasaki::BitIn provides the GPIO functionality + * @brief HAL Assertion is a STM32Cube HAL's programming help mechanism. + * + * @code + * void assert_failed(uint8_t *file, uint32_t line) + * { + * // USER CODE BEGIN 6 + * CustomAssertFailed(file, line); + * // USER CODE END 6 + * } + * @endcode + * + * @code + * void CustomAssertFailed(uint8_t* file, uint32_t line) { + * murasaki::debugger->Printf( + * "Wrong parameters value: file %s on line %d\r\n", + * file, + * line); + * } + * @endcode */ /** - * @page ug_sect_6_3 Sprious Interrupt flow - * @brief @ref murasaki::BitOut and murasaki::BitIn provides the GPIO functionality + * @page ug_sect_6_3 Spurious Interrupt flow + * @brief Murasaki provides a mechanism to catch a spurious interrupt. + * + * @code + * .section .text.Default_Handler,"ax",%progbits + * .global CustomDefaultHandler + * Default_Handler: + * bl CustomDefaultHandler + * Infinite_Loop: + * b Infinite_Loop + * @endcode + * + * @code + * void CustomDefaultHandler() { + * // Call debugger's post mortem processing. Never return again. + * murasaki::debugger->DoPostMortem(); + * } + * @endcode */ +/** + * @page ug_sect_6_4 General Interrupt flow + * @brief Murasaki provides a mechanism to catch a spurious interrupt. + */ + +/** + * @page ug_sect_6_5 EXTI flow + * @brief Murasaki provides a mechanism to catch a spurious interrupt. + */ #endif /* MURASAKI_2_UG_HPP_ */