text: //*****************************************************************************
  //
  //! @file ble_freertos_fcc_test.c
  //!
  //! @brief ARM Cordio BLE - FCC test example
  //!
  //! Purpose: This example is used to put Bluetooth radio in Apollo4 into various
  //! test mode on different channels on pressing BTN1 on the Apollo4 EVB.
  //!
  //! Printing takes place over the ITM at 1M Baud.
  //!
  //
  //*****************************************************************************
  
  //*****************************************************************************
  //
  // Copyright (c) 2021, Ambiq Micro, Inc.
  // All rights reserved.
  //
  // Redistribution and use in source and binary forms, with or without
  // modification, are permitted provided that the following conditions are met:
  //
  // 1. Redistributions of source code must retain the above copyright notice,
  // this list of conditions and the following disclaimer.
  //
  // 2. Redistributions in binary form must reproduce the above copyright
  // notice, this list of conditions and the following disclaimer in the
  // documentation and/or other materials provided with the distribution.
  //
  // 3. Neither the name of the copyright holder nor the names of its
  // contributors may be used to endorse or promote products derived from this
  // software without specific prior written permission.
  //
  // Third party software included in this distribution is subject to the
  // additional license terms as defined in the /docs/licenses directory.
  //
  // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
  // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  // POSSIBILITY OF SUCH DAMAGE.
  //
  // This is part of revision b0-release-20210111-833-gc25608de46 of the AmbiqSuite Development Package.
  //
  //*****************************************************************************
  
  #include "am_util.h"
  #include "am_bsp.h"
  
  //*****************************************************************************
  //
  // Forward declarations.
  //
  
  //*****************************************************************************
  //
  // Timer for buttons.
  //
  //*****************************************************************************
  
  extern void run_tasks(void);
  
  //*****************************************************************************
  //
  // Tracking variable for the scheduler timer.
  //
  //*****************************************************************************
  
  //*****************************************************************************
  //
  // Enable printing to the console.
  //
  //*****************************************************************************
  void
  enable_print_interface(void)
  {
      //
      // Initialize a debug printing interface.
      //
      am_bsp_itm_printf_enable();
  
      //
      // Print the banner.
      //
      am_util_stdio_terminal_clear();
  
  }
  
  //*****************************************************************************
  //
  // Main function.
  //
  //*****************************************************************************
  int
  main(void)
  {
      //
      // Set the clock frequency
      //
  #ifndef NOFPU
      //
      // Enable the floating point module, and configure the core for lazy
      // stacking.
      //
      am_hal_sysctrl_fpu_enable();
      am_hal_sysctrl_fpu_stacking_enable(true);
  #else
      am_hal_sysctrl_fpu_disable();
  #endif
  
      //
      // Enable printing to the console.
      //
  #ifdef AM_DEBUG_PRINTF
      enable_print_interface();
  #endif
  
      am_util_debug_printf("Apollo4 BLE FCC Test Example\n");
  
      run_tasks();
  
      am_util_debug_printf("Usage as below:\n");
      am_util_debug_printf("TX power is set to +3.0 dBm (max) \n");
  
      while (1)
      {
          ;
      }
  }
  
  