diff options
| author | skullY <skullydazed@gmail.com> | 2019-08-30 11:19:03 -0700 |
|---|---|---|
| committer | skullydazed <skullydazed@users.noreply.github.com> | 2019-08-30 15:01:52 -0700 |
| commit | b624f32f944acdc59dcb130674c09090c5c404cb (patch) | |
| tree | bc13adbba137d122d9a2c2fb2fafcbb08ac10e25 /quantum/stm32/chconf.h | |
| parent | 61af76a10d00aba185b8338604171de490a13e3b (diff) | |
| download | qmk_firmware-b624f32f944acdc59dcb130674c09090c5c404cb.tar.gz qmk_firmware-b624f32f944acdc59dcb130674c09090c5c404cb.zip | |
clang-format changes
Diffstat (limited to 'quantum/stm32/chconf.h')
| -rw-r--r-- | quantum/stm32/chconf.h | 132 |
1 files changed, 60 insertions, 72 deletions
diff --git a/quantum/stm32/chconf.h b/quantum/stm32/chconf.h index 1d9f12ff1..f7b1b077d 100644 --- a/quantum/stm32/chconf.h +++ b/quantum/stm32/chconf.h | |||
| @@ -26,9 +26,9 @@ | |||
| 26 | */ | 26 | */ |
| 27 | 27 | ||
| 28 | #ifndef CHCONF_H | 28 | #ifndef CHCONF_H |
| 29 | #define CHCONF_H | 29 | # define CHCONF_H |
| 30 | 30 | ||
| 31 | #define _CHIBIOS_RT_CONF_ | 31 | # define _CHIBIOS_RT_CONF_ |
| 32 | 32 | ||
| 33 | /*===========================================================================*/ | 33 | /*===========================================================================*/ |
| 34 | /** | 34 | /** |
| @@ -41,14 +41,14 @@ | |||
| 41 | * @brief System time counter resolution. | 41 | * @brief System time counter resolution. |
| 42 | * @note Allowed values are 16 or 32 bits. | 42 | * @note Allowed values are 16 or 32 bits. |
| 43 | */ | 43 | */ |
| 44 | #define CH_CFG_ST_RESOLUTION 32 | 44 | # define CH_CFG_ST_RESOLUTION 32 |
| 45 | 45 | ||
| 46 | /** | 46 | /** |
| 47 | * @brief System tick frequency. | 47 | * @brief System tick frequency. |
| 48 | * @details Frequency of the system timer that drives the system ticks. This | 48 | * @details Frequency of the system timer that drives the system ticks. This |
| 49 | * setting also defines the system tick time unit. | 49 | * setting also defines the system tick time unit. |
| 50 | */ | 50 | */ |
| 51 | #define CH_CFG_ST_FREQUENCY 100000 | 51 | # define CH_CFG_ST_FREQUENCY 100000 |
| 52 | 52 | ||
| 53 | /** | 53 | /** |
| 54 | * @brief Time delta constant for the tick-less mode. | 54 | * @brief Time delta constant for the tick-less mode. |
| @@ -58,7 +58,7 @@ | |||
| 58 | * The value one is not valid, timeouts are rounded up to | 58 | * The value one is not valid, timeouts are rounded up to |
| 59 | * this value. | 59 | * this value. |
| 60 | */ | 60 | */ |
| 61 | #define CH_CFG_ST_TIMEDELTA 2 | 61 | # define CH_CFG_ST_TIMEDELTA 2 |
| 62 | 62 | ||
| 63 | /** @} */ | 63 | /** @} */ |
| 64 | 64 | ||
| @@ -81,7 +81,7 @@ | |||
| 81 | * @note The round robin preemption is not supported in tickless mode and | 81 | * @note The round robin preemption is not supported in tickless mode and |
| 82 | * must be set to zero in that case. | 82 | * must be set to zero in that case. |
| 83 | */ | 83 | */ |
| 84 | #define CH_CFG_TIME_QUANTUM 0 | 84 | # define CH_CFG_TIME_QUANTUM 0 |
| 85 | 85 | ||
| 86 | /** | 86 | /** |
| 87 | * @brief Managed RAM size. | 87 | * @brief Managed RAM size. |
| @@ -94,7 +94,7 @@ | |||
| 94 | * provide the @p __heap_base__ and @p __heap_end__ symbols. | 94 | * provide the @p __heap_base__ and @p __heap_end__ symbols. |
| 95 | * @note Requires @p CH_CFG_USE_MEMCORE. | 95 | * @note Requires @p CH_CFG_USE_MEMCORE. |
| 96 | */ | 96 | */ |
| 97 | #define CH_CFG_MEMCORE_SIZE 0 | 97 | # define CH_CFG_MEMCORE_SIZE 0 |
| 98 | 98 | ||
| 99 | /** | 99 | /** |
| 100 | * @brief Idle thread automatic spawn suppression. | 100 | * @brief Idle thread automatic spawn suppression. |
| @@ -103,7 +103,7 @@ | |||
| 103 | * function becomes the idle thread and must implement an | 103 | * function becomes the idle thread and must implement an |
| 104 | * infinite loop. | 104 | * infinite loop. |
| 105 | */ | 105 | */ |
| 106 | #define CH_CFG_NO_IDLE_THREAD FALSE | 106 | # define CH_CFG_NO_IDLE_THREAD FALSE |
| 107 | 107 | ||
| 108 | /** @} */ | 108 | /** @} */ |
| 109 | 109 | ||
| @@ -122,7 +122,7 @@ | |||
| 122 | * @note This is not related to the compiler optimization options. | 122 | * @note This is not related to the compiler optimization options. |
| 123 | * @note The default is @p TRUE. | 123 | * @note The default is @p TRUE. |
| 124 | */ | 124 | */ |
| 125 | #define CH_CFG_OPTIMIZE_SPEED TRUE | 125 | # define CH_CFG_OPTIMIZE_SPEED TRUE |
| 126 | 126 | ||
| 127 | /** @} */ | 127 | /** @} */ |
| 128 | 128 | ||
| @@ -140,7 +140,7 @@ | |||
| 140 | * | 140 | * |
| 141 | * @note The default is @p TRUE. | 141 | * @note The default is @p TRUE. |
| 142 | */ | 142 | */ |
| 143 | #define CH_CFG_USE_TM TRUE | 143 | # define CH_CFG_USE_TM TRUE |
| 144 | 144 | ||
| 145 | /** | 145 | /** |
| 146 | * @brief Threads registry APIs. | 146 | * @brief Threads registry APIs. |
| @@ -148,7 +148,7 @@ | |||
| 148 | * | 148 | * |
| 149 | * @note The default is @p TRUE. | 149 | * @note The default is @p TRUE. |
| 150 | */ | 150 | */ |
| 151 | #define CH_CFG_USE_REGISTRY TRUE | 151 | # define CH_CFG_USE_REGISTRY TRUE |
| 152 | 152 | ||
| 153 | /** | 153 | /** |
| 154 | * @brief Threads synchronization APIs. | 154 | * @brief Threads synchronization APIs. |
| @@ -157,7 +157,7 @@ | |||
| 157 | * | 157 | * |
| 158 | * @note The default is @p TRUE. | 158 | * @note The default is @p TRUE. |
| 159 | */ | 159 | */ |
| 160 | #define CH_CFG_USE_WAITEXIT TRUE | 160 | # define CH_CFG_USE_WAITEXIT TRUE |
| 161 | 161 | ||
| 162 | /** | 162 | /** |
| 163 | * @brief Semaphores APIs. | 163 | * @brief Semaphores APIs. |
| @@ -165,7 +165,7 @@ | |||
| 165 | * | 165 | * |
| 166 | * @note The default is @p TRUE. | 166 | * @note The default is @p TRUE. |
| 167 | */ | 167 | */ |
| 168 | #define CH_CFG_USE_SEMAPHORES TRUE | 168 | # define CH_CFG_USE_SEMAPHORES TRUE |
| 169 | 169 | ||
| 170 | /** | 170 | /** |
| 171 | * @brief Semaphores queuing mode. | 171 | * @brief Semaphores queuing mode. |
| @@ -176,7 +176,7 @@ | |||
| 176 | * requirements. | 176 | * requirements. |
| 177 | * @note Requires @p CH_CFG_USE_SEMAPHORES. | 177 | * @note Requires @p CH_CFG_USE_SEMAPHORES. |
| 178 | */ | 178 | */ |
| 179 | #define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE | 179 | # define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE |
| 180 | 180 | ||
| 181 | /** | 181 | /** |
| 182 | * @brief Mutexes APIs. | 182 | * @brief Mutexes APIs. |
| @@ -184,7 +184,7 @@ | |||
| 184 | * | 184 | * |
| 185 | * @note The default is @p TRUE. | 185 | * @note The default is @p TRUE. |
| 186 | */ | 186 | */ |
| 187 | #define CH_CFG_USE_MUTEXES TRUE | 187 | # define CH_CFG_USE_MUTEXES TRUE |
| 188 | 188 | ||
| 189 | /** | 189 | /** |
| 190 | * @brief Enables recursive behavior on mutexes. | 190 | * @brief Enables recursive behavior on mutexes. |
| @@ -194,7 +194,7 @@ | |||
| 194 | * @note The default is @p FALSE. | 194 | * @note The default is @p FALSE. |
| 195 | * @note Requires @p CH_CFG_USE_MUTEXES. | 195 | * @note Requires @p CH_CFG_USE_MUTEXES. |
| 196 | */ | 196 | */ |
| 197 | #define CH_CFG_USE_MUTEXES_RECURSIVE FALSE | 197 | # define CH_CFG_USE_MUTEXES_RECURSIVE FALSE |
| 198 | 198 | ||
| 199 | /** | 199 | /** |
| 200 | * @brief Conditional Variables APIs. | 200 | * @brief Conditional Variables APIs. |
| @@ -204,7 +204,7 @@ | |||
| 204 | * @note The default is @p TRUE. | 204 | * @note The default is @p TRUE. |
| 205 | * @note Requires @p CH_CFG_USE_MUTEXES. | 205 | * @note Requires @p CH_CFG_USE_MUTEXES. |
| 206 | */ | 206 | */ |
| 207 | #define CH_CFG_USE_CONDVARS TRUE | 207 | # define CH_CFG_USE_CONDVARS TRUE |
| 208 | 208 | ||
| 209 | /** | 209 | /** |
| 210 | * @brief Conditional Variables APIs with timeout. | 210 | * @brief Conditional Variables APIs with timeout. |
| @@ -214,7 +214,7 @@ | |||
| 214 | * @note The default is @p TRUE. | 214 | * @note The default is @p TRUE. |
| 215 | * @note Requires @p CH_CFG_USE_CONDVARS. | 215 | * @note Requires @p CH_CFG_USE_CONDVARS. |
| 216 | */ | 216 | */ |
| 217 | #define CH_CFG_USE_CONDVARS_TIMEOUT TRUE | 217 | # define CH_CFG_USE_CONDVARS_TIMEOUT TRUE |
| 218 | 218 | ||
| 219 | /** | 219 | /** |
| 220 | * @brief Events Flags APIs. | 220 | * @brief Events Flags APIs. |
| @@ -222,7 +222,7 @@ | |||
| 222 | * | 222 | * |
| 223 | * @note The default is @p TRUE. | 223 | * @note The default is @p TRUE. |
| 224 | */ | 224 | */ |
| 225 | #define CH_CFG_USE_EVENTS TRUE | 225 | # define CH_CFG_USE_EVENTS TRUE |
| 226 | 226 | ||
| 227 | /** | 227 | /** |
| 228 | * @brief Events Flags APIs with timeout. | 228 | * @brief Events Flags APIs with timeout. |
| @@ -232,7 +232,7 @@ | |||
| 232 | * @note The default is @p TRUE. | 232 | * @note The default is @p TRUE. |
| 233 | * @note Requires @p CH_CFG_USE_EVENTS. | 233 | * @note Requires @p CH_CFG_USE_EVENTS. |
| 234 | */ | 234 | */ |
| 235 | #define CH_CFG_USE_EVENTS_TIMEOUT TRUE | 235 | # define CH_CFG_USE_EVENTS_TIMEOUT TRUE |
| 236 | 236 | ||
| 237 | /** | 237 | /** |
| 238 | * @brief Synchronous Messages APIs. | 238 | * @brief Synchronous Messages APIs. |
| @@ -241,7 +241,7 @@ | |||
| 241 | * | 241 | * |
| 242 | * @note The default is @p TRUE. | 242 | * @note The default is @p TRUE. |
| 243 | */ | 243 | */ |
| 244 | #define CH_CFG_USE_MESSAGES TRUE | 244 | # define CH_CFG_USE_MESSAGES TRUE |
| 245 | 245 | ||
| 246 | /** | 246 | /** |
| 247 | * @brief Synchronous Messages queuing mode. | 247 | * @brief Synchronous Messages queuing mode. |
| @@ -252,7 +252,7 @@ | |||
| 252 | * requirements. | 252 | * requirements. |
| 253 | * @note Requires @p CH_CFG_USE_MESSAGES. | 253 | * @note Requires @p CH_CFG_USE_MESSAGES. |
| 254 | */ | 254 | */ |
| 255 | #define CH_CFG_USE_MESSAGES_PRIORITY TRUE | 255 | # define CH_CFG_USE_MESSAGES_PRIORITY TRUE |
| 256 | 256 | ||
| 257 | /** | 257 | /** |
| 258 | * @brief Mailboxes APIs. | 258 | * @brief Mailboxes APIs. |
| @@ -262,7 +262,7 @@ | |||
| 262 | * @note The default is @p TRUE. | 262 | * @note The default is @p TRUE. |
| 263 | * @note Requires @p CH_CFG_USE_SEMAPHORES. | 263 | * @note Requires @p CH_CFG_USE_SEMAPHORES. |
| 264 | */ | 264 | */ |
| 265 | #define CH_CFG_USE_MAILBOXES TRUE | 265 | # define CH_CFG_USE_MAILBOXES TRUE |
| 266 | 266 | ||
| 267 | /** | 267 | /** |
| 268 | * @brief Core Memory Manager APIs. | 268 | * @brief Core Memory Manager APIs. |
| @@ -271,7 +271,7 @@ | |||
| 271 | * | 271 | * |
| 272 | * @note The default is @p TRUE. | 272 | * @note The default is @p TRUE. |
| 273 | */ | 273 | */ |
| 274 | #define CH_CFG_USE_MEMCORE TRUE | 274 | # define CH_CFG_USE_MEMCORE TRUE |
| 275 | 275 | ||
| 276 | /** | 276 | /** |
| 277 | * @brief Heap Allocator APIs. | 277 | * @brief Heap Allocator APIs. |
| @@ -283,7 +283,7 @@ | |||
| 283 | * @p CH_CFG_USE_SEMAPHORES. | 283 | * @p CH_CFG_USE_SEMAPHORES. |
| 284 | * @note Mutexes are recommended. | 284 | * @note Mutexes are recommended. |
| 285 | */ | 285 | */ |
| 286 | #define CH_CFG_USE_HEAP TRUE | 286 | # define CH_CFG_USE_HEAP TRUE |
| 287 | 287 | ||
| 288 | /** | 288 | /** |
| 289 | * @brief Memory Pools Allocator APIs. | 289 | * @brief Memory Pools Allocator APIs. |
| @@ -292,7 +292,7 @@ | |||
| 292 | * | 292 | * |
| 293 | * @note The default is @p TRUE. | 293 | * @note The default is @p TRUE. |
| 294 | */ | 294 | */ |
| 295 | #define CH_CFG_USE_MEMPOOLS TRUE | 295 | # define CH_CFG_USE_MEMPOOLS TRUE |
| 296 | 296 | ||
| 297 | /** | 297 | /** |
| 298 | * @brief Dynamic Threads APIs. | 298 | * @brief Dynamic Threads APIs. |
| @@ -303,7 +303,7 @@ | |||
| 303 | * @note Requires @p CH_CFG_USE_WAITEXIT. | 303 | * @note Requires @p CH_CFG_USE_WAITEXIT. |
| 304 | * @note Requires @p CH_CFG_USE_HEAP and/or @p CH_CFG_USE_MEMPOOLS. | 304 | * @note Requires @p CH_CFG_USE_HEAP and/or @p CH_CFG_USE_MEMPOOLS. |
| 305 | */ | 305 | */ |
| 306 | #define CH_CFG_USE_DYNAMIC TRUE | 306 | # define CH_CFG_USE_DYNAMIC TRUE |
| 307 | 307 | ||
| 308 | /** @} */ | 308 | /** @} */ |
| 309 | 309 | ||
| @@ -319,7 +319,7 @@ | |||
| 319 | * | 319 | * |
| 320 | * @note The default is @p FALSE. | 320 | * @note The default is @p FALSE. |
| 321 | */ | 321 | */ |
| 322 | #define CH_DBG_STATISTICS FALSE | 322 | # define CH_DBG_STATISTICS FALSE |
| 323 | 323 | ||
| 324 | /** | 324 | /** |
| 325 | * @brief Debug option, system state check. | 325 | * @brief Debug option, system state check. |
| @@ -328,7 +328,7 @@ | |||
| 328 | * | 328 | * |
| 329 | * @note The default is @p FALSE. | 329 | * @note The default is @p FALSE. |
| 330 | */ | 330 | */ |
| 331 | #define CH_DBG_SYSTEM_STATE_CHECK FALSE | 331 | # define CH_DBG_SYSTEM_STATE_CHECK FALSE |
| 332 | 332 | ||
| 333 | /** | 333 | /** |
| 334 | * @brief Debug option, parameters checks. | 334 | * @brief Debug option, parameters checks. |
| @@ -337,7 +337,7 @@ | |||
| 337 | * | 337 | * |
| 338 | * @note The default is @p FALSE. | 338 | * @note The default is @p FALSE. |
| 339 | */ | 339 | */ |
| 340 | #define CH_DBG_ENABLE_CHECKS FALSE | 340 | # define CH_DBG_ENABLE_CHECKS FALSE |
| 341 | 341 | ||
| 342 | /** | 342 | /** |
| 343 | * @brief Debug option, consistency checks. | 343 | * @brief Debug option, consistency checks. |
| @@ -347,7 +347,7 @@ | |||
| 347 | * | 347 | * |
| 348 | * @note The default is @p FALSE. | 348 | * @note The default is @p FALSE. |
| 349 | */ | 349 | */ |
| 350 | #define CH_DBG_ENABLE_ASSERTS FALSE | 350 | # define CH_DBG_ENABLE_ASSERTS FALSE |
| 351 | 351 | ||
| 352 | /** | 352 | /** |
| 353 | * @brief Debug option, trace buffer. | 353 | * @brief Debug option, trace buffer. |
| @@ -355,14 +355,14 @@ | |||
| 355 | * | 355 | * |
| 356 | * @note The default is @p CH_DBG_TRACE_MASK_DISABLED. | 356 | * @note The default is @p CH_DBG_TRACE_MASK_DISABLED. |
| 357 | */ | 357 | */ |
| 358 | #define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED | 358 | # define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED |
| 359 | 359 | ||
| 360 | /** | 360 | /** |
| 361 | * @brief Trace buffer entries. | 361 | * @brief Trace buffer entries. |
| 362 | * @note The trace buffer is only allocated if @p CH_DBG_TRACE_MASK is | 362 | * @note The trace buffer is only allocated if @p CH_DBG_TRACE_MASK is |
| 363 | * different from @p CH_DBG_TRACE_MASK_DISABLED. | 363 | * different from @p CH_DBG_TRACE_MASK_DISABLED. |
| 364 | */ | 364 | */ |
| 365 | #define CH_DBG_TRACE_BUFFER_SIZE 128 | 365 | # define CH_DBG_TRACE_BUFFER_SIZE 128 |
| 366 | 366 | ||
| 367 | /** | 367 | /** |
| 368 | * @brief Debug option, stack checks. | 368 | * @brief Debug option, stack checks. |
| @@ -374,7 +374,7 @@ | |||
| 374 | * @note The default failure mode is to halt the system with the global | 374 | * @note The default failure mode is to halt the system with the global |
| 375 | * @p panic_msg variable set to @p NULL. | 375 | * @p panic_msg variable set to @p NULL. |
| 376 | */ | 376 | */ |
| 377 | #define CH_DBG_ENABLE_STACK_CHECK TRUE | 377 | # define CH_DBG_ENABLE_STACK_CHECK TRUE |
| 378 | 378 | ||
| 379 | /** | 379 | /** |
| 380 | * @brief Debug option, stacks initialization. | 380 | * @brief Debug option, stacks initialization. |
| @@ -384,7 +384,7 @@ | |||
| 384 | * | 384 | * |
| 385 | * @note The default is @p FALSE. | 385 | * @note The default is @p FALSE. |
| 386 | */ | 386 | */ |
| 387 | #define CH_DBG_FILL_THREADS FALSE | 387 | # define CH_DBG_FILL_THREADS FALSE |
| 388 | 388 | ||
| 389 | /** | 389 | /** |
| 390 | * @brief Debug option, threads profiling. | 390 | * @brief Debug option, threads profiling. |
| @@ -395,7 +395,7 @@ | |||
| 395 | * @note This debug option is not currently compatible with the | 395 | * @note This debug option is not currently compatible with the |
| 396 | * tickless mode. | 396 | * tickless mode. |
| 397 | */ | 397 | */ |
| 398 | #define CH_DBG_THREADS_PROFILING FALSE | 398 | # define CH_DBG_THREADS_PROFILING FALSE |
| 399 | 399 | ||
| 400 | /** @} */ | 400 | /** @} */ |
| 401 | 401 | ||
| @@ -410,8 +410,7 @@ | |||
| 410 | * @brief Threads descriptor structure extension. | 410 | * @brief Threads descriptor structure extension. |
| 411 | * @details User fields added to the end of the @p thread_t structure. | 411 | * @details User fields added to the end of the @p thread_t structure. |
| 412 | */ | 412 | */ |
| 413 | #define CH_CFG_THREAD_EXTRA_FIELDS \ | 413 | # define CH_CFG_THREAD_EXTRA_FIELDS /* Add threads custom fields here.*/ |
| 414 | /* Add threads custom fields here.*/ | ||
| 415 | 414 | ||
| 416 | /** | 415 | /** |
| 417 | * @brief Threads initialization hook. | 416 | * @brief Threads initialization hook. |
| @@ -420,39 +419,34 @@ | |||
| 420 | * @note It is invoked from within @p chThdInit() and implicitly from all | 419 | * @note It is invoked from within @p chThdInit() and implicitly from all |
| 421 | * the threads creation APIs. | 420 | * the threads creation APIs. |
| 422 | */ | 421 | */ |
| 423 | #define CH_CFG_THREAD_INIT_HOOK(tp) { \ | 422 | # define CH_CFG_THREAD_INIT_HOOK(tp) \ |
| 424 | /* Add threads initialization code here.*/ \ | 423 | { /* Add threads initialization code here.*/ } |
| 425 | } | ||
| 426 | 424 | ||
| 427 | /** | 425 | /** |
| 428 | * @brief Threads finalization hook. | 426 | * @brief Threads finalization hook. |
| 429 | * @details User finalization code added to the @p chThdExit() API. | 427 | * @details User finalization code added to the @p chThdExit() API. |
| 430 | */ | 428 | */ |
| 431 | #define CH_CFG_THREAD_EXIT_HOOK(tp) { \ | 429 | # define CH_CFG_THREAD_EXIT_HOOK(tp) \ |
| 432 | /* Add threads finalization code here.*/ \ | 430 | { /* Add threads finalization code here.*/ } |
| 433 | } | ||
| 434 | 431 | ||
| 435 | /** | 432 | /** |
| 436 | * @brief Context switch hook. | 433 | * @brief Context switch hook. |
| 437 | * @details This hook is invoked just before switching between threads. | 434 | * @details This hook is invoked just before switching between threads. |
| 438 | */ | 435 | */ |
| 439 | #define CH_CFG_CONTEXT_SWITCH_HOOK(ntp, otp) { \ | 436 | # define CH_CFG_CONTEXT_SWITCH_HOOK(ntp, otp) \ |
| 440 | /* Context switch code here.*/ \ | 437 | { /* Context switch code here.*/ } |
| 441 | } | ||
| 442 | 438 | ||
| 443 | /** | 439 | /** |
| 444 | * @brief ISR enter hook. | 440 | * @brief ISR enter hook. |
| 445 | */ | 441 | */ |
| 446 | #define CH_CFG_IRQ_PROLOGUE_HOOK() { \ | 442 | # define CH_CFG_IRQ_PROLOGUE_HOOK() \ |
| 447 | /* IRQ prologue code here.*/ \ | 443 | { /* IRQ prologue code here.*/ } |
| 448 | } | ||
| 449 | 444 | ||
| 450 | /** | 445 | /** |
| 451 | * @brief ISR exit hook. | 446 | * @brief ISR exit hook. |
| 452 | */ | 447 | */ |
| 453 | #define CH_CFG_IRQ_EPILOGUE_HOOK() { \ | 448 | # define CH_CFG_IRQ_EPILOGUE_HOOK() \ |
| 454 | /* IRQ epilogue code here.*/ \ | 449 | { /* IRQ epilogue code here.*/ } |
| 455 | } | ||
| 456 | 450 | ||
| 457 | /** | 451 | /** |
| 458 | * @brief Idle thread enter hook. | 452 | * @brief Idle thread enter hook. |
| @@ -460,9 +454,8 @@ | |||
| 460 | * should be invoked from here. | 454 | * should be invoked from here. |
| 461 | * @note This macro can be used to activate a power saving mode. | 455 | * @note This macro can be used to activate a power saving mode. |
| 462 | */ | 456 | */ |
| 463 | #define CH_CFG_IDLE_ENTER_HOOK() { \ | 457 | # define CH_CFG_IDLE_ENTER_HOOK() \ |
| 464 | /* Idle-enter code here.*/ \ | 458 | { /* Idle-enter code here.*/ } |
| 465 | } | ||
| 466 | 459 | ||
| 467 | /** | 460 | /** |
| 468 | * @brief Idle thread leave hook. | 461 | * @brief Idle thread leave hook. |
| @@ -470,44 +463,39 @@ | |||
| 470 | * should be invoked from here. | 463 | * should be invoked from here. |
| 471 | * @note This macro can be used to deactivate a power saving mode. | 464 | * @note This macro can be used to deactivate a power saving mode. |
| 472 | */ | 465 | */ |
| 473 | #define CH_CFG_IDLE_LEAVE_HOOK() { \ | 466 | # define CH_CFG_IDLE_LEAVE_HOOK() \ |
| 474 | /* Idle-leave code here.*/ \ | 467 | { /* Idle-leave code here.*/ } |
| 475 | } | ||
| 476 | 468 | ||
| 477 | /** | 469 | /** |
| 478 | * @brief Idle Loop hook. | 470 | * @brief Idle Loop hook. |
| 479 | * @details This hook is continuously invoked by the idle thread loop. | 471 | * @details This hook is continuously invoked by the idle thread loop. |
| 480 | */ | 472 | */ |
| 481 | #define CH_CFG_IDLE_LOOP_HOOK() { \ | 473 | # define CH_CFG_IDLE_LOOP_HOOK() \ |
| 482 | /* Idle loop code here.*/ \ | 474 | { /* Idle loop code here.*/ } |
| 483 | } | ||
| 484 | 475 | ||
| 485 | /** | 476 | /** |
| 486 | * @brief System tick event hook. | 477 | * @brief System tick event hook. |
| 487 | * @details This hook is invoked in the system tick handler immediately | 478 | * @details This hook is invoked in the system tick handler immediately |
| 488 | * after processing the virtual timers queue. | 479 | * after processing the virtual timers queue. |
| 489 | */ | 480 | */ |
| 490 | #define CH_CFG_SYSTEM_TICK_HOOK() { \ | 481 | # define CH_CFG_SYSTEM_TICK_HOOK() \ |
| 491 | /* System tick event code here.*/ \ | 482 | { /* System tick event code here.*/ } |
| 492 | } | ||
| 493 | 483 | ||
| 494 | /** | 484 | /** |
| 495 | * @brief System halt hook. | 485 | * @brief System halt hook. |
| 496 | * @details This hook is invoked in case to a system halting error before | 486 | * @details This hook is invoked in case to a system halting error before |
| 497 | * the system is halted. | 487 | * the system is halted. |
| 498 | */ | 488 | */ |
| 499 | #define CH_CFG_SYSTEM_HALT_HOOK(reason) { \ | 489 | # define CH_CFG_SYSTEM_HALT_HOOK(reason) \ |
| 500 | /* System halt code here.*/ \ | 490 | { /* System halt code here.*/ } |
| 501 | } | ||
| 502 | 491 | ||
| 503 | /** | 492 | /** |
| 504 | * @brief Trace hook. | 493 | * @brief Trace hook. |
| 505 | * @details This hook is invoked each time a new record is written in the | 494 | * @details This hook is invoked each time a new record is written in the |
| 506 | * trace buffer. | 495 | * trace buffer. |
| 507 | */ | 496 | */ |
| 508 | #define CH_CFG_TRACE_HOOK(tep) { \ | 497 | # define CH_CFG_TRACE_HOOK(tep) \ |
| 509 | /* Trace code here.*/ \ | 498 | { /* Trace code here.*/ } |
| 510 | } | ||
| 511 | 499 | ||
| 512 | /** @} */ | 500 | /** @} */ |
| 513 | 501 | ||
| @@ -515,6 +503,6 @@ | |||
| 515 | /* Port-specific settings (override port settings defaulted in chcore.h). */ | 503 | /* Port-specific settings (override port settings defaulted in chcore.h). */ |
| 516 | /*===========================================================================*/ | 504 | /*===========================================================================*/ |
| 517 | 505 | ||
| 518 | #endif /* CHCONF_H */ | 506 | #endif /* CHCONF_H */ |
| 519 | 507 | ||
| 520 | /** @} */ | 508 | /** @} */ |
