1 /**************************************************************************/
2 /*                                                                        */
3 /*       Copyright (c) Microsoft Corporation. All rights reserved.        */
4 /*                                                                        */
5 /*       This software is licensed under the Microsoft Software License   */
6 /*       Terms for Microsoft Azure RTOS. Full text of the license can be  */
7 /*       found in the LICENSE file at https://aka.ms/AzureRTOS_EULA       */
8 /*       and in the root directory of this software.                      */
9 /*                                                                        */
10 /**************************************************************************/
11 
12 
13 /**************************************************************************/
14 /**************************************************************************/
15 /**                                                                       */
16 /** ThreadX Component                                                     */
17 /**                                                                       */
18 /**   Module Manager                                                      */
19 /**                                                                       */
20 /**************************************************************************/
21 /**************************************************************************/
22 
23 
24 /* Include necessary system files.  */
25 
26 #include "tx_api.h"
27 #include "txm_module.h"
28 #ifndef TXM_MODULE_APPLICATION_REQUEST_CALL_NOT_USED
29 /**************************************************************************/
30 /*                                                                        */
31 /*  FUNCTION                                               RELEASE        */
32 /*                                                                        */
33 /*    _txm_module_manager_application_request             PORTABLE C      */
34 /*                                                           6.1.10       */
35 /*  AUTHOR                                                                */
36 /*                                                                        */
37 /*    Scott Larson, Microsoft Corporation                                 */
38 /*                                                                        */
39 /*  DESCRIPTION                                                           */
40 /*                                                                        */
41 /*    This function processes the application-specific module request.    */
42 /*    The entire contents of the request structure is application         */
43 /*    specific and thus the processing in this file is left to the        */
44 /*    application to define.                                              */
45 /*                                                                        */
46 /*  INPUT                                                                 */
47 /*                                                                        */
48 /*    request_id                        Module request ID                 */
49 /*    param_1                           First parameter                   */
50 /*    param_2                           Second parameter                  */
51 /*    param_3                           Third parameter                   */
52 /*                                                                        */
53 /*  OUTPUT                                                                */
54 /*                                                                        */
55 /*    status                            Completion status                 */
56 /*                                                                        */
57 /*  CALLS                                                                 */
58 /*                                                                        */
59 /*    None                                                                */
60 /*                                                                        */
61 /*  CALLED BY                                                             */
62 /*                                                                        */
63 /*    _txm_module_manager_kernel_dispatch   Kernel dispatch function      */
64 /*                                                                        */
65 /*  RELEASE HISTORY                                                       */
66 /*                                                                        */
67 /*    DATE              NAME                      DESCRIPTION             */
68 /*                                                                        */
69 /*  09-30-2020      Scott Larson            Initial Version 6.1           */
70 /*  01-31-2022      Scott Larson            Modified comments and added   */
71 /*                                            CALL_NOT_USED option,       */
72 /*                                            resulting in version 6.1.10 */
73 /*                                                                        */
74 /**************************************************************************/
_txm_module_manager_application_request(ULONG request_id,ALIGN_TYPE param_1,ALIGN_TYPE param_2,ALIGN_TYPE param_3)75 UINT  _txm_module_manager_application_request(ULONG request_id, ALIGN_TYPE param_1, ALIGN_TYPE param_2, ALIGN_TYPE param_3)
76 {
77     /* By default, simply return the status of not available.  */
78     return(TX_NOT_AVAILABLE);
79 }
80 #endif
81