1    /* Alignment of 4 (16-byte) */
2    SECTION .text:CODE (4)
3
4
5    /* Define public symbols.  */
6
7    PUBLIC __txm_module_preamble
8
9
10    /* Define application-specific start/stop entry points for the module.  */
11
12    EXTERN _demo_module_start
13
14
15    /* Define common external refrences.  */
16
17        EXTERN  __txm_module_thread_shell_entry
18        EXTERN  __txm_module_callback_request_thread_entry
19        EXTERN  ROPI$$Length
20        EXTERN  RWPI$$Length
21
22        DATA
23__txm_module_preamble:
24        DC32      0x4D4F4455                                        // Module ID
25        DC32      0x5                                               // Module Major Version
26        DC32      0x6                                               // Module Minor Version
27        DC32      32                                                // Module Preamble Size in 32-bit words
28        DC32      0x12345678                                        // Module ID (application defined)
29        DC32      0x00000007                                        // Module Properties where:
30                                                                    //   Bits 31-24: Compiler ID
31                                                                    //           0 -> IAR
32                                                                    //           1 -> RVDS
33                                                                    //           2 -> GNU
34                                                                    //   Bit 0:  0 -> Privileged mode execution
35                                                                    //           1 -> User mode execution
36                                                                    //   Bit 1:  0 -> No MPU protection
37                                                                    //           1 -> MPU protection (must have user mode selected)
38                                                                    //   Bit 2:  0 -> Disable shared/external memory access
39                                                                    //           1 -> Enable shared/external memory access
40        DC32      __txm_module_thread_shell_entry - $               // Module Shell Entry Point
41        DC32      _demo_module_start - $                            // Module Start Thread Entry Point
42        DC32      0                                                 // Module Stop Thread Entry Point
43        DC32      1                                                 // Module Start/Stop Thread Priority
44        DC32      1024                                              // Module Start/Stop Thread Stack Size
45        DC32      __txm_module_callback_request_thread_entry - $    // Module Callback Thread Entry
46        DC32      1                                                 // Module Callback Thread Priority
47        DC32      1024                                              // Module Callback Thread Stack Size
48        DC32      ROPI$$Length                                      // Module Code Size
49        DC32      RWPI$$Length                                      // Module Data Size
50        DC32      0                                                 // Reserved 0
51        DC32      0                                                 // Reserved 1
52        DC32      0                                                 // Reserved 2
53        DC32      0                                                 // Reserved 3
54        DC32      0                                                 // Reserved 4
55        DC32      0                                                 // Reserved 5
56        DC32      0                                                 // Reserved 6
57        DC32      0                                                 // Reserved 7
58        DC32      0                                                 // Reserved 8
59        DC32      0                                                 // Reserved 9
60        DC32      0                                                 // Reserved 10
61        DC32      0                                                 // Reserved 11
62        DC32      0                                                 // Reserved 12
63        DC32      0                                                 // Reserved 13
64        DC32      0                                                 // Reserved 14
65        DC32      0                                                 // Reserved 15
66
67        END
68
69
70