stm32-community / stm32-enc28j60

An ENC28J60 (cheap ethernet module) library for STM32 projects
62 stars 26 forks source link
driver enc28j60 library mcu spi stm32

stm32-enc28j60

STM32 ENC28J60 ethernet driver, ported for CMake using stm32-cmake and stm32-base

An implementation of ENC28J60 driver for STM32 MCU. Tested only on sending UDP packets and only on MCUs STM32F091xC, STM32F030x6, STM32F103xB and STM32F401VE.

You need to copy stm32*_hal_conf.h of your MCU to inc folder to make it work.

If you need to use another STM32 MCU then don't forget to edit file inc/stm32includes.h.

How to use it

CMake

This project based on stm32-cmake, read it's readme and install, then set appropriate environment variables, see stm32-env-example.ps1

The project comes with a template of a cmake configuration, so that it builds as library that can be linked using CMake in other STM32 projects. Use variables defined in CMakeLists.txt to enable, disable and configure internet modules.

To make it work for your MCU family and model you must change MCU_FAMILY and MCU_MODEL CMake variables.

Examples