am_hal_ttp.h 2.6 KB

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