Skip to content

Commit a33d259

Browse files
larocherawalexekar-rahul-aws
authored
FreeRTOS_Plus_TCP_Echo_Qemu_mps2: remove unused defines/functions (FreeRTOS#1229)
For FreeRTOS_Plus_TCP_Echo_Qemu_mps2: - remove unused defines - disable unused functions - typo: ipconfigUSE_DNS -> ipconfigUSE_DHCP Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com> Co-authored-by: Anubhav Rawal <113639451+rawalexe@users.noreply.github.com> Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com>
1 parent b2b177a commit a33d259

File tree

3 files changed

+10
-15
lines changed

3 files changed

+10
-15
lines changed

FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Qemu_mps2/FreeRTOSConfig.h

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,8 @@ extern void vAssertCalled( void );
5757
#define configUSE_16_BIT_TICKS 0
5858
#define configIDLE_SHOULD_YIELD 0
5959
#define configMAX_PRIORITIES ( 10 )
60-
#define configTIMER_QUEUE_LENGTH 20
61-
#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 3 )
6260
#define configUSE_COUNTING_SEMAPHORES 1
6361
#define configSUPPORT_DYNAMIC_ALLOCATION 1
64-
#define configNUM_TX_DESCRIPTORS 15
6562

6663
/* Set the following definitions to 1 to include the API function, or zero
6764
* to exclude the API function. */
@@ -74,7 +71,7 @@ extern void vAssertCalled( void );
7471
#define INCLUDE_vTaskDelete 0
7572
#define INCLUDE_vTaskCleanUpResources 0
7673
#define INCLUDE_vTaskSuspend 0
77-
#define INCLUDE_vTaskDelayUntil 1
74+
#define INCLUDE_vTaskDelayUntil 0
7875
#define INCLUDE_vTaskDelay 1
7976

8077

@@ -89,7 +86,6 @@ extern void vAssertCalled( void );
8986
/* networking definitions */
9087
#define configMAC_ISR_SIMULATOR_PRIORITY ( configMAX_PRIORITIES - 2 )
9188
#define ipconfigUSE_NETWORK_EVENT_HOOK 1
92-
/*#define ipconfigSOCK_DEFAULT_RECEIVE_BLOCK_TIME pdMS_TO_TICKS(5000) */
9389
#define configNETWORK_INTERFACE_TO_USE 1L
9490

9591
/* The address of an echo server that will be used by the two demo echo client
@@ -115,33 +111,33 @@ extern void vAssertCalled( void );
115111
#define configMAC_ADDR4 0x34
116112
#define configMAC_ADDR5 0xAD
117113

118-
/* Default IP address configuration. Used in ipconfigUSE_DNS is set to 0, or
119-
* ipconfigUSE_DNS is set to 1 but a DNS server cannot be contacted. */
114+
/* Default IP address configuration. Used if ipconfigUSE_DHCP is set to 0, or
115+
* ipconfigUSE_DHCP is set to 1 but a DHCP server cannot be contacted. */
120116

121117
#define configIP_ADDR0 10
122118
#define configIP_ADDR1 211
123119
#define configIP_ADDR2 55
124120
#define configIP_ADDR3 5
125121

126-
/* Default gateway IP address configuration. Used in ipconfigUSE_DNS is set to
127-
* 0, or ipconfigUSE_DNS is set to 1 but a DNS server cannot be contacted. */
122+
/* Default gateway IP address configuration. Used if ipconfigUSE_DHCP is set to
123+
* 0, or ipconfigUSE_DHCP is set to 1 but a DHCP server cannot be contacted. */
128124

129125
#define configGATEWAY_ADDR0 10
130126
#define configGATEWAY_ADDR1 211
131127
#define configGATEWAY_ADDR2 55
132128
#define configGATEWAY_ADDR3 1
133129

134130
/* Default DNS server configuration. OpenDNS addresses are 208.67.222.222 and
135-
* 208.67.220.220. Used in ipconfigUSE_DNS is set to 0, or ipconfigUSE_DNS is set
136-
* to 1 but a DNS server cannot be contacted.*/
131+
* 208.67.220.220. Used if ipconfigUSE_DHCP is set to 0, or ipconfigUSE_DHCP is set
132+
* to 1 but a DHCP server cannot be contacted.*/
137133

138134
#define configDNS_SERVER_ADDR0 127
139135
#define configDNS_SERVER_ADDR1 0
140136
#define configDNS_SERVER_ADDR2 0
141137
#define configDNS_SERVER_ADDR3 53
142138

143-
/* Default netmask configuration. Used in ipconfigUSE_DNS is set to 0, or
144-
* ipconfigUSE_DNS is set to 1 but a DNS server cannot be contacted. */
139+
/* Default netmask configuration. Used if ipconfigUSE_DHCP is set to 0, or
140+
* ipconfigUSE_DHCP is set to 1 but a DHCP server cannot be contacted. */
145141
#define configNET_MASK0 255
146142
#define configNET_MASK1 255
147143
#define configNET_MASK2 255

FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Qemu_mps2/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ INCLUDE_DIRS += -I$(KERNEL_DIR)/include
3030
SOURCE_FILES += $(KERNEL_DIR)/tasks.c
3131
SOURCE_FILES += $(KERNEL_DIR)/list.c
3232
SOURCE_FILES += $(KERNEL_DIR)/queue.c
33-
SOURCE_FILES += $(KERNEL_DIR)/timers.c
3433
SOURCE_FILES += $(KERNEL_DIR)/event_groups.c
3534

3635
# FreeRTOS Kernel ARM Cortex-M3 Port

FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Qemu_mps2/mps2_m3.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ SECTIONS
128128
_heap_top = .;
129129
. = . + _Min_Stack_Size;
130130
. = ALIGN(8);
131-
} >RAM
131+
} >RAM
132132

133133
/* Set stack top to end of RAM, and stack limit move down by
134134
* size of stack_dummy section */

0 commit comments

Comments
 (0)