From cdde508bb0171d7ea7f39f3fa4572f04d08a17b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Wed, 12 Apr 2017 23:25:49 +0200 Subject: [PATCH] Further clean up bus_pal_hardware.h --- right/src/buspal/bus_pal_hardware.c | 1 - right/src/buspal/bus_pal_hardware.h | 10 ++-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/right/src/buspal/bus_pal_hardware.c b/right/src/buspal/bus_pal_hardware.c index c591399..5671bc7 100644 --- a/right/src/buspal/bus_pal_hardware.c +++ b/right/src/buspal/bus_pal_hardware.c @@ -53,7 +53,6 @@ usb_status_t usb_device_callback(usb_device_handle handle, uint32_t event, void extern usb_status_t usb_device_msc_callback(class_handle_t handle, uint32_t event, void *param); -//! @brief Variable for i2c host configuration information static i2c_user_config_t s_i2cUserConfig = {.slaveAddress = 0x10, //!< The slave's 7-bit address .baudRate_kbps = 100 }; diff --git a/right/src/buspal/bus_pal_hardware.h b/right/src/buspal/bus_pal_hardware.h index 1e996d4..1d0a38d 100644 --- a/right/src/buspal/bus_pal_hardware.h +++ b/right/src/buspal/bus_pal_hardware.h @@ -21,13 +21,7 @@ status_t send_i2c_data(uint8_t *src, uint32_t writeLength); status_t receive_i2c_data(uint8_t *dest, uint32_t readLength); bool usb_hid_poll_for_activity(const peripheral_descriptor_t *self); status_t usb_hid_packet_init(const peripheral_descriptor_t *self); -status_t usb_hid_packet_read(const peripheral_descriptor_t *self, - uint8_t **packet, - uint32_t *packetLength, - packet_type_t packetType); -status_t usb_hid_packet_write(const peripheral_descriptor_t *self, - const uint8_t *packet, - uint32_t byteCount, - packet_type_t packetType); +status_t usb_hid_packet_read(const peripheral_descriptor_t *self, uint8_t **packet, uint32_t *packetLength, packet_type_t packetType); +status_t usb_hid_packet_write(const peripheral_descriptor_t *self, const uint8_t *packet, uint32_t byteCount,packet_type_t packetType); #endif