テスト用のあれこれ共用フォルダ
Revisión | 0dc59fe500ea268b7c1a1fcb3050028184eaeb9f (tree) |
---|---|
Tiempo | 2019-01-14 11:28:09 |
Autor | takemasa <suikan@user...> |
Commiter | takemasa |
Refactoring doxygen comment.
@@ -12,8 +12,8 @@ | ||
12 | 12 | <targetDefinitions> |
13 | 13 | <board id="nucleo-f746zg"> |
14 | 14 | <name>NUCLEO-F746ZG</name> |
15 | - <dbgIF>JTAG</dbgIF> | |
16 | 15 | <dbgIF>SWD</dbgIF> |
16 | + <dbgIF>JTAG</dbgIF> | |
17 | 17 | <dbgDEV>ST-Link</dbgDEV> |
18 | 18 | <mcuId>stm32f746zgtx</mcuId> |
19 | 19 | </board> |
@@ -98,7 +98,7 @@ OUTPUT_LANGUAGE = English | ||
98 | 98 | # documentation (similar to Javadoc). Set to NO to disable this. |
99 | 99 | # The default value is: YES. |
100 | 100 | |
101 | -BRIEF_MEMBER_DESC = YES | |
101 | +BRIEF_MEMBER_DESC = NO | |
102 | 102 | |
103 | 103 | # If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief |
104 | 104 | # description of a member or function before the detailed description |
@@ -107,7 +107,7 @@ BRIEF_MEMBER_DESC = YES | ||
107 | 107 | # brief descriptions will be completely suppressed. |
108 | 108 | # The default value is: YES. |
109 | 109 | |
110 | -REPEAT_BRIEF = YES | |
110 | +REPEAT_BRIEF = NO | |
111 | 111 | |
112 | 112 | # This tag implements a quasi-intelligent brief description abbreviator that is |
113 | 113 | # used to form the text in various listings. Each string in this list, if found |
@@ -2037,7 +2037,7 @@ INCLUDE_FILE_PATTERNS = | ||
2037 | 2037 | # recursively expanded use the := operator instead of the = operator. |
2038 | 2038 | # This tag requires that the tag ENABLE_PREPROCESSING is set to YES. |
2039 | 2039 | |
2040 | -PREDEFINED = HAL_UART_MODULE_ENABLED HAL_I2C_MODULE_ENABLED HAL_SPI_MODULE_ENABLED HAL_GPIO_MODULE_ENABLED USE_FULL_ASSERT MURASAKI_CONFIG_NOSYSLOG | |
2040 | +PREDEFINED = HAL_UART_MODULE_ENABLED HAL_I2C_MODULE_ENABLED HAL_SPI_MODULE_ENABLED HAL_GPIO_MODULE_ENABLED USE_FULL_ASSERT MURASAKI_CONFIG_NOSYSLOG | |
2041 | 2041 | |
2042 | 2042 | # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this |
2043 | 2043 | # tag can be used to specify a list of macro names that should be expanded. The |
@@ -75,7 +75,7 @@ class AbstractI2CMaster : murasaki::AbstractPeripheral | ||
75 | 75 | * @param rx_data Data array to transmit. |
76 | 76 | * @param rx_size Data counts[bytes] to transmit. |
77 | 77 | * @param tx_transfered_count the count of the bytes transmitted during the API execution. |
78 | - * @param tx_transfered_count the count of the bytes received during the API execution. | |
78 | + * @param rx_transfered_count the count of the bytes received during the API execution. | |
79 | 79 | * @param timeout_ms Time ou [mS]. By default, there is not timeout. |
80 | 80 | * @return Result of the processing |
81 | 81 | * @details |
@@ -151,7 +151,7 @@ class I2cMaster : public AbstractI2CMaster | ||
151 | 151 | * @param rx_data Data array to transmit. |
152 | 152 | * @param rx_size Data counts[bytes] to transmit. Must be smaller than 65536 |
153 | 153 | * @param tx_transfered_count the count of the bytes transmitted during the API execution. |
154 | - * @param tx_transfered_count the count of the bytes received during the API execution. | |
154 | + * @param rx_transfered_count the count of the bytes received during the API execution. | |
155 | 155 | * @param timeout_ms Time ou [mS]. By default, there is not timeout. |
156 | 156 | * @return Result of the processing |
157 | 157 | * @details |
@@ -6,14 +6,14 @@ | ||
6 | 6 | * \brief Doxygen document file. No need to include. |
7 | 7 | */ |
8 | 8 | |
9 | -#ifndef MURASAKI_UG_HPP_ | |
10 | -#define MURASAKI_UG_HPP_ | |
9 | +#ifndef MURASAKI_0_UG_HPP_ | |
10 | +#define MURASAKI_0_UG_HPP_ | |
11 | 11 | |
12 | 12 | /** |
13 | - * \page murasaki_ug A user's guide of Murasaki Class Library | |
14 | - * \brief Overview of the Murasaki documentation. | |
13 | + * \page murasaki_ug User's guide | |
14 | + * \brief This user's guide introduces Murasaki class library step by step. | |
15 | 15 | * \details |
16 | - * This user's guide introduces Murasaki class library step by step. | |
16 | + * | |
17 | 17 | * In this guide, user will study the class library from scratch. |
18 | 18 | * This guide is written carefully to be ease of understand. |
19 | 19 | * But coverage is not perfect. |
@@ -33,10 +33,9 @@ | ||
33 | 33 | |
34 | 34 | /** |
35 | 35 | * \page murasaki_ug_design Design Philosophy |
36 | - * \brief The base idea of this class library. | |
36 | + * \brief Murasaki, is a class library on the STM32 HAL and FreeRTOS. | |
37 | 37 | * \details |
38 | - * Murasaki, is a class library on the STM32 HAL and FreeRTOS. By using Murasaki, | |
39 | - * you can program STM32 series quickly and easily. | |
38 | + * By using Murasaki, you can program STM32 series quickly and easily. | |
40 | 39 | * |
41 | 40 | * \section sec1 Overview |
42 | 41 | * Murasaki has following design philosophies: |
@@ -152,9 +151,9 @@ | ||
152 | 151 | |
153 | 152 | /** |
154 | 153 | * \page murasaki_ug_usage Usage Introduction |
155 | - * \brief Step by Step introduction | |
154 | + * \brief In this page, we see how to use the Murasaki class library in the STM32 program. | |
156 | 155 | * \details |
157 | - * In this page, we see how to use the Murasaki class library in the STM32 program. | |
156 | + * | |
158 | 157 | * |
159 | 158 | * In the following description we assumes several things on the application skeleton which we are going to use Murasaki : |
160 | 159 | * \li It is generated by <a href= "http://www.st.com/ja/development-tools/stm32cubemx.html"> CubeMX </a> |
@@ -317,11 +316,11 @@ | ||
317 | 316 | * |
318 | 317 | * Above example is basic setup of DebuggerUart class. But common among the peripheral encapsulating class in Murasaki. |
319 | 318 | * |
320 | - * Note that it is strongly recommended to use the @ref DebuggerUart class as base of the debugger. But for | |
319 | + * Note that it is strongly recommended to use the murasaki::DebuggerUart class as base of the debugger. But for | |
321 | 320 | * the normal use, the @ref murasaki::Uart class is provided better class. |
322 | 321 | * |
323 | 322 | * \section sec_us_4 Test run |
324 | - * The murasaki::Uart ( and @ref murasaki::DebuggerUart ) type object can transmit or receive data in task context. | |
323 | + * The murasaki::Uart ( and murasaki::DebuggerUart ) type object can transmit or receive data in task context. | |
325 | 324 | * Both transmission and receive are independent. Then, 2 independent tasks can |
326 | 325 | * call each member function simultaneously. |
327 | 326 | * |
@@ -421,9 +420,9 @@ | ||
421 | 420 | |
422 | 421 | /** |
423 | 422 | * \page murasaki_ug_environment Target and Environment |
424 | - * \brief Hardware and Software. | |
423 | + * \brief Murasaki library was originally developed with following environment: | |
425 | 424 | * \details |
426 | - * Murasaki library was originally developed with following environment: | |
425 | + * | |
427 | 426 | * \li <a href="http://www.st.com/en/evaluation-tools/nucleo-f746zg.html">Nucleo F746ZG ( STM32F746ZG )</a> |
428 | 427 | * \li <a href="http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-configurators-and-code-generators/stm32cubemx.html">STM32CubeMX 4.22.1</a> |
429 | 428 | * \li <a href="http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-ides/sw4stm32.html">SW4STM32 1.15.0.201708311556 ( with eclipse 4.6.3 )</a> |
@@ -436,4 +435,4 @@ | ||
436 | 435 | */ |
437 | 436 | |
438 | 437 | |
439 | -#endif /* MURASAKI_UG_HPP_ */ | |
438 | +#endif /* MURASAKI_0_UG_HPP_ */ |
@@ -6,14 +6,14 @@ | ||
6 | 6 | * @brief Porting Guide |
7 | 7 | */ |
8 | 8 | |
9 | -#ifndef MURASAKI_PG_HPP_ | |
10 | -#define MURASAKI_PG_HPP_ | |
9 | +#ifndef MURASAKI_1_PG_HPP_ | |
10 | +#define MURASAKI_1_PG_HPP_ | |
11 | 11 | |
12 | 12 | /** |
13 | - * \page murasaki_pg A porting guide of Murasaki Class Library | |
14 | - * \brief Describes how to port the murasaki library to the STM32 processor board. | |
13 | + * \page murasaki_pg Porting guide | |
14 | + * \brief This porting guide introduces murasaki class library porting step by step. | |
15 | 15 | * \details |
16 | - * This porting guide introduces murasaki class library porting step by step. | |
16 | + * | |
17 | 17 | * In this guide, user will study the library porting to the STM32 microcomputer |
18 | 18 | * system working with STM32 HAL. |
19 | 19 | * |
@@ -38,9 +38,9 @@ | ||
38 | 38 | |
39 | 39 | /** |
40 | 40 | * \page murasaki_pg_directory Directory Structure |
41 | - * \brief Explain where is what | |
41 | + * \brief Murasaki has two main directory and several user modifiable files. | |
42 | 42 | * \details |
43 | - * Murasaki has two main directory and several user modifiable files | |
43 | + * | |
44 | 44 | * This page describes these directories and files. These file can be copied from the sample program. |
45 | 45 | * |
46 | 46 | * In the following descriptions, "/" means project root directory. |
@@ -113,15 +113,15 @@ | ||
113 | 113 | * \li Custome default exception handler |
114 | 114 | * |
115 | 115 | * @section sec_ds_6 murasaki_platform.hpp |
116 | - * A header file of the @ref murasaki_platfrom.cpp | |
116 | + * A header file of the @ref murasaki_platform.cpp | |
117 | 117 | * |
118 | 118 | */ |
119 | 119 | |
120 | 120 | /** |
121 | 121 | * \page murasaki_pg_cubemx CubeMX setting |
122 | - * \brief Setting for the runtime resources. | |
122 | + * \brief There is several required CubeMX setting. | |
123 | 123 | * \details |
124 | - * There is several required CubeMX setting | |
124 | + * | |
125 | 125 | * \li Heap Size |
126 | 126 | * \li Stack Size |
127 | 127 | * \li Task stack size of the default task |
@@ -194,16 +194,16 @@ | ||
194 | 194 | |
195 | 195 | /** |
196 | 196 | * \page murasaki_pg_configuration Configuration |
197 | - * \brief Do you need to change the priority and stack size of task? Read here. | |
197 | + * \brief Murasaki has configurable parameters. | |
198 | 198 | * \details |
199 | - * Murasaki has configurable parameters. | |
199 | + * | |
200 | 200 | * These parameters control mainly the task size and task priority. |
201 | 201 | * |
202 | 202 | * One of the special configuration is \ref MURASAKI_CONFIG_NODEBUG macro. |
203 | 203 | * This macro controls whether assertion inside murasaki source code works or ignored. |
204 | 204 | * |
205 | 205 | * To customize the configuration, define the configuration macro with desired value in the |
206 | - * \ref platform_config.hpp file. | |
206 | + * platform_config.hpp file. | |
207 | 207 | * This definition will override the murasaki default configuration. |
208 | 208 | * |
209 | 209 | * For the detail of the each macros, see \ref MURASAKI_DEFINITION_GROUP. |
@@ -211,9 +211,9 @@ | ||
211 | 211 | |
212 | 212 | /** |
213 | 213 | * @page murasaki_pg_task_priority_and_stack Task Priority and Stack Size |
214 | - * @brief How the task and ISR priority works. | |
214 | + * @brief The FreeRTOS task priority is allowed from 1 to configMAX_PRIORITIES. | |
215 | 215 | * @details |
216 | - * The FreeRTOS task priority is allowed from 1 to configMAX_PRIORITIES. | |
216 | + * | |
217 | 217 | * Where configMAX_PRIORITIES is porting dependent. Tha task with priority == configMAX_PRIORITIES will run with |
218 | 218 | * the highest priority among all tasks. |
219 | 219 | * |
@@ -234,10 +234,9 @@ | ||
234 | 234 | |
235 | 235 | /** |
236 | 236 | * \page murasaki_pg_heap Heap memory consideration |
237 | - * \brief A consideration of the heap setting and usage. | |
237 | + * \brief In murasaki, there is a re-definition of new and delete operator inside \ref allocators.cpp. | |
238 | 238 | * @details |
239 | - * In murasaki, there is a re-definition of \ref new and \ref delete operator | |
240 | - * inside \ref allocators.cpp. This re-definition let the pvPortMalloc() allocate | |
239 | + * This re-definition let the pvPortMalloc() allocate | |
241 | 240 | * a fragment of memory for the new operators. |
242 | 241 | * |
243 | 242 | * This changes converges all allocation to the FreeRTOS's heap. |
@@ -256,9 +255,9 @@ | ||
256 | 255 | |
257 | 256 | /** |
258 | 257 | * \page murasaki_pg_platform_varialbe Platform variable |
259 | - * \brief Making platform variable. | |
258 | + * \brief The murasaki::platform and the murasaki::debugger have to be initialized by the InitPlatform() function. | |
260 | 259 | * @details |
261 | - * The murasaki::platform and the murasaki::debugger have to be initialized by the InitPlatform() function. | |
260 | + * | |
262 | 261 | * The programming of this function is a responsibility of the porting programmer. |
263 | 262 | * |
264 | 263 | * First of all, the porting programmer has to make the peripheral handles as visible from the murasaki_platform.cpp. |
@@ -356,9 +355,9 @@ | ||
356 | 355 | |
357 | 356 | /** |
358 | 357 | * \page murasaki_pg_interrupt Routing interrupts |
359 | - * \brief Routing the system interrupt to the Murasaki platform. | |
358 | + * \brief The murasaki_platform.cpp has skeletons of HAL callback. | |
360 | 359 | * @details |
361 | - * The murasaki_platform.cpp has skeletons of HAL callbacks. | |
360 | + * | |
362 | 361 | * These callbacks are pre-defined inside HAL as receptors of interrupt. |
363 | 362 | * These definitions inside HAL are "weak" binding. Thus, these skeletons in murasaki_platform.cpp overrides the definition. |
364 | 363 | * The porting programmer have to program these skeltons correctly. |
@@ -379,6 +378,8 @@ | ||
379 | 378 | * Murasaki class returns true if the given peripheral handle matches with its internal handle. |
380 | 379 | * Thus, this is good way to poll all the UART peripheral inside this callback function. |
381 | 380 | * |
381 | + * Following is the list of the interrupts which applicaiton have to route to the peripehral class variables. | |
382 | + * | |
382 | 383 | * \li void HAL_UART_TxCpltCallback(UART_HandleTypeDef * huart); |
383 | 384 | * \li void HAL_UART_RxCpltCallback(UART_HandleTypeDef * huart); |
384 | 385 | * \li void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart); |
@@ -393,9 +394,9 @@ | ||
393 | 394 | |
394 | 395 | /** |
395 | 396 | * \page murasaki_pg_error Error handling |
396 | - * \brief System error handling by the Murasaki platform. | |
397 | + * \brief The murasaki_platform.cpp has two error handling functions. | |
397 | 398 | * @details |
398 | - * The murasaki_platform.cpp has two error handling functions. | |
399 | + * | |
399 | 400 | * These functions are pre-programmed from the first. |
400 | 401 | * And usually its enough to use the pre-programmed version. |
401 | 402 | * In the other hand the porting programmer have to modify the application program to call these |
@@ -454,5 +455,5 @@ | ||
454 | 455 | |
455 | 456 | |
456 | 457 | |
457 | -#endif /* MURASAKI_PG_HPP_ */ | |
458 | +#endif /* MURASAKI_1_PG_HPP_ */ | |
458 | 459 |