Port openPOWERLINK to XiUOS from shi_jia_rui

it is OK
This commit is contained in:
xuedongliang
2022-07-01 16:12:49 +08:00
1370 changed files with 580588 additions and 11 deletions
+5
View File
@@ -5,6 +5,11 @@ SRC_DIR := shared
SRC_DIR += cortex-m3
endif
ifeq ($(CONFIG_BOARD_CORTEX_M4_EVB),y)
SRC_DIR := shared
SRC_DIR += cortex-m4
endif
ifeq ($(CONFIG_BOARD_STM32F103_NANO),y)
SRC_DIR := shared
SRC_DIR += cortex-m3
@@ -34,7 +34,7 @@ menu "aiit-arm32-board feature"
endmenu
menu "config hardware resources for connection"
if CONNECTION_COMMUNICATION_ETHERNET
if CONNECTION_INDUSTRIAL_ETHERNET
config ETHERNET_UART_NAME
string "ethernet uart name"
default "/dev/usart3_dev3"
@@ -36,7 +36,7 @@ menu "aiit-riscv64-board feature"
endmenu
menu "config hardware resources for connection"
if CONNECTION_COMMUNICATION_ETHERNET
if CONNECTION_INDUSTRIAL_ETHERNET
config ETHERNET_UART_NAME
string "ethernet uart name"
default "/dev/uart3_dev3"
@@ -34,7 +34,7 @@ menu "cortex-m4-emulator feature"
endmenu
menu "config hardware resources for connection"
if CONNECTION_COMMUNICATION_ETHERNET
if CONNECTION_INDUSTRIAL_ETHERNET
config ETHERNET_UART_NAME
string "ethernet uart name"
default "/dev/usart3_dev3"
+1 -1
View File
@@ -35,7 +35,7 @@ menu "gapuino feature"
endmenu
menu "config hardware resources for connection"
if CONNECTION_COMMUNICATION_ETHERNET
if CONNECTION_INDUSTRIAL_ETHERNET
config ETHERNET_UART_NAME
string "ethernet uart name"
default "/dev/uart3_dev3"
+1 -1
View File
@@ -45,7 +45,7 @@ menu "kd233 feature"
endmenu
menu "config hardware resources for connection"
if CONNECTION_COMMUNICATION_ETHERNET
if CONNECTION_INDUSTRIAL_ETHERNET
config ETHERNET_UART_NAME
string "ethernet uart name"
default "/dev/uart3_dev3"
+1 -1
View File
@@ -45,7 +45,7 @@ menu "kd233 feature"
endmenu
menu "config hardware resources for connection"
if CONNECTION_COMMUNICATION_ETHERNET
if CONNECTION_INDUSTRIAL_ETHERNET
config ETHERNET_UART_NAME
string "ethernet uart name"
default "/dev/uart3_dev3"
@@ -312,6 +312,7 @@ void ethernetif_enet_init(struct netif *netif, struct ethernetif *ethernetif,
ENET_GetDefaultConfig(&config);
config.ringNum = ENET_RING_NUM;
config.macSpecialConfig |= kENET_ControlPromiscuousEnable;
ethernetif_phy_init(ethernetif, ethernetifConfig, &config);
@@ -34,7 +34,7 @@ menu "stm32f407-st-discovery feature"
endmenu
menu "config hardware resources for connection"
if CONNECTION_COMMUNICATION_ETHERNET
if CONNECTION_INDUSTRIAL_ETHERNET
config ETHERNET_UART_NAME
string "ethernet uart name"
default "/dev/usart3_dev3"
+1 -1
View File
@@ -33,7 +33,7 @@ menu "stm32f407zgt6 feature"
endmenu
menu "config hardware resources for connection"
if CONNECTION_COMMUNICATION_ETHERNET
if CONNECTION_INDUSTRIAL_ETHERNET
config ETHERNET_UART_NAME
string "ethernet uart name"
default "/dev/usart3_dev3"
+12 -1
View File
@@ -77,6 +77,16 @@ $(if $(strip $(LOCALS)),$(eval $(LOCALS): $(1)
@$(CROSS_COMPILE)gcc $$(AFLAGS) -c $$< -o $$@))
endef
define add_a_file
$(eval SOBJ := $(1:%.a=%.a)) \
$(eval SOBJ := $(subst $(subst $(APP_DIR),,$(KERNEL_ROOT)),,$(SOBJ))) \
$(eval LOCALA := $(addprefix $(BUILD_DIR)/,$(SOBJ))) \
$(eval OBJS += $(LOCALA)) \
$(if $(strip $(LOCALA)),$(eval $(LOCALA): $(1)
@if [ ! -d $$(@D) ]; then mkdir -p $$(@D); fi
@echo cp $$<
@cp $$< $$@))
endef
@@ -92,7 +102,8 @@ $(if $(SRCS),$(foreach f,$(SRCS),$(call add_cc_file,$(addprefix $(CUR_DIR)/,$(f)
SRCS := $(strip $(filter %.S,$(SRC_FILES)))
$(if $(SRCS),$(foreach f,$(SRCS),$(call add_S_file,$(addprefix $(CUR_DIR)/,$(f)))))
SRCS := $(strip $(filter %.a,$(SRC_FILES)))
$(if $(SRCS),$(foreach f,$(SRCS),$(call add_a_file,$(addprefix $(CUR_DIR)/,$(f)))))
COMPILER:$(OBJS)
@@ -45,7 +45,7 @@
#include <lwip/arch.h>
#include <lwip/netif.h>
#include "tcpip.h"
// #include "tcpip.h"
#include <xs_base.h>