forked from mirrors/qmk_userspace
Align PS/2 GPIO defines (#14745)
* Align PS/2 GPIO * Align PS/2 GPIO * refactor more keyboards * Remove more defines * Put back avr/chibios split * format
This commit is contained in:
parent
1fb2a0c74e
commit
84d5198ef9
12 changed files with 94 additions and 192 deletions
|
@ -46,6 +46,19 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
#include "ps2_io.h"
|
||||
#include "print.h"
|
||||
|
||||
#ifndef PS2_CLOCK_DDR
|
||||
# define PS2_CLOCK_DDR PORTx_ADDRESS(PS2_CLOCK_PIN)
|
||||
#endif
|
||||
#ifndef PS2_CLOCK_BIT
|
||||
# define PS2_CLOCK_BIT (PS2_CLOCK_PIN & 0xF)
|
||||
#endif
|
||||
#ifndef PS2_DATA_DDR
|
||||
# define PS2_DATA_DDR PORTx_ADDRESS(PS2_DATA_PIN)
|
||||
#endif
|
||||
#ifndef PS2_DATA_BIT
|
||||
# define PS2_DATA_BIT (PS2_DATA_PIN & 0xF)
|
||||
#endif
|
||||
|
||||
#define WAIT(stat, us, err) \
|
||||
do { \
|
||||
if (!wait_##stat(us)) { \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue