Skip to content

Commit

Permalink
FreeRTOS_Plus_TCP_Echo_Qemu_mps2: remove unused defines/functions (Fr…
Browse files Browse the repository at this point in the history
…eeRTOS#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>
  • Loading branch information
3 people authored Jun 20, 2024
1 parent b2b177a commit a33d259
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,8 @@ extern void vAssertCalled( void );
#define configUSE_16_BIT_TICKS 0
#define configIDLE_SHOULD_YIELD 0
#define configMAX_PRIORITIES ( 10 )
#define configTIMER_QUEUE_LENGTH 20
#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 3 )
#define configUSE_COUNTING_SEMAPHORES 1
#define configSUPPORT_DYNAMIC_ALLOCATION 1
#define configNUM_TX_DESCRIPTORS 15

/* Set the following definitions to 1 to include the API function, or zero
* to exclude the API function. */
Expand All @@ -74,7 +71,7 @@ extern void vAssertCalled( void );
#define INCLUDE_vTaskDelete 0
#define INCLUDE_vTaskCleanUpResources 0
#define INCLUDE_vTaskSuspend 0
#define INCLUDE_vTaskDelayUntil 1
#define INCLUDE_vTaskDelayUntil 0
#define INCLUDE_vTaskDelay 1


Expand All @@ -89,7 +86,6 @@ extern void vAssertCalled( void );
/* networking definitions */
#define configMAC_ISR_SIMULATOR_PRIORITY ( configMAX_PRIORITIES - 2 )
#define ipconfigUSE_NETWORK_EVENT_HOOK 1
/*#define ipconfigSOCK_DEFAULT_RECEIVE_BLOCK_TIME pdMS_TO_TICKS(5000) */
#define configNETWORK_INTERFACE_TO_USE 1L

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

/* Default IP address configuration. Used in ipconfigUSE_DNS is set to 0, or
* ipconfigUSE_DNS is set to 1 but a DNS server cannot be contacted. */
/* Default IP address configuration. Used if ipconfigUSE_DHCP is set to 0, or
* ipconfigUSE_DHCP is set to 1 but a DHCP server cannot be contacted. */

#define configIP_ADDR0 10
#define configIP_ADDR1 211
#define configIP_ADDR2 55
#define configIP_ADDR3 5

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

#define configGATEWAY_ADDR0 10
#define configGATEWAY_ADDR1 211
#define configGATEWAY_ADDR2 55
#define configGATEWAY_ADDR3 1

/* Default DNS server configuration. OpenDNS addresses are 208.67.222.222 and
* 208.67.220.220. Used in ipconfigUSE_DNS is set to 0, or ipconfigUSE_DNS is set
* to 1 but a DNS server cannot be contacted.*/
* 208.67.220.220. Used if ipconfigUSE_DHCP is set to 0, or ipconfigUSE_DHCP is set
* to 1 but a DHCP server cannot be contacted.*/

#define configDNS_SERVER_ADDR0 127
#define configDNS_SERVER_ADDR1 0
#define configDNS_SERVER_ADDR2 0
#define configDNS_SERVER_ADDR3 53

/* Default netmask configuration. Used in ipconfigUSE_DNS is set to 0, or
* ipconfigUSE_DNS is set to 1 but a DNS server cannot be contacted. */
/* Default netmask configuration. Used if ipconfigUSE_DHCP is set to 0, or
* ipconfigUSE_DHCP is set to 1 but a DHCP server cannot be contacted. */
#define configNET_MASK0 255
#define configNET_MASK1 255
#define configNET_MASK2 255
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ INCLUDE_DIRS += -I$(KERNEL_DIR)/include
SOURCE_FILES += $(KERNEL_DIR)/tasks.c
SOURCE_FILES += $(KERNEL_DIR)/list.c
SOURCE_FILES += $(KERNEL_DIR)/queue.c
SOURCE_FILES += $(KERNEL_DIR)/timers.c
SOURCE_FILES += $(KERNEL_DIR)/event_groups.c

# FreeRTOS Kernel ARM Cortex-M3 Port
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ SECTIONS
_heap_top = .;
. = . + _Min_Stack_Size;
. = ALIGN(8);
} >RAM
} >RAM

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

0 comments on commit a33d259

Please sign in to comment.