text: /**
   ****************************************************************************************
   *
   * @file user_custs1_impl.h
   *
   * @brief Reset Mechanism SW Example Custom1 Server implementation header file.
   *
   * Copyright (c) 2015-2020 Dialog Semiconductor. All rights reserved.
   *
   * This software ("Software") is owned by Dialog Semiconductor.
   *
   * By using this Software you agree that Dialog Semiconductor retains all
   * intellectual property and proprietary rights in and to this Software and any
   * use, reproduction, disclosure or distribution of the Software without express
   * written permission or a license agreement from Dialog Semiconductor is
   * strictly prohibited. This Software is solely for use on or in conjunction
   * with Dialog Semiconductor products.
   *
   * EXCEPT AS OTHERWISE PROVIDED IN A LICENSE AGREEMENT BETWEEN THE PARTIES, THE
   * SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. EXCEPT AS OTHERWISE
   * PROVIDED IN A LICENSE AGREEMENT BETWEEN THE PARTIES, IN NO EVENT SHALL
   * DIALOG SEMICONDUCTOR BE LIABLE FOR ANY DIRECT, SPECIAL, INDIRECT, INCIDENTAL,
   * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
   * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
   * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
   * OF THE SOFTWARE.
   *
   ****************************************************************************************
   */
  
  #ifndef _USER_CUSTS1_IMPL_H_
  #define _USER_CUSTS1_IMPL_H_
  
  /**
   ****************************************************************************************
   * @addtogroup APP
   * @ingroup RICOW
   *
   * @brief
   *
   * @{
   ****************************************************************************************
   */
  
  /*
   * DEFINES
   ****************************************************************************************
   */
   
   
   /**
   ****************************************************************************************
   * Define the time for the Power-On Reset to happen.
   * The time is calculated based on the following equation:
   *
   * Time = por_time x 4096 x RC32 clock period
   *
   * @note The maximum value is 0x7F
   ****************************************************************************************
   */
  #define POR_TIME_VAL 						(0x08)
   
  enum
  {
  	NO_RESET = 0,
      TRIGGER_WDOG_NMI,
      TRIGGER_HARDFAULT,
      TRIGGER_WDOG_RESET,
  	TRIGGER_SW_RESET,
  	TRIGGER_HW_RESET,
  	TRIGGER_POR_RESET,
      
  };
  
  /*
   * INCLUDE FILES
   ****************************************************************************************
   */
  
  #include "gapc_task.h"                 // gap functions and messages
  #include "gapm_task.h"                 // gap functions and messages
  #include "custs1_task.h"
  
  /*
   * FUNCTION DECLARATIONS
   ****************************************************************************************
   */
  
  /**
   ****************************************************************************************
   * @brief Control point write indication handler.
   * @param[in] msgid   Id of the message received.
   * @param[in] param   Pointer to the parameters of the message.
   * @param[in] dest_id ID of the receiving task instance.
   * @param[in] src_id  ID of the sending task instance.
   * @return void
   ****************************************************************************************
  */
  void user_svc1_ctrl_wr_ind_handler(ke_msg_id_t const msgid,
                                     struct custs1_val_write_ind const *param,
                                     ke_task_id_t const dest_id,
                                     ke_task_id_t const src_id);
  
  
  /// @} APP
  
  #endif // _USER_CUSTS1_IMPL_H_
  