From 3061ecca3d0fdfb87dabbf5f63c9e06c2a30f53a Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 23 Aug 2018 17:08:59 +0200 Subject: o Initial import. --- .../external/infineon/include/pal_gpio.h | 84 ++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 thirdparty/nRF5_SDK_15.0.0_a53641a/external/infineon/include/pal_gpio.h (limited to 'thirdparty/nRF5_SDK_15.0.0_a53641a/external/infineon/include/pal_gpio.h') diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/external/infineon/include/pal_gpio.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/external/infineon/include/pal_gpio.h new file mode 100644 index 0000000..171811b --- /dev/null +++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/external/infineon/include/pal_gpio.h @@ -0,0 +1,84 @@ +/** +* \copyright +* Copyright (c) 2018, Infineon Technologies AG +* All rights reserved. +* +* This software is provided with terms and conditions as specified in OPTIGA(TM) Trust X Evaluation Kit License Agreement. +* \endcopyright +* +* \author Infineon AG +* +* \file +* +* \brief This file implements the prototype declarations of pal gpio +* +* \addtogroup grPAL +* @{ +*/ + +#ifndef _PAL_GPIO_H_ +#define _PAL_GPIO_H_ + +/********************************************************************************************************************** + * HEADER FILES + *********************************************************************************************************************/ + +#include "pal.h" + +/********************************************************************************************************************** + * MACROS + *********************************************************************************************************************/ + + +/********************************************************************************************************************** + * ENUMS + *********************************************************************************************************************/ + + +/********************************************************************************************************************** + * DATA STRUCTURES + *********************************************************************************************************************/ + +/** + * \brief Structure defines the PAL GPIO configuration. + */ +typedef struct pal_gpio +{ + /// Pointer to gpio platform specific context/structure + void* p_gpio_hw; + +} pal_gpio_t; + +/********************************************************************************************************************** + * API Prototypes + *********************************************************************************************************************/ + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * \brief Initializes the GPIO PAL. + */ +void pal_gpio_init(void); + +/** + * \brief Sets the gpio pin to high state. + */ +void pal_gpio_set_high(const pal_gpio_t* p_gpio_context); + +/** + * \brief Sets the gpio pin to Low state. + */ +void pal_gpio_set_low(const pal_gpio_t* p_gpio_context); + +#ifdef __cplusplus +} +#endif + +#endif /* _PAL_GPIO_H_ */ + +/** +* @} +*/ + -- cgit v1.2.3