[Core] Introduce pointing device specific debug messages (#17663)
This commit is contained in:
parent
d910e8df77
commit
e99ec28f5f
9 changed files with 50 additions and 59 deletions
|
@ -1,8 +1,6 @@
|
|||
// Copyright (c) 2018 Cirque Corp. Restrictions apply. See: www.cirque.com/sw-license
|
||||
#include "cirque_pinnacle.h"
|
||||
#include "spi_master.h"
|
||||
#include "print.h"
|
||||
#include "debug.h"
|
||||
|
||||
// Masks for Cirque Register Access Protocol (RAP)
|
||||
#define WRITE_MASK 0x80
|
||||
|
@ -24,9 +22,7 @@ void RAP_ReadBytes(uint8_t address, uint8_t* data, uint8_t count) {
|
|||
data[i] = spi_write(FILLER_BYTE); // write filler, receive data on the third filler send
|
||||
}
|
||||
} else {
|
||||
#ifdef CONSOLE_ENABLE
|
||||
dprintf("error cirque_pinnacle spi_start read\n");
|
||||
#endif
|
||||
pd_dprintf("error cirque_pinnacle spi_start read\n");
|
||||
touchpad_init = false;
|
||||
}
|
||||
spi_stop();
|
||||
|
@ -42,9 +38,7 @@ void RAP_Write(uint8_t address, uint8_t data) {
|
|||
spi_write(cmdByte);
|
||||
spi_write(data);
|
||||
} else {
|
||||
#ifdef CONSOLE_ENABLE
|
||||
dprintf("error cirque_pinnacle spi_start write\n");
|
||||
#endif
|
||||
pd_dprintf("error cirque_pinnacle spi_start write\n");
|
||||
touchpad_init = false;
|
||||
}
|
||||
spi_stop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue