am_hal_global.c 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //*****************************************************************************
  2. //
  3. // am_hal_global.c
  4. //! @file
  5. //!
  6. //! @brief Locate global variables here.
  7. //!
  8. //! This module contains global variables that are used throughout the HAL.
  9. //!
  10. //! One use in particular is that it uses a global HAL flags variable that
  11. //! contains flags used in various parts of the HAL.
  12. //
  13. //*****************************************************************************
  14. //*****************************************************************************
  15. //
  16. // Copyright (c) 2017, Ambiq Micro
  17. // All rights reserved.
  18. //
  19. // Redistribution and use in source and binary forms, with or without
  20. // modification, are permitted provided that the following conditions are met:
  21. //
  22. // 1. Redistributions of source code must retain the above copyright notice,
  23. // this list of conditions and the following disclaimer.
  24. //
  25. // 2. Redistributions in binary form must reproduce the above copyright
  26. // notice, this list of conditions and the following disclaimer in the
  27. // documentation and/or other materials provided with the distribution.
  28. //
  29. // 3. Neither the name of the copyright holder nor the names of its
  30. // contributors may be used to endorse or promote products derived from this
  31. // software without specific prior written permission.
  32. //
  33. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  34. // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  35. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  36. // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
  37. // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  38. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  39. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  40. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  41. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  42. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  43. // POSSIBILITY OF SUCH DAMAGE.
  44. //
  45. // This is part of revision 1.2.11 of the AmbiqSuite Development Package.
  46. //
  47. //*****************************************************************************
  48. #include <stdint.h>
  49. #include <stdbool.h>
  50. #include "am_mcu_apollo.h"
  51. //*****************************************************************************
  52. //
  53. // Global Variables
  54. //
  55. //*****************************************************************************
  56. uint32_t volatile g_ui32HALflags = 0x00000000;