1 //*****************************************************************************
2 //
3 //! @file am_hal_ble_patch_b0.h
4 //!
5 //! @brief This is a Binary Patch for the BLE Core.
6 //!
7 //! @addtogroup BLE3ppatch BLE_Patch - BLE Patch
8 //! @ingroup apollo3p_hal
9 //! @{
10 //
11 //*****************************************************************************
12 
13 //*****************************************************************************
14 //
15 // Copyright (c) 2023, Ambiq Micro, Inc.
16 // All rights reserved.
17 //
18 // Redistribution and use in source and binary forms, with or without
19 // modification, are permitted provided that the following conditions are met:
20 //
21 // 1. Redistributions of source code must retain the above copyright notice,
22 // this list of conditions and the following disclaimer.
23 //
24 // 2. Redistributions in binary form must reproduce the above copyright
25 // notice, this list of conditions and the following disclaimer in the
26 // documentation and/or other materials provided with the distribution.
27 //
28 // 3. Neither the name of the copyright holder nor the names of its
29 // contributors may be used to endorse or promote products derived from this
30 // software without specific prior written permission.
31 //
32 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
33 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
34 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
35 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
36 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
37 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
38 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
39 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
40 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
41 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
42 // POSSIBILITY OF SUCH DAMAGE.
43 //
44 // This is part of revision release_sdk_3_1_1-10cda4b5e0 of the AmbiqSuite Development Package.
45 //
46 //*****************************************************************************
47 
48 #ifndef AM_HAL_BLE_PATCH_B0_H
49 #define AM_HAL_BLE_PATCH_B0_H
50 
51 #ifdef __cplusplus
52 extern "C"
53 {
54 #endif
55 
56 //*****************************************************************************
57 //
58 //! Patch array pointer.
59 //
60 //*****************************************************************************
61 extern am_hal_ble_patch_t **am_hal_ble_default_patches_b0;
62 extern am_hal_ble_patch_t **am_hal_ble_default_copy_patches_b0;
63 extern const uint32_t am_hal_ble_num_default_patches_b0;
64 
65 //*****************************************************************************
66 //
67 //! Pointers for specific patches.
68 //
69 //*****************************************************************************
70 extern am_hal_ble_patch_t am_ble_performance_patch_b0;
71 extern am_hal_ble_patch_t am_ble_nvds_patch_b0;
72 
73 //*****************************************************************************
74 //
75 //! Default patch structure.
76 //
77 //*****************************************************************************
78 extern am_hal_ble_patch_t g_AMBLEDefaultPatchB0;
79 
80 //*****************************************************************************
81 //
82 //! Macros for accessing specific NVDS parameters.
83 //
84 //*****************************************************************************
85 #define AM_HAL_BLE_NVDS_CLOCKDRIFT_OFFSET          30
86 #define AM_HAL_BLE_NVDS_SLEEPCLOCKDRIFT_OFFSET     35
87 #define AM_HAL_BLE_NVDS_CLOCKSOURCE_OFFSET         44
88 #define AM_HAL_BLE_NVDS_SLEEPENABLE_OFFSET         85
89 #define AM_HAL_BLE_NVDS_AGC_OFFSET                 125
90 
91 #ifdef __cplusplus
92 }
93 #endif
94 
95 #endif // AM_HAL_BLE_PATCH_B0_H
96 
97 //*****************************************************************************
98 //
99 // End Doxygen group.
100 //! @}
101 //
102 //*****************************************************************************
103