From d8e465c40686aa6852274cbbc90d0e69037500f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Thu, 13 Apr 2017 00:54:06 +0200 Subject: [PATCH] Clean up bl_peripheral.h --- right/src/buspal/bootloader/bl_peripheral.h | 26 +++------------------ 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/right/src/buspal/bootloader/bl_peripheral.h b/right/src/buspal/bootloader/bl_peripheral.h index be750eb..e0389c6 100644 --- a/right/src/buspal/bootloader/bl_peripheral.h +++ b/right/src/buspal/bootloader/bl_peripheral.h @@ -1,15 +1,5 @@ -#ifndef _peripheral_h -#define _peripheral_h - -#include -#include "bootloader_common.h" - -//! @addtogroup peripheral -//! @{ - -//////////////////////////////////////////////////////////////////////////////// -// Declarations -//////////////////////////////////////////////////////////////////////////////// +#ifndef __BL_PERIPHERAL_H__ +#define __BL_PERIPHERAL_H__ //! @brief Peripheral type bit mask definitions. //! @@ -53,10 +43,7 @@ typedef struct _peripheral_control_interface //! @brief Peripheral abstract byte interface. typedef struct _peripheral_byte_inteface { - status_t (*init)(const peripheral_descriptor_t *self); -#ifdef BOOTLOADER_HOST status_t (*read)(const peripheral_descriptor_t *self, uint8_t *buffer, uint32_t requestedBytes); -#endif // #ifdef BOOTLOADER_HOST status_t (*write)(const peripheral_descriptor_t *self, const uint8_t *buffer, uint32_t byteCount); } peripheral_byte_inteface_t; @@ -114,13 +101,6 @@ struct PeripheralDescriptor const peripheral_packet_interface_t *packetInterface; }; -//////////////////////////////////////////////////////////////////////////////// -// Externs -//////////////////////////////////////////////////////////////////////////////// - -//! @brief Array of all peripherals available in this device. extern const peripheral_descriptor_t g_peripherals[]; -//! @} - -#endif // _peripheral_h +#endif