diff options
author | QMK Bot <hello@qmk.fm> | 2021-11-17 12:28:38 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-18 07:28:38 +1100 |
commit | 2c5d66987da4c7d5857cab8b09c4f852b4d8e4d9 (patch) | |
tree | 3ddc4f2cc572c632a0027d31d6e3e86af03591bc /drivers/sensors/pmw3360.h | |
parent | b06740c933c63a8f82e0a7112f9eeab9bd93687a (diff) |
Format code according to conventions (#15193)
Diffstat (limited to 'drivers/sensors/pmw3360.h')
-rw-r--r-- | drivers/sensors/pmw3360.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/drivers/sensors/pmw3360.h b/drivers/sensors/pmw3360.h index 124c62cf00..7429a6ba09 100644 --- a/drivers/sensors/pmw3360.h +++ b/drivers/sensors/pmw3360.h @@ -66,20 +66,17 @@ typedef struct { int8_t mdy; } report_pmw_t; - - -bool spi_start_adv(void); -void spi_stop_adv(void); +bool spi_start_adv(void); +void spi_stop_adv(void); spi_status_t spi_write_adv(uint8_t reg_addr, uint8_t data); -uint8_t spi_read_adv(uint8_t reg_addr); -bool pmw_spi_init(void); -void pmw_set_cpi(uint16_t cpi); -uint16_t pmw_get_cpi(void); -void pmw_upload_firmware(void); -bool pmw_check_signature(void); +uint8_t spi_read_adv(uint8_t reg_addr); +bool pmw_spi_init(void); +void pmw_set_cpi(uint16_t cpi); +uint16_t pmw_get_cpi(void); +void pmw_upload_firmware(void); +bool pmw_check_signature(void); report_pmw_t pmw_read_burst(void); - #define degToRad(angleInDegrees) ((angleInDegrees)*M_PI / 180.0) #define radToDeg(angleInRadians) ((angleInRadians)*180.0 / M_PI) #define constrain(amt, low, high) ((amt) < (low) ? (low) : ((amt) > (high) ? (high) : (amt))) |