corrected include guards, changed GpioIF prototype

This commit is contained in:
2021-02-14 18:39:50 +01:00
parent 6d2d7ad620
commit 101a7696c3
10 changed files with 81 additions and 77 deletions

View File

@ -1,10 +1,11 @@
#ifndef BSP_Q7S_GPIO_GPIOIF_H_
#define BSP_Q7S_GPIO_GPIOIF_H_
#ifndef LINUX_GPIO_GPIOIF_H_
#define LINUX_GPIO_GPIOIF_H_
#include "gpioDefinitions.h"
#include <fsfw/returnvalues/HasReturnvaluesIF.h>
#include <fsfw/devicehandlers/CookieIF.h>
typedef uint16_t gpioId_t;
class GpioCookie;
/**
* @brief This class defines the interface for objects requiring the control
@ -17,11 +18,11 @@ public:
virtual ~GpioIF() {};
/**
* @brief Called by the GPIO using object.
* @brief Called by the GPIO using object.
* @param cookie Cookie specifying informations of the GPIOs required
* by a object.
*/
virtual ReturnValue_t initialize(CookieIF* cookie) = 0;
virtual ReturnValue_t initialize(GpioCookie* cookie) = 0;
/**
* @brief By implementing this function a child must provide the
@ -49,4 +50,4 @@ public:
virtual ReturnValue_t readGpio(gpioId_t gpioId, int* gpioState) = 0;
};
#endif /* BSP_Q7S_GPIO_GPIOIF_H_ */
#endif /* LINUX_GPIO_GPIOIF_H_ */