]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - tmk_core/common/chibios/suspend.c
Generate API docs from source code comments (#2491)
[qmk_firmware.git] / tmk_core / common / chibios / suspend.c
index 7c3c75387d9754307400f1c638f4bcf7d88d7f49..32ef773e2e4507f0b2a98c95a86abda6b27c3d0c 100644 (file)
 #include "suspend.h"
 #include "wait.h"
 
+/** \brief suspend idle
+ *
+ * FIXME: needs doc
+ */
 void suspend_idle(uint8_t time) {
        // TODO: this is not used anywhere - what units is 'time' in?
        wait_ms(time);
 }
 
+/** \brief suspend power down
+ *
+ * FIXME: needs doc
+ */
 void suspend_power_down(void) {
        // TODO: figure out what to power down and how
        // shouldn't power down TPM/FTM if we want a breathing LED
@@ -28,6 +36,10 @@ void suspend_power_down(void) {
        wait_ms(17);
 }
 
+/** \brief suspend wakeup condition
+ *
+ * FIXME: needs doc
+ */
 __attribute__ ((weak)) void matrix_power_up(void) {}
 __attribute__ ((weak)) void matrix_power_down(void) {}
 bool suspend_wakeup_condition(void)
@@ -41,7 +53,11 @@ bool suspend_wakeup_condition(void)
     return false;
 }
 
-// run immediately after wakeup
+/** \brief suspend wakeup condition
+ *
+ * run immediately after wakeup
+ * FIXME: needs doc
+ */
 void suspend_wakeup_init(void)
 {
     // clear keyboard state