Skip to content

Commit

Permalink
Move all defines to header file
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-b-jakobsson committed Nov 13, 2024
1 parent bbc5466 commit f84b681
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
8 changes: 0 additions & 8 deletions setup_keyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
#include "smc_pins.h"
#include "setup_ps2.h"

/*
State Machine
*/

// Reset
#define KBD_STATE_RESET 0x10
#define KBD_STATE_RESET_ACK 0x11

/*
Watchdog
*/
Expand Down
5 changes: 3 additions & 2 deletions setup_ps2.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ uint8_t getMousePacketSize();

// Keyboard
#define KBD_STATE_OFF 0x00
#define KBD_STATE_READY 0x01 // This value exposed through I2C offset 0x1b, and should not be changed

#define KBD_STATE_READY 0x01
#define KBD_STATE_BAT 0x02
#define KBD_STATE_SET_LEDS 0x03
#define KBD_STATE_SET_LEDS_ACK 0x04
#define KBD_STATE_RESET 0x10
#define KBD_STATE_RESET_ACK 0x11

void keyboardTick();
void keyboardReset();
Expand Down

0 comments on commit f84b681

Please sign in to comment.