Go to the documentation of this file.
11 #define DISABLE_PORT1_CMD 0xAD
12 #define ENABLE_PORT1_CMD 0xAE
13 #define DISABLE_PORT2_CMD 0xA7
14 #define ENABLE_PORT2_CMD 0xA8
15 #define READ_CFG_CMD 0x20
16 #define WRITE_CFG_CMD 0x60
17 #define PERFORM_SELFTEST 0xAA
18 #define PERFORM_PORT1TEST 0xAB
19 #define PERFORM_PORT2TEST 0xA9
21 #define IS_CMD_SENT (!(PS2_ReadStatus() & 2))
22 #define IS_DATA_AVL (PS2_ReadStatus() & 1)
24 #define WAIT_CMD_SENT while(!IS_CMD_SENT)
25 #define WAIT_DATA_AVL while(!IS_DATA_AVL)
26 #define WAIT_DATA_SENT while(IS_DATA_AVL)