AzureMXChip/MXCHIPAZ3166/core/lib/threadx/ports_module/cortex-m7/iar/module_manager/src/txm_module_manager_memory_fault_notify.c
UINT  _txm_module_manager_memory_fault_notify(VOID (*notify_function)(TX_THREAD *, TXM_MODULE_INSTANCE *))
{
    /* Setup notification function.  */
    _txm_module_manager_fault_notify =  notify_function;
    
    /* Return success.  */
    return(TX_SUCCESS);
}
/**************************************************************************/
/*                                                                        */
/*  FUNCTION                                               RELEASE        */
/*                                                                        */
/*    _txm_module_manager_memory_fault_notify         Cortex-M7/MPU/IAR   */
/*                                                           6.1          */
/*  AUTHOR                                                                */
/*                                                                        */
/*    Scott Larson, Microsoft Corporation                                 */
/*                                                                        */
/*  DESCRIPTION                                                           */
/*                                                                        */
/*    This function registers an application callback when/if a memory    */
/*    fault occurs. The supplied thread is automatically terminated, but  */
/*    any other threads in the same module may still execute.             */
/*                                                                        */
/*  INPUT                                                                 */
/*                                                                        */
/*    notify_function                   Memory fault notification         */
/*                                        function, NULL disables.        */
/*                                                                        */
/*  OUTPUT                                                                */
/*                                                                        */
/*    status                            Completion status                 */
/*                                                                        */
/*  CALLS                                                                 */
/*                                                                        */
/*    None                                                                */
/*                                                                        */
/*  CALLED BY                                                             */
/*                                                                        */
/*    Application Code                                                    */
/*                                                                        */
/*  RELEASE HISTORY                                                       */
/*                                                                        */
/*    DATE              NAME                      DESCRIPTION             */
/*                                                                        */
/*  09-30-2020     Scott Larson             Initial Version 6.1           */
/*                                                                        */
/**************************************************************************/
FUNCTION                                               RELEASE



Scott Larson, Microsoft Corporation

DESCRIPTION

This function registers an application callback when/if a memory
fault occurs. The supplied thread is automatically terminated, but
any other threads in the same module may still execute.

INPUT

notify_function                   Memory fault notification
function, NULL disables.

OUTPUT

status                            Completion status

CALLS

None

CALLED BY

Application Code

RELEASE HISTORY

DATE              NAME                      DESCRIPTION

09-30-2020     Scott Larson             Initial Version 6.1
FUNCTION RELEASE Scott Larson Microsoft Corporation DESCRIPTION This function registers an application callback when / if a memory fault occurs . The supplied thread is automatically terminated but any other threads in the same module may still execute . INPUT notify_function Memory fault notification function NULL disables . OUTPUT status Completion status CALLS None CALLED BY Application Code RELEASE HISTORY DATE NAME DESCRIPTION 09 - 30 - 2020 Scott Larson Initial Version 6 . 1
UINT  _txm_module_manager_memory_fault_notify(VOID (*notify_function)(TX_THREAD *, TXM_MODULE_INSTANCE *))
{
    _txm_module_manager_fault_notify =  notify_function;
    return(TX_SUCCESS);
}
UINT _txm_module_manager_memory_fault_notify ( VOID ( * notify_function ) ( TX_THREAD * , TXM_MODULE_INSTANCE * ) ) { _txm_module_manager_fault_notify = notify_function ; return ( TX_SUCCESS ) ; }
FUNCTION                                               RELEASE
FUNCTION RELEASE
/* Setup notification function.  */ /* Return success.  */