Chibios: use WFI in idle. WIP suspend stuff.
This commit is contained in:
parent
c61210cfff
commit
c1c8e079ca
9 changed files with 102 additions and 12 deletions
|
|
@ -103,6 +103,10 @@
|
|||
*/
|
||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||
|
||||
/* Use __WFI in the idle thread for waiting. Does lower the power
|
||||
* consumption. */
|
||||
#define CORTEX_ENABLE_WFI_IDLE TRUE
|
||||
|
||||
/** @} */
|
||||
|
||||
/*===========================================================================*/
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include "keymap.h"
|
||||
|
||||
static const uint8_t keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
{{KC_A}},
|
||||
{{KC_CAPS}}, // test with KC_CAPS, KC_A, KC_BTLD
|
||||
};
|
||||
|
||||
static const uint16_t fn_actions[] = {
|
||||
|
|
|
|||
|
|
@ -103,6 +103,10 @@
|
|||
*/
|
||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||
|
||||
/* Use __WFI in the idle thread for waiting. Does lower the power
|
||||
* consumption. */
|
||||
#define CORTEX_ENABLE_WFI_IDLE TRUE
|
||||
|
||||
/** @} */
|
||||
|
||||
/*===========================================================================*/
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ It's set up for Teensy LC. To use 3.x, you'll need to edit the `Makefile` (and c
|
|||
|
||||
## Credits
|
||||
|
||||
TMK itself is written by hasu, original sources [here](https://github.com/tmk/tmk_keyboard).
|
||||
|
||||
The USB support for Kinetis MCUs is due to RedoX. His ChibiOS fork is also [on github](https://github.com/RedoXyde/ChibiOS); but it doesn't include Teensy LC definitions.
|
||||
|
||||
## Features that are not implemented yet
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include "keymap.h"
|
||||
|
||||
static const uint8_t keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
{{KC_BTLD}},
|
||||
}; // to test: KC_CAPS, KT_BTLD
|
||||
{{KC_A}},
|
||||
}; // to test: KC_CAPS, KT_BTLD, KC_A
|
||||
|
||||
static const uint16_t fn_actions[] = {
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue