Skip to content

Commit

Permalink
Examples: optimize RAM usage for RTOS in network examples (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
furbanc authored Feb 4, 2025
1 parent 0384ab8 commit fb2e3c4
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions Examples/Network/BSD_Client/RTE/CMSIS/RTX_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// <i> Defines the combined global dynamic memory size.
// <i> Default: 32768
#ifndef OS_DYNAMIC_MEM_SIZE
#define OS_DYNAMIC_MEM_SIZE 32768
#define OS_DYNAMIC_MEM_SIZE 4096
#endif

// <o>Kernel Tick Frequency [Hz] <1-1000000>
Expand Down Expand Up @@ -179,7 +179,7 @@
// <i> Defines stack size for threads with zero stack size specified.
// <i> Default: 3072
#ifndef OS_STACK_SIZE
#define OS_STACK_SIZE 3072
#define OS_STACK_SIZE 1024
#endif

// <o>Idle Thread Stack size [bytes] <72-1073741824:8>
Expand Down
4 changes: 2 additions & 2 deletions Examples/Network/BSD_Server/RTE/CMSIS/RTX_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// <i> Defines the combined global dynamic memory size.
// <i> Default: 32768
#ifndef OS_DYNAMIC_MEM_SIZE
#define OS_DYNAMIC_MEM_SIZE 32768
#define OS_DYNAMIC_MEM_SIZE 4096
#endif

// <o>Kernel Tick Frequency [Hz] <1-1000000>
Expand Down Expand Up @@ -179,7 +179,7 @@
// <i> Defines stack size for threads with zero stack size specified.
// <i> Default: 3072
#ifndef OS_STACK_SIZE
#define OS_STACK_SIZE 3072
#define OS_STACK_SIZE 1024
#endif

// <o>Idle Thread Stack size [bytes] <72-1073741824:8>
Expand Down
4 changes: 2 additions & 2 deletions Examples/Network/FTP_Server/RTE/CMSIS/RTX_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// <i> Defines the combined global dynamic memory size.
// <i> Default: 32768
#ifndef OS_DYNAMIC_MEM_SIZE
#define OS_DYNAMIC_MEM_SIZE 32768
#define OS_DYNAMIC_MEM_SIZE 4096
#endif

// <o>Kernel Tick Frequency [Hz] <1-1000000>
Expand Down Expand Up @@ -179,7 +179,7 @@
// <i> Defines stack size for threads with zero stack size specified.
// <i> Default: 3072
#ifndef OS_STACK_SIZE
#define OS_STACK_SIZE 3072
#define OS_STACK_SIZE 1024
#endif

// <o>Idle Thread Stack size [bytes] <72-1073741824:8>
Expand Down
4 changes: 2 additions & 2 deletions Examples/Network/HTTPS_Server/RTE/CMSIS/RTX_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// <i> Defines the combined global dynamic memory size.
// <i> Default: 32768
#ifndef OS_DYNAMIC_MEM_SIZE
#define OS_DYNAMIC_MEM_SIZE 32768
#define OS_DYNAMIC_MEM_SIZE 4096
#endif

// <o>Kernel Tick Frequency [Hz] <1-1000000>
Expand Down Expand Up @@ -179,7 +179,7 @@
// <i> Defines stack size for threads with zero stack size specified.
// <i> Default: 3072
#ifndef OS_STACK_SIZE
#define OS_STACK_SIZE 3072
#define OS_STACK_SIZE 1024
#endif

// <o>Idle Thread Stack size [bytes] <72-1073741824:8>
Expand Down
4 changes: 2 additions & 2 deletions Examples/Network/HTTP_Server/RTE/CMSIS/RTX_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// <i> Defines the combined global dynamic memory size.
// <i> Default: 32768
#ifndef OS_DYNAMIC_MEM_SIZE
#define OS_DYNAMIC_MEM_SIZE 32768
#define OS_DYNAMIC_MEM_SIZE 4096
#endif

// <o>Kernel Tick Frequency [Hz] <1-1000000>
Expand Down Expand Up @@ -179,7 +179,7 @@
// <i> Defines stack size for threads with zero stack size specified.
// <i> Default: 3072
#ifndef OS_STACK_SIZE
#define OS_STACK_SIZE 3072
#define OS_STACK_SIZE 1024
#endif

// <o>Idle Thread Stack size [bytes] <72-1073741824:8>
Expand Down
4 changes: 2 additions & 2 deletions Examples/Network/HTTP_Upload/RTE/CMSIS/RTX_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// <i> Defines the combined global dynamic memory size.
// <i> Default: 32768
#ifndef OS_DYNAMIC_MEM_SIZE
#define OS_DYNAMIC_MEM_SIZE 32768
#define OS_DYNAMIC_MEM_SIZE 4096
#endif

// <o>Kernel Tick Frequency [Hz] <1-1000000>
Expand Down Expand Up @@ -179,7 +179,7 @@
// <i> Defines stack size for threads with zero stack size specified.
// <i> Default: 3072
#ifndef OS_STACK_SIZE
#define OS_STACK_SIZE 3072
#define OS_STACK_SIZE 1024
#endif

// <o>Idle Thread Stack size [bytes] <72-1073741824:8>
Expand Down
4 changes: 2 additions & 2 deletions Examples/Network/SMTPS_Client/RTE/CMSIS/RTX_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// <i> Defines the combined global dynamic memory size.
// <i> Default: 32768
#ifndef OS_DYNAMIC_MEM_SIZE
#define OS_DYNAMIC_MEM_SIZE 32768
#define OS_DYNAMIC_MEM_SIZE 4096
#endif

// <o>Kernel Tick Frequency [Hz] <1-1000000>
Expand Down Expand Up @@ -179,7 +179,7 @@
// <i> Defines stack size for threads with zero stack size specified.
// <i> Default: 3072
#ifndef OS_STACK_SIZE
#define OS_STACK_SIZE 3072
#define OS_STACK_SIZE 1024
#endif

// <o>Idle Thread Stack size [bytes] <72-1073741824:8>
Expand Down
4 changes: 2 additions & 2 deletions Examples/Network/SMTP_Client/RTE/CMSIS/RTX_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// <i> Defines the combined global dynamic memory size.
// <i> Default: 32768
#ifndef OS_DYNAMIC_MEM_SIZE
#define OS_DYNAMIC_MEM_SIZE 32768
#define OS_DYNAMIC_MEM_SIZE 4096
#endif

// <o>Kernel Tick Frequency [Hz] <1-1000000>
Expand Down Expand Up @@ -179,7 +179,7 @@
// <i> Defines stack size for threads with zero stack size specified.
// <i> Default: 3072
#ifndef OS_STACK_SIZE
#define OS_STACK_SIZE 3072
#define OS_STACK_SIZE 1024
#endif

// <o>Idle Thread Stack size [bytes] <72-1073741824:8>
Expand Down
4 changes: 2 additions & 2 deletions Examples/Network/SNMP_Agent/RTE/CMSIS/RTX_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// <i> Defines the combined global dynamic memory size.
// <i> Default: 32768
#ifndef OS_DYNAMIC_MEM_SIZE
#define OS_DYNAMIC_MEM_SIZE 32768
#define OS_DYNAMIC_MEM_SIZE 4096
#endif

// <o>Kernel Tick Frequency [Hz] <1-1000000>
Expand Down Expand Up @@ -179,7 +179,7 @@
// <i> Defines stack size for threads with zero stack size specified.
// <i> Default: 3072
#ifndef OS_STACK_SIZE
#define OS_STACK_SIZE 3072
#define OS_STACK_SIZE 1024
#endif

// <o>Idle Thread Stack size [bytes] <72-1073741824:8>
Expand Down
4 changes: 2 additions & 2 deletions Examples/Network/Telnet_Server/RTE/CMSIS/RTX_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// <i> Defines the combined global dynamic memory size.
// <i> Default: 32768
#ifndef OS_DYNAMIC_MEM_SIZE
#define OS_DYNAMIC_MEM_SIZE 32768
#define OS_DYNAMIC_MEM_SIZE 4096
#endif

// <o>Kernel Tick Frequency [Hz] <1-1000000>
Expand Down Expand Up @@ -179,7 +179,7 @@
// <i> Defines stack size for threads with zero stack size specified.
// <i> Default: 3072
#ifndef OS_STACK_SIZE
#define OS_STACK_SIZE 3072
#define OS_STACK_SIZE 1024
#endif

// <o>Idle Thread Stack size [bytes] <72-1073741824:8>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// <i> Defines the combined global dynamic memory size.
// <i> Default: 32768
#ifndef OS_DYNAMIC_MEM_SIZE
#define OS_DYNAMIC_MEM_SIZE 32768
#define OS_DYNAMIC_MEM_SIZE 4096
#endif

// <o>Kernel Tick Frequency [Hz] <1-1000000>
Expand Down Expand Up @@ -179,7 +179,7 @@
// <i> Defines stack size for threads with zero stack size specified.
// <i> Default: 3072
#ifndef OS_STACK_SIZE
#define OS_STACK_SIZE 3072
#define OS_STACK_SIZE 1024
#endif

// <o>Idle Thread Stack size [bytes] <72-1073741824:8>
Expand Down

0 comments on commit fb2e3c4

Please sign in to comment.