Skip to content

Commit

Permalink
feat(BLE): Adding header file for PAL version. (#1118)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-gillespie authored Aug 19, 2024
1 parent f5e5a67 commit 330aef5
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions Libraries/Cordio/platform/include/pal_version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
/*************************************************************************************************/
/*!
* \file
*
* \brief Version driver implementation.
*
* Copyright (c) 2019-2020 Packetcraft, Inc. All rights reserved.
* Packetcraft, Inc. confidential and proprietary.
*
* IMPORTANT. Your use of this file is governed by a Software License Agreement
* ("Agreement") that must be accepted in order to download or otherwise receive a
* copy of this file. You may not use or copy this file for any purpose other than
* as described in the Agreement. If you do not agree to all of the terms of the
* Agreement do not use this file and delete all copies in your possession or control;
* if you do not have a copy of the Agreement, you must contact Packetcraft, Inc. prior
* to any use, copying or further distribution of this software.
*
* Copyright (c) 2022-2023 Analog Devices, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*************************************************************************************************/

#ifndef PAL_VERSION_H
#define PAL_VERSION_H

#include "pal_types.h"

#ifdef __cplusplus
extern "C" {
#endif

/*! \addtogroup PAL_VERSION
* \{ */

/**************************************************************************************************
Data Types
**************************************************************************************************/

/*! \brief PAL Version structure. */
typedef struct
{
uint8_t major;
uint8_t minor;
uint8_t patch;
uint32_t commit;
char *buildDate;
} PalVersion_t;

/**************************************************************************************************
Function Declarations
**************************************************************************************************/

/*************************************************************************************************/
/*!
* \brief Get versioning information.
*
* \return PAL Version structure.
*/
/*************************************************************************************************/
const PalVersion_t *PalGetVersion(void);

/*! \} */ /* PAL_VERSION */

#ifdef __cplusplus
};
#endif

#endif /* PAL_VERSION_H */

0 comments on commit 330aef5

Please sign in to comment.