Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

W5500 ethernet driver #381

Open
wants to merge 81 commits into
base: chibios-21.11.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
8189342
W5500 ethernet driver
xaelsouth Oct 31, 2023
2419a0c
mbedtls bindings
xaelsouth Oct 31, 2023
c516549
anjay/avs_commons bindings
xaelsouth Oct 31, 2023
73a9410
WIZNET IOLibrary driver with built-in TCP/IP stack
xaelsouth Oct 31, 2023
3395900
Added demos for W5500, LWIIP, WIZNET IOLIBARAY and ANJAY/AVS_COMMONS
xaelsouth Nov 1, 2023
e6d9d5b
Added demos for W5500, LWIIP, WIZNET IOLIBRARY and ANJAY/AVS_COMMONS
xaelsouth Nov 1, 2023
33f9f9e
Merge remote-tracking branch 'origin/chibios-21.11.x' into chibios-21…
xaelsouth Nov 1, 2023
0b91fcb
read frame in chunks, not at once
xaelsouth Nov 1, 2023
ec10560
-O2 instead of -Og; read payload buffer initialized with 0
xaelsouth Nov 1, 2023
2802412
Merge branch 'ChibiOS:chibios-21.11.x' into chibios-21.11.x
xaelsouth Jun 2, 2024
bcb6399
added submodule gecko_sdk
xaelsouth Jun 2, 2024
6f07076
removed nuc svds
xaelsouth Jun 2, 2024
5c9548b
added very basic hal for SiLabs EFR32FG14 and more advanced for EFR32…
xaelsouth Jun 2, 2024
7e125c7
fixed gecko_sdk path
xaelsouth Jun 2, 2024
d9baa54
fixed gecko_sdk path
xaelsouth Jun 2, 2024
d131f12
verbose and don't use time measurement APIs
xaelsouth Jun 2, 2024
09ed0cd
alternate functions can be selected in PAL for ports and pins
xaelsouth Jun 2, 2024
c9a0cc2
print sections sizes of the target ELF
xaelsouth Jun 3, 2024
ebeb216
USART supported as part of SIO subsystem
xaelsouth Jun 3, 2024
412e1b6
nicer distinction between usart/eusart
xaelsouth Jun 4, 2024
5be28c4
macroed serial port config in sio lld
xaelsouth Jun 4, 2024
a485035
copiright
xaelsouth Jun 6, 2024
78c50ce
LFXO can be calibrated; EUSART0 finally works
xaelsouth Jun 7, 2024
fccc974
voltage scaling; clockout on pin
xaelsouth Jun 7, 2024
ed0e696
implemented software real time calender using BURTC
xaelsouth Jun 9, 2024
2cf7160
fixed 32768 if no subseconds
xaelsouth Jun 9, 2024
3b17fbf
fixed 32768 if no subseconds
xaelsouth Jun 9, 2024
829be5a
fixed 32768 if no subseconds
xaelsouth Jun 9, 2024
db08b9d
move static inline functions into the file section
xaelsouth Jun 10, 2024
708a365
Merge branch 'ChibiOS:chibios-21.11.x' into chibios-21.11.x
xaelsouth Jun 26, 2024
82ee20b
TI CC131x very-very initial support
xaelsouth Jun 27, 2024
905cfb2
Merge branch 'ChibiOS:chibios-21.11.x' into chibios-21.11.x
xaelsouth Sep 8, 2024
6b7e614
burtc ready-unoptimized, adc not ready, dac not ready
xaelsouth Sep 8, 2024
ea12c68
svd files
xaelsouth Sep 8, 2024
58124c6
just commiting main
xaelsouth Sep 8, 2024
6edc738
Merge remote-tracking branch 'origin/chibios-21.11.x' into chibios-21…
xaelsouth Sep 8, 2024
5e97a57
added testhal for BURTC/BURAM, GPIO, SIO
xaelsouth Oct 10, 2024
52b654b
updated chconf to _CHIBIOS_RT_CONF_VER_8_0_
xaelsouth Oct 10, 2024
73892b1
added BURTC driver
xaelsouth Oct 10, 2024
03aa283
added BURAM driver
xaelsouth Oct 10, 2024
6785398
added BURAM driver
xaelsouth Oct 10, 2024
58867cd
added BURAM driver
xaelsouth Oct 10, 2024
066c421
added board support for DK2600A
xaelsouth Oct 10, 2024
d6c50fd
added example of alarm retriggering
xaelsouth Oct 10, 2024
cf967ef
keeping track of dstflag in RTC
xaelsouth Oct 10, 2024
0576bdc
added DMA tests
xaelsouth Oct 13, 2024
be994af
added DMA tests
xaelsouth Oct 13, 2024
5653482
added UART-SIO-SLOW as example for UART with LFXO at 2400 baud
xaelsouth Oct 16, 2024
787d7d5
removed volatile keyword on irq_unhandled
xaelsouth Oct 16, 2024
e7919de
weak function for LFXO calibration
xaelsouth Oct 18, 2024
4a03f71
initial RAIL lib integration
xaelsouth Oct 18, 2024
f958dd2
more clock tests
xaelsouth Oct 18, 2024
91916c8
railib autogen
xaelsouth Oct 18, 2024
ec95f71
radio works
xaelsouth Oct 18, 2024
41908ac
defined RAIL lib interrupts
xaelsouth Oct 19, 2024
dfbb482
chSysRestoreStatusX instead of chSysLock/UNlock
xaelsouth Oct 19, 2024
102724d
mode C added
xaelsouth Oct 19, 2024
a6f67ed
mode S added
xaelsouth Oct 19, 2024
5beea9c
disabled channel config change within interrupt
xaelsouth Oct 19, 2024
b9ce3aa
disabled channel config change within interrupt
xaelsouth Oct 19, 2024
ecd3b63
cleaned up UDEFS in Makefile
xaelsouth Oct 19, 2024
3262e3b
main
xaelsouth Oct 19, 2024
bd501f7
corrected includes and sources
xaelsouth Oct 19, 2024
fa8be9a
disabled most of sl components
xaelsouth Oct 19, 2024
b9ab5f7
removed unnecessary includes
xaelsouth Oct 19, 2024
3e3fd70
removed unused files from code generator (Radio Configurator)
xaelsouth Oct 20, 2024
97590c0
unkinked rail_util
xaelsouth Oct 20, 2024
d701ab9
check return RAIL status
xaelsouth Oct 20, 2024
e260565
more reliable timing
xaelsouth Oct 20, 2024
0425ad8
removed global SystemCoreClock from hal_lld.c
xaelsouth Oct 20, 2024
36c2417
speed up rtc set/get time functions
xaelsouth Oct 24, 2024
3668037
send T1/C1/S1 repeatedly
xaelsouth Oct 24, 2024
0c184bd
xmlmbus
xaelsouth Oct 31, 2024
8c11d90
xmlmbus resrtructured
xaelsouth Oct 31, 2024
6959768
Merge remote-tracking branch 'origin/chibios-21.11.x' into chibios-21…
xaelsouth Oct 31, 2024
9651484
raillib is part of the testhal
xaelsouth Oct 31, 2024
6cc08c3
just update
xaelsouth Nov 3, 2024
bd06b76
moved xmlmbus
xaelsouth Nov 10, 2024
fcacfd2
Merge branch 'ChibiOS:chibios-21.11.x' into chibios-21.11.x
xaelsouth Nov 10, 2024
fefa19e
several typos and fixes
xaelsouth Nov 10, 2024
d0aef35
added bindings for xmlmbus
xaelsouth Nov 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@
*~
.dep
build
*.vpj
*.vpw
*.vpwhistuxml
*.vpwhistu
*.vtg
*.jdebug
*.jdebug.user
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "ext/mcux-sdk"]
path = ext/mcux-sdk
url = https://github.com/NXPmicro/mcux-sdk
[submodule "ext/gecko_sdk"]
path = ext/gecko_sdk
url = https://github.com/SiliconLabs/gecko_sdk
198 changes: 198 additions & 0 deletions demos/SILABS/RT-EFR32FG14P-SLWSTK6061B/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
##############################################################################
# Build global options
# NOTE: Can be overridden externally.
#

# Compiler options here.
ifeq ($(USE_OPT),)
USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16
endif

# C specific options here (added to USE_OPT).
ifeq ($(USE_COPT),)
USE_COPT =
endif

# C++ specific options here (added to USE_OPT).
ifeq ($(USE_CPPOPT),)
USE_CPPOPT = -fno-rtti
endif

# Enable this if you want the linker to remove unused code and data.
ifeq ($(USE_LINK_GC),)
USE_LINK_GC = yes
endif

# Linker extra options here.
ifeq ($(USE_LDOPT),)
USE_LDOPT =
endif

# Enable this if you want link time optimizations (LTO).
ifeq ($(USE_LTO),)
USE_LTO = yes
endif

# Enable this if you want to see the full log while compiling.
ifeq ($(USE_VERBOSE_COMPILE),)
USE_VERBOSE_COMPILE = yes
endif

# If enabled, this option makes the build process faster by not compiling
# modules not used in the current configuration.
ifeq ($(USE_SMART_BUILD),)
USE_SMART_BUILD = yes
endif

#
# Build global options
##############################################################################

##############################################################################
# Architecture or project specific options
#

# Stack size to be allocated to the Cortex-M process stack. This stack is
# the stack used by the main() thread.
ifeq ($(USE_PROCESS_STACKSIZE),)
USE_PROCESS_STACKSIZE = 0x400
endif

# Stack size to the allocated to the Cortex-M main/exceptions stack. This
# stack is used for processing interrupts and exceptions.
ifeq ($(USE_EXCEPTIONS_STACKSIZE),)
USE_EXCEPTIONS_STACKSIZE = 0x400
endif

# Enables the use of FPU (no, softfp, hard).
ifeq ($(USE_FPU),)
USE_FPU = no
endif

# FPU-related options.
ifeq ($(USE_FPU_OPT),)
USE_FPU_OPT = -mfloat-abi=$(USE_FPU) -mfpu=fpv4-sp-d16
endif

#
# Architecture or project specific options
##############################################################################

##############################################################################
# Project, target, sources and paths
#

# Define project name here
PROJECT = ch

# Target settings.
MCU = cortex-m4

# Imported source files and paths.
CHIBIOS := ../../../../ChibiOS
CHIBIOS_CONTRIB := $(CHIBIOS)/../ChibiOS-Contrib
CONFDIR := ./cfg
BUILDDIR := ./build
DEPDIR := ./.dep

# Licensing files.
include $(CHIBIOS)/os/license/license.mk
# Startup files.
include $(CHIBIOS_CONTRIB)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_efr32fg14p23x.mk
# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS_CONTRIB)/os/hal/ports/SILABS/EFR32FG14P/platform.mk
include $(CHIBIOS_CONTRIB)/os/hal/boards/SILABS_SLWSTK6061B/board.mk
include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk
# RTOS files (optional).
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMv7-M/compilers/GCC/mk/port.mk
# Auto-build files in ./source recursively.
include $(CHIBIOS)/tools/mk/autobuild.mk
# Other files (optional).
#include $(CHIBIOS)/os/test/test.mk
#include $(CHIBIOS)/test/rt/rt_test.mk
#include $(CHIBIOS)/test/oslib/oslib_test.mk

# Define linker script file here
LDSCRIPT= $(STARTUPLD_CONTRIB)/EFR32FG14PXF256.ld

# C sources that can be compiled in ARM or THUMB mode depending on the global
# setting.
CSRC = $(ALLCSRC) \
$(TESTSRC) \
main.c

# C++ sources that can be compiled in ARM or THUMB mode depending on the global
# setting.
CPPSRC = $(ALLCPPSRC)

# List ASM source files here.
ASMSRC = $(ALLASMSRC)

# List ASM with preprocessor source files here.
ASMXSRC = $(ALLXASMSRC)

# Inclusion directories.
INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC)

# Define C warning options here.
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes

# Define C++ warning options here.
CPPWARN = -Wall -Wextra -Wundef

#
# Project, target, sources and paths
##############################################################################

##############################################################################
# Start of user section
#

# List all user C define here, like -D_DEBUG=1
UDEFS = -DEFR32FG14P233F256GM48 \
-DEFR32_HFRCO_STARTUP_FREQ=19000000UL \
-DEFR32_LFXO_FREQ=32768UL \
-DEFR32_HFXO_FREQ=38400000UL \
-DCORTEX_ENABLE_WFI_IDLE

# Define ASM defines here
UADEFS = -DEFR32FG14P233F256GM48=1 \
-DEFR32_HFRCO_STARTUP_FREQ=19000000UL \
-DEFR32_LFXO_FREQ=32768UL \
-DEFR32_HFXO_FREQ=38400000UL \
-DCORTEX_ENABLE_WFI_IDLE

# List all user directories here
UINCDIR =

# List the user directory to look for the libraries here
ULIBDIR =

# List all user libraries here
ULIBS =

#
# End of user section
##############################################################################

##############################################################################
# Common rules
#

RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk
include $(RULESPATH)/arm-none-eabi.mk
include $(RULESPATH)/rules.mk

#
# Common rules
##############################################################################

##############################################################################
# Custom rules
#

#
# Custom rules
##############################################################################
Loading