Browse Source
Aligns *.h and *.c to underscore naming convention. These were kept (with warnings) for backwards compatibility with external boards/shields: - kscan-mock.h - matrix-transform.h They should be removed in the future. PR: #523xmkb
innovaker
4 years ago
committed by
Pete Johanson
140 changed files with 195 additions and 177 deletions
@ -0,0 +1,14 @@ |
|||||||
|
/*
|
||||||
|
* Copyright (c) 2020 The ZMK Contributors |
||||||
|
* |
||||||
|
* SPDX-License-Identifier: MIT |
||||||
|
*/ |
||||||
|
|
||||||
|
#pragma once |
||||||
|
|
||||||
|
#define ZMK_MOCK_IS_PRESS(v) ((v & (0x01 << 31)) != 0) |
||||||
|
#define ZMK_MOCK_PRESS(row, col, msec) (row + (col << 8) + (msec << 16) + (0x01 << 31)) |
||||||
|
#define ZMK_MOCK_RELEASE(row, col, msec) (row + (col << 8) + (msec << 16)) |
||||||
|
#define ZMK_MOCK_ROW(v) (v & 0xFF) |
||||||
|
#define ZMK_MOCK_COL(v) ((v >> 8) & 0xFF) |
||||||
|
#define ZMK_MOCK_MSEC(v) ((v & ~(0x01 << 31)) >> 16) |
@ -0,0 +1,10 @@ |
|||||||
|
/*
|
||||||
|
* Copyright (c) 2020 The ZMK Contributors |
||||||
|
* |
||||||
|
* SPDX-License-Identifier: MIT |
||||||
|
*/ |
||||||
|
|
||||||
|
#define KT_ROW(item) (item >> 8) |
||||||
|
#define KT_COL(item) (item & 0xFF) |
||||||
|
|
||||||
|
#define RC(row, col) (((row) << 8) + (col)) |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue