Skip to content

Commit 6f61053

Browse files
author
Scott Larson
committed
add SMP, Modules, and more processor/tools releases
1 parent 49e3c27 commit 6f61053

File tree

1,858 files changed

+617131
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,858 files changed

+617131
-4
lines changed

common_modules/inc/txm_module.h

Lines changed: 684 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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+
/** User Specific */
19+
/** */
20+
/**************************************************************************/
21+
/**************************************************************************/
22+
23+
24+
/**************************************************************************/
25+
/* */
26+
/* APPLICATION INTERFACE DEFINITION RELEASE */
27+
/* */
28+
/* txm_module_user.h PORTABLE C */
29+
/* 6.0.1 */
30+
/* AUTHOR */
31+
/* */
32+
/* Scott Larson, Microsoft Corporation */
33+
/* */
34+
/* DESCRIPTION */
35+
/* */
36+
/* This file contains user defines for configuring the Module Manager */
37+
/* in specific ways. This file will have an effect only if the Module */
38+
/* Manager library is built with TXM_MODULE_INCLUDE_USER_DEFINE_FILE */
39+
/* defined. Note that all the defines in this file may also be made on */
40+
/* the command line when building Modules library and application */
41+
/* objects. */
42+
/* */
43+
/* RELEASE HISTORY */
44+
/* */
45+
/* DATE NAME DESCRIPTION */
46+
/* */
47+
/* 06-30-2020 Scott Larson Initial Version 6.0.1 */
48+
/* */
49+
/**************************************************************************/
50+
51+
#ifndef TXM_MODULE_USER_H
52+
#define TXM_MODULE_USER_H
53+
54+
/* Defines the kernel stack size for a module thread. The default is 512, which is
55+
sufficient for applications only using ThreadX, however, if other libraries are
56+
used i.e. FileX, NetX, etc., then this value will most likely need to be increased. */
57+
58+
/* #define TXM_MODULE_KERNEL_STACK_SIZE 2048 */
59+
60+
#endif
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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 */
19+
/** */
20+
/**************************************************************************/
21+
/**************************************************************************/
22+
23+
#define TXM_MODULE
24+
#include "txm_module.h"
25+
26+
/**************************************************************************/
27+
/* */
28+
/* FUNCTION RELEASE */
29+
/* */
30+
/* _txe_block_allocate PORTABLE C */
31+
/* 6.0.1 */
32+
/* AUTHOR */
33+
/* */
34+
/* Scott Larson, Microsoft Corporation */
35+
/* */
36+
/* DESCRIPTION */
37+
/* */
38+
/* This function checks for errors in the allocate block memory */
39+
/* function call. */
40+
/* */
41+
/* INPUT */
42+
/* */
43+
/* pool_ptr Pointer to pool control block */
44+
/* block_ptr Pointer to place allocated block */
45+
/* pointer */
46+
/* wait_option Suspension option */
47+
/* */
48+
/* OUTPUT */
49+
/* */
50+
/* TX_POOL_ERROR Invalid pool pointer */
51+
/* TX_PTR_ERROR Invalid destination pointer */
52+
/* TX_WAIT_ERROR Invalid wait option */
53+
/* status Actual Completion status */
54+
/* */
55+
/* CALLS */
56+
/* */
57+
/* _txm_module_kernel_call_dispatcher */
58+
/* */
59+
/* CALLED BY */
60+
/* */
61+
/* Module application code */
62+
/* */
63+
/* RELEASE HISTORY */
64+
/* */
65+
/* DATE NAME DESCRIPTION */
66+
/* */
67+
/* 06-30-2020 Scott Larson Initial Version 6.0.1 */
68+
/* */
69+
/**************************************************************************/
70+
UINT _txe_block_allocate(TX_BLOCK_POOL *pool_ptr, VOID **block_ptr, ULONG wait_option)
71+
{
72+
73+
UINT return_value;
74+
75+
/* Call module manager dispatcher. */
76+
return_value = (UINT) (_txm_module_kernel_call_dispatcher)(TXM_BLOCK_ALLOCATE_CALL, (ALIGN_TYPE) pool_ptr, (ALIGN_TYPE) block_ptr, (ALIGN_TYPE) wait_option);
77+
78+
/* Return value to the caller. */
79+
return(return_value);
80+
}
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
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 */
19+
/** */
20+
/**************************************************************************/
21+
/**************************************************************************/
22+
23+
#define TXM_MODULE
24+
#include "txm_module.h"
25+
26+
/**************************************************************************/
27+
/* */
28+
/* FUNCTION RELEASE */
29+
/* */
30+
/* _txe_block_pool_create PORTABLE C */
31+
/* 6.0.1 */
32+
/* AUTHOR */
33+
/* */
34+
/* Scott Larson, Microsoft Corporation */
35+
/* */
36+
/* DESCRIPTION */
37+
/* */
38+
/* This function checks for errors in the create block memory pool */
39+
/* function call. */
40+
/* */
41+
/* INPUT */
42+
/* */
43+
/* pool_ptr Pointer to pool control block */
44+
/* name_ptr Pointer to block pool name */
45+
/* block_size Number of bytes in each block */
46+
/* pool_start Address of beginning of pool area */
47+
/* pool_size Number of bytes in the block pool */
48+
/* pool_control_block_size Size of block pool control block */
49+
/* */
50+
/* OUTPUT */
51+
/* */
52+
/* TX_POOL_ERROR Invalid pool pointer */
53+
/* TX_PTR_ERROR Invalid starting address */
54+
/* TX_SIZE_ERROR Invalid pool size */
55+
/* TX_CALLER_ERROR Invalid caller of pool */
56+
/* status Actual completion status */
57+
/* */
58+
/* CALLS */
59+
/* */
60+
/* _txm_module_kernel_call_dispatcher */
61+
/* */
62+
/* CALLED BY */
63+
/* */
64+
/* Module application code */
65+
/* */
66+
/* RELEASE HISTORY */
67+
/* */
68+
/* DATE NAME DESCRIPTION */
69+
/* */
70+
/* 06-30-2020 Scott Larson Initial Version 6.0.1 */
71+
/* */
72+
/**************************************************************************/
73+
UINT _txe_block_pool_create(TX_BLOCK_POOL *pool_ptr, CHAR *name_ptr, ULONG block_size, VOID *pool_start, ULONG pool_size, UINT pool_control_block_size)
74+
{
75+
76+
UINT return_value;
77+
ALIGN_TYPE extra_parameters[4];
78+
79+
extra_parameters[0] = (ALIGN_TYPE) block_size;
80+
extra_parameters[1] = (ALIGN_TYPE) pool_start;
81+
extra_parameters[2] = (ALIGN_TYPE) pool_size;
82+
extra_parameters[3] = (ALIGN_TYPE) pool_control_block_size;
83+
84+
/* Call module manager dispatcher. */
85+
return_value = (UINT) (_txm_module_kernel_call_dispatcher)(TXM_BLOCK_POOL_CREATE_CALL, (ALIGN_TYPE) pool_ptr, (ALIGN_TYPE) name_ptr, (ALIGN_TYPE) extra_parameters);
86+
87+
/* Return value to the caller. */
88+
return(return_value);
89+
}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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 */
19+
/** */
20+
/**************************************************************************/
21+
/**************************************************************************/
22+
23+
#define TXM_MODULE
24+
#include "txm_module.h"
25+
26+
/**************************************************************************/
27+
/* */
28+
/* FUNCTION RELEASE */
29+
/* */
30+
/* _txe_block_pool_delete PORTABLE C */
31+
/* 6.0.1 */
32+
/* AUTHOR */
33+
/* */
34+
/* Scott Larson, Microsoft Corporation */
35+
/* */
36+
/* DESCRIPTION */
37+
/* */
38+
/* This function checks for errors in the delete block pool memory */
39+
/* function call. */
40+
/* */
41+
/* INPUT */
42+
/* */
43+
/* pool_ptr Pointer to pool control block */
44+
/* */
45+
/* OUTPUT */
46+
/* */
47+
/* TX_POOL_ERROR Invalid memory block pool pointer */
48+
/* TX_CALLER_ERROR Invalid caller of this function */
49+
/* status Actual delete function status */
50+
/* */
51+
/* CALLS */
52+
/* */
53+
/* _txm_module_kernel_call_dispatcher */
54+
/* */
55+
/* CALLED BY */
56+
/* */
57+
/* Module application code */
58+
/* */
59+
/* RELEASE HISTORY */
60+
/* */
61+
/* DATE NAME DESCRIPTION */
62+
/* */
63+
/* 06-30-2020 Scott Larson Initial Version 6.0.1 */
64+
/* */
65+
/**************************************************************************/
66+
UINT _txe_block_pool_delete(TX_BLOCK_POOL *pool_ptr)
67+
{
68+
69+
UINT return_value;
70+
71+
/* Call module manager dispatcher. */
72+
return_value = (UINT) (_txm_module_kernel_call_dispatcher)(TXM_BLOCK_POOL_DELETE_CALL, (ALIGN_TYPE) pool_ptr, 0, 0);
73+
74+
/* Return value to the caller. */
75+
return(return_value);
76+
}

0 commit comments

Comments
 (0)