1 //*****************************************************************************
2 //
3 //  am_hal_ttp.h
4 //! @file
5 //!
6 //! @brief Functions for handling the "two time program" interface.
7 //!
8 //
9 //*****************************************************************************
10 
11 //*****************************************************************************
12 //
13 // Copyright (c) 2017, Ambiq Micro
14 // All rights reserved.
15 //
16 // Redistribution and use in source and binary forms, with or without
17 // modification, are permitted provided that the following conditions are met:
18 //
19 // 1. Redistributions of source code must retain the above copyright notice,
20 // this list of conditions and the following disclaimer.
21 //
22 // 2. Redistributions in binary form must reproduce the above copyright
23 // notice, this list of conditions and the following disclaimer in the
24 // documentation and/or other materials provided with the distribution.
25 //
26 // 3. Neither the name of the copyright holder nor the names of its
27 // contributors may be used to endorse or promote products derived from this
28 // software without specific prior written permission.
29 //
30 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
31 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
32 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
33 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
34 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
35 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
36 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
37 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
38 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
39 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
40 // POSSIBILITY OF SUCH DAMAGE.
41 //
42 // This is part of revision 1.2.11 of the AmbiqSuite Development Package.
43 //
44 //*****************************************************************************
45 #ifndef AM_HAL_TTP_H
46 #define AM_HAL_TTP_H
47 
48 #ifdef __cplusplus
49 extern "C"
50 {
51 #endif
52 
53 //*****************************************************************************
54 //
55 // Function prototypes
56 //
57 //*****************************************************************************
58 extern int am_hal_ttp_unlock(uint32_t ui32Keyval, uint8_t *pui8_1024Bytes);
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 #endif // AM_HAL_TTP_H
65 
66 //*****************************************************************************
67 //
68 // End Doxygen group.
69 //! @}
70 //
71 //*****************************************************************************
72 
73