Wirepas SDK
bl_hardware.h
Go to the documentation of this file.
1/* Copyright 2020 Wirepas Ltd. All Rights Reserved.
2 *
3 * See file LICENSE.txt for full license details.
4 *
5 */
6
7#ifndef HARDWARE_H_
8#define HARDWARE_H_
9
10#include <stdint.h>
11#include <stdbool.h>
12
13#if defined(NRF91_PLATFORM)
15typedef struct
16{
22 const char * at_commands;
23} platform_nrf91_t;
24#elif defined(NRF54_PLATFORM)
26typedef struct
27{
34 const uint16_t hfxo_int_cap_ff;
35
42 const uint16_t lfxo_int_cap_ff;
43
50 const uint32_t override_ficr_info_part;
51} platform_nrf54_t;
52#elif defined(EFR32_PLATFORM)
53#include "em_cmu.h"
54
56typedef struct
57{
61 const CMU_HFXOInit_TypeDef * hfxoInit;
65 const CMU_LFXOInit_TypeDef * lfxoInit;
66} platform_efr32_t;
67#endif
68
70typedef union
71{
72#if defined(NRF52_PLATFORM)
76 const void * nrf52;
77#elif defined(NRF54_PLATFORM)
81 const platform_nrf54_t * nrf54;
82#elif defined(NRF91_PLATFORM)
86 const void * nrf91;
87#elif defined(EFR32_PLATFORM)
91 const platform_efr32_t * efr32;
92#endif
94
111
120
121#endif //HARDWARE_H_
const hardware_capabilities_t * hardware_getCapabilities(void)
Returns board hardware capabilities.
Hardware features that can be installed on a board.
Definition bl_hardware.h:97
Platform specific descriptions.
Definition bl_hardware.h:71