テスト用のあれこれ共用フォルダ
修訂 | 89e20c71a7ad92c3c54913334edb33483a0330f4 (tree) |
---|---|
時間 | 2018-05-31 23:26:03 |
作者 | takemasa <suikan@user...> |
Commiter | takemasa |
Edit doxygen comment. murasaki callbacks
@@ -325,6 +325,30 @@ | ||
325 | 325 | * But for the large system which has its own command line shell, this input-interruption is harmful. |
326 | 326 | * For such the system, programmer want to call murasaki::Debugger::RePrint() member function, by certain customer command. |
327 | 327 | * |
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 | |
328 | 352 | */ |
329 | 353 | |
330 | 354 |
@@ -333,6 +357,22 @@ | ||
333 | 357 | * \page murasaki_pg_interrupt Routing interrupts |
334 | 358 | * \brief Routing the system interrupt to the Murasaki platform. |
335 | 359 | * @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 | + * | |
336 | 376 | */ |
337 | 377 | |
338 | 378 | /** |
@@ -344,3 +384,4 @@ | ||
344 | 384 | |
345 | 385 | |
346 | 386 | #endif /* MURASAKI_PG_HPP_ */ |
387 | + |