mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-27 03:21:15 +00:00
Use shorter SPDX-License-Identifier
This commit is contained in:
parent
54ece6abfa
commit
bf6064d888
@ -1,27 +1,11 @@
|
||||
/*
|
||||
* Copyright 2017 Alex Ong <the.onga@gmail.com>
|
||||
* Copyright 2020 Andrei Purdea <andrei@purdea.ro>
|
||||
* Copyright 2021 Simon Arlott
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
Asymetric per-key algorithm. After pressing a key, it immediately changes state,
|
||||
with no further inputs accepted until DEBOUNCE milliseconds have occurred. After
|
||||
releasing a key, that state is pushed after no changes occur for DEBOUNCE milliseconds.
|
||||
*/
|
||||
// Copyright 2017 Alex Ong <the.onga@gmail.com>
|
||||
// Copyright 2020 Andrei Purdea <andrei@purdea.ro>
|
||||
// Copyright 2021 Simon Arlott
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
//
|
||||
// Asymetric per-key algorithm. After pressing a key, it immediately changes state,
|
||||
// with no further inputs accepted until DEBOUNCE milliseconds have occurred. After
|
||||
// releasing a key, that state is pushed after no changes occur for DEBOUNCE milliseconds.
|
||||
|
||||
#include "debounce.h"
|
||||
#include "timer.h"
|
||||
|
@ -1,22 +1,10 @@
|
||||
/*
|
||||
Copyright 2017 Alex Ong<the.onga@gmail.com>
|
||||
Copyright 2021 Simon Arlott
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
// Copyright 2017 Alex Ong<the.onga@gmail.com>
|
||||
// Copyright 2021 Simon Arlott
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
//
|
||||
// Basic global debounce algorithm. Used in 99% of keyboards at time of implementation
|
||||
// When no state changes have occured for DEBOUNCE milliseconds, we push the state.
|
||||
|
||||
/*
|
||||
Basic global debounce algorithm. Used in 99% of keyboards at time of implementation
|
||||
When no state changes have occured for DEBOUNCE milliseconds, we push the state.
|
||||
*/
|
||||
#include "debounce.h"
|
||||
#include "timer.h"
|
||||
#include <string.h>
|
||||
|
@ -1,23 +1,10 @@
|
||||
/*
|
||||
Copyright 2017 Alex Ong<the.onga@gmail.com>
|
||||
Copyright 2020 Andrei Purdea<andrei@purdea.ro>
|
||||
Copyright 2021 Simon Arlott
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
Basic symmetric per-key algorithm. Uses an 8-bit counter per key.
|
||||
When no state changes have occured for DEBOUNCE milliseconds, we push the state.
|
||||
*/
|
||||
// Copyright 2017 Alex Ong<the.onga@gmail.com>
|
||||
// Copyright 2020 Andrei Purdea<andrei@purdea.ro>
|
||||
// Copyright 2021 Simon Arlott
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
//
|
||||
// Basic symmetric per-key algorithm. Uses an 8-bit counter per key.
|
||||
// When no state changes have occured for DEBOUNCE milliseconds, we push the state.
|
||||
|
||||
#include "debounce.h"
|
||||
#include "timer.h"
|
||||
|
@ -1,23 +1,11 @@
|
||||
/*
|
||||
Copyright 2017 Alex Ong<the.onga@gmail.com>
|
||||
Copyright 2020 Andrei Purdea<andrei@purdea.ro>
|
||||
Copyright 2021 Simon Arlott
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
Basic symmetric per-row algorithm. Uses an 8-bit counter per row.
|
||||
When no state changes have occured for DEBOUNCE milliseconds, we push the state.
|
||||
*/
|
||||
// Copyright 2017 Alex Ong<the.onga@gmail.com>
|
||||
// Copyright 2020 Andrei Purdea<andrei@purdea.ro>
|
||||
// Copyright 2021 Simon Arlott
|
||||
// Copyright @filterpaper
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
//
|
||||
// Basic symmetric per-row algorithm. Uses an 8-bit counter per row.
|
||||
// When no state changes have occured for DEBOUNCE milliseconds, we push the state.
|
||||
|
||||
#include "debounce.h"
|
||||
#include "timer.h"
|
||||
|
@ -87,9 +87,9 @@ bool debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool
|
||||
/**
|
||||
* @brief Updates per-key debounce counters and determines if matrix needs updating.
|
||||
*
|
||||
* Iterates through each key in the matrix and checks its debounce counter.
|
||||
* If the debounce period has elapsed for a key, the counter is reset and the matrix is marked for update.
|
||||
* Otherwise, the counter is decremented by the elapsed time and marked for further updates if needed.
|
||||
* Iterates through each key in the matrix and checks its debounce counter. If the debounce
|
||||
* period has elapsed, the counter is reset and the matrix is marked for update. Otherwise,
|
||||
* the counter is decremented by the elapsed time and marked for further updates if needed.
|
||||
*
|
||||
* @param elapsed_time The time elapsed since the last debounce update, in milliseconds.
|
||||
*/
|
||||
|
@ -1,23 +1,10 @@
|
||||
/*
|
||||
Copyright 2019 Alex Ong<the.onga@gmail.com>
|
||||
Copyright 2021 Simon Arlott
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
Basic per-row algorithm. Uses an 8-bit counter per row.
|
||||
After pressing a key, it immediately changes state, and sets a counter.
|
||||
No further inputs are accepted until DEBOUNCE milliseconds have occurred.
|
||||
*/
|
||||
// Copyright 2017 Alex Ong<the.onga@gmail.com>
|
||||
// Copyright 2021 Simon Arlott
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
//
|
||||
// Basic per-row algorithm. Uses an 8-bit counter per key.
|
||||
// After pressing a key, it immediately changes state, and sets a counter.
|
||||
// No further inputs are accepted until DEBOUNCE milliseconds have occurred.
|
||||
|
||||
#include "debounce.h"
|
||||
#include "timer.h"
|
||||
|
Loading…
Reference in New Issue
Block a user