• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

テスト用のあれこれ共用フォルダ


Commit MetaInfo

修訂89e20c71a7ad92c3c54913334edb33483a0330f4 (tree)
時間2018-05-31 23:26:03
作者takemasa <suikan@user...>
Commitertakemasa

Log Message

Edit doxygen comment. murasaki callbacks

Change Summary

差異

--- a/stm32_development/murasaki/murasaki/murasaki_pg.hpp
+++ b/stm32_development/murasaki/murasaki/murasaki_pg.hpp
@@ -325,6 +325,30 @@
325325 * But for the large system which has its own command line shell, this input-interruption is harmful.
326326 * For such the system, programmer want to call murasaki::Debugger::RePrint() member function, by certain customer command.
327327 *
328+ * The ExecPlatform() function implements the actual algorithm of application.
329+ *
330+ * @code
331+ * void ExecPlatform()
332+ * {
333+ * // counter for the demonstration.
334+ * static int count = 0;
335+ *
336+ * // Loop forever
337+ * while (true) {
338+ * // Toggle LED.
339+ * murasaki::platform.led->Toggle();
340+ *
341+ * // print a message with counter value to the console.
342+ * murasaki::debugger->Printf("Hello %d \n\r", count);
343+ *
344+ * // update the counter value.
345+ * count++;
346+ *
347+ * // wait for a while
348+ * murasaki::Sleep(static_cast<murasaki::WaitMilliSeconds>(500));
349+ * }
350+ * }
351+ * @endcode
328352 */
329353
330354
@@ -333,6 +357,22 @@
333357 * \page murasaki_pg_interrupt Routing interrupts
334358 * \brief Routing the system interrupt to the Murasaki platform.
335359 * @details
360+ * The \ref murasaki_platform.cpp has skeletons of HAL callbacks.
361+ * These callbacks are pre-defined inside HAL as receptors of interrupt.
362+ * These definitions inside HAL are "weak" bound. Then, these skeletons in murasaki_platform.cpp overrides the definition.
363+ *
364+ * In the Murasaki manner, the skeletons have to call the relevant callback member function of platform variables.
365+ *
366+ * \li void HAL_UART_TxCpltCallback(UART_HandleTypeDef * huart);
367+ * \li void HAL_UART_RxCpltCallback(UART_HandleTypeDef * huart);
368+ * \li void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart);
369+ * \li void HAL_SPI_TxRxCpltCallback(SPI_HandleTypeDef *hspi);
370+ * \li void HAL_SPI_ErrorCallback(SPI_HandleTypeDef * hspi);
371+ * \li void HAL_I2C_MasterTxCpltCallback(I2C_HandleTypeDef * hi2c);
372+ * \li void HAL_I2C_MasterRxCpltCallback(I2C_HandleTypeDef * hi2c);
373+ * \li void HAL_I2C_ErrorCallback(I2C_HandleTypeDef * hi2c);
374+ * \li void HAL_GPIO_EXTI_Callback(uint16_t GPIO_P);
375+ *
336376 */
337377
338378 /**
@@ -344,3 +384,4 @@
344384
345385
346386 #endif /* MURASAKI_PG_HPP_ */
387+