aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common/chibios/suspend.c
diff options
context:
space:
mode:
authorskullydazed <skullydazed@users.noreply.github.com>2018-03-21 23:50:38 -0700
committerJack Humbert <jack.humb@gmail.com>2018-03-22 02:50:38 -0400
commit7c9d5ace143d3cc6d767a354acde814926d566fd (patch)
tree1f2b581b6c9f6278a9e180bfcc8dd86b0a7fd2ef /tmk_core/common/chibios/suspend.c
parentf0932a8716dc946322c5ebae7f75eaa275c6220c (diff)
downloadqmk_firmware-7c9d5ace143d3cc6d767a354acde814926d566fd.tar.gz
qmk_firmware-7c9d5ace143d3cc6d767a354acde814926d566fd.zip
Generate API docs from source code comments (#2491)
* Generate api docs from source code * Add a bunch of doxygen comments * more doxygen comments * Add the in-progress api docs * script to generate docs from travis * Add doc generation to the travis job * make travis_docs.sh commit the work it does * make sure the docs script exits cleanly
Diffstat (limited to 'tmk_core/common/chibios/suspend.c')
-rw-r--r--tmk_core/common/chibios/suspend.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/tmk_core/common/chibios/suspend.c b/tmk_core/common/chibios/suspend.c
index 7c3c75387..32ef773e2 100644
--- a/tmk_core/common/chibios/suspend.c
+++ b/tmk_core/common/chibios/suspend.c
@@ -12,11 +12,19 @@
12#include "suspend.h" 12#include "suspend.h"
13#include "wait.h" 13#include "wait.h"
14 14
15/** \brief suspend idle
16 *
17 * FIXME: needs doc
18 */
15void suspend_idle(uint8_t time) { 19void suspend_idle(uint8_t time) {
16 // TODO: this is not used anywhere - what units is 'time' in? 20 // TODO: this is not used anywhere - what units is 'time' in?
17 wait_ms(time); 21 wait_ms(time);
18} 22}
19 23
24/** \brief suspend power down
25 *
26 * FIXME: needs doc
27 */
20void suspend_power_down(void) { 28void suspend_power_down(void) {
21 // TODO: figure out what to power down and how 29 // TODO: figure out what to power down and how
22 // shouldn't power down TPM/FTM if we want a breathing LED 30 // shouldn't power down TPM/FTM if we want a breathing LED
@@ -28,6 +36,10 @@ void suspend_power_down(void) {
28 wait_ms(17); 36 wait_ms(17);
29} 37}
30 38
39/** \brief suspend wakeup condition
40 *
41 * FIXME: needs doc
42 */
31__attribute__ ((weak)) void matrix_power_up(void) {} 43__attribute__ ((weak)) void matrix_power_up(void) {}
32__attribute__ ((weak)) void matrix_power_down(void) {} 44__attribute__ ((weak)) void matrix_power_down(void) {}
33bool suspend_wakeup_condition(void) 45bool suspend_wakeup_condition(void)
@@ -41,7 +53,11 @@ bool suspend_wakeup_condition(void)
41 return false; 53 return false;
42} 54}
43 55
44// run immediately after wakeup 56/** \brief suspend wakeup condition
57 *
58 * run immediately after wakeup
59 * FIXME: needs doc
60 */
45void suspend_wakeup_init(void) 61void suspend_wakeup_init(void)
46{ 62{
47 // clear keyboard state 63 // clear keyboard state