From 073cd4560a5ba12f5853c8d22163102e3e0501b9 Mon Sep 17 00:00:00 2001 From: Khoi Hoang <57012152+khoih-prog@users.noreply.github.com> Date: Tue, 30 Aug 2022 22:26:07 -0400 Subject: [PATCH] Delete defines.h --- .../AsyncCustomHeader_STM32_LAN8720/defines.h | 133 ------------------ 1 file changed, 133 deletions(-) delete mode 100644 examples/STM32_LAN8720/AsyncCustomHeader_STM32_LAN8720/defines.h diff --git a/examples/STM32_LAN8720/AsyncCustomHeader_STM32_LAN8720/defines.h b/examples/STM32_LAN8720/AsyncCustomHeader_STM32_LAN8720/defines.h deleted file mode 100644 index 5679b5e..0000000 --- a/examples/STM32_LAN8720/AsyncCustomHeader_STM32_LAN8720/defines.h +++ /dev/null @@ -1,133 +0,0 @@ -/**************************************************************************************************************************** - defines.h - - Dead simple AsyncHTTPRequest for ESP8266, ESP32 and currently STM32 - - For ESP8266, ESP32 and STM32 with LAN8720 or built-in LAN8742A Ethernet (Nucleo-144, DISCOVERY, etc) - - AsyncHTTPRequest_Generic is a library for the ESP8266, ESP32 and currently STM32 run built-in Ethernet WebServer - - Based on and modified from asyncHTTPrequest Library (https://github.com/boblemaire/asyncHTTPrequest) - - Built by Khoi Hoang https://github.com/khoih-prog/AsyncHTTPRequest_Generic - Licensed under MIT license - - Copyright (C) <2018> - This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License - as published bythe Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License along with this program. If not, see . - *****************************************************************************************************************************/ -/* - Currently support - 1) STM32 boards with built-in Ethernet (to use USE_BUILTIN_ETHERNET = true) such as : - - Nucleo-144 (F429ZI, F767ZI) - - Discovery (STM32F746G-DISCOVERY) - - STM32 boards (STM32F/L/H/G/WB/MP1) with 32K+ Flash, with Built-in Ethernet, - - See How To Use Built-in Ethernet at (https://github.com/khoih-prog/EthernetWebServer_STM32/issues/1) - 2) STM32F/L/H/G/WB/MP1 boards (with 32+K Flash) running ENC28J60 shields (to use USE_BUILTIN_ETHERNET = false) - 3) STM32F/L/H/G/WB/MP1 boards (with 32+K Flash) running W5x00 shields -*/ - -#ifndef defines_h -#define defines_h - -#if !( defined(ARDUINO_BLACK_F407VE) || defined(ARDUINO_BLACK_F407VG) || defined(ARDUINO_BLACK_F407ZE) || defined(ARDUINO_BLACK_F407ZG) || \ - defined(ARDUINO_BLUE_F407VE_Mini) || defined(ARDUINO_DIYMORE_F407VGT) || defined(ARDUINO_FK407M1) || defined(ARDUINO_NUCLEO_F429ZI) || \ - defined(ARDUINO_DISCO_F746NG) || defined(ARDUINO_NUCLEO_F746ZG) || defined(ARDUINO_NUCLEO_F756ZG) || defined(ARDUINO_NUCLEO_H743ZI) ) - #error This code is designed to run on some STM32F407XX NUCLEO-F429ZI, STM32F746 and STM32F756 platform! Please check your Tools->Board setting. -#endif - -#define ASYNC_HTTP_DEBUG_PORT Serial - -// Use from 0 to 4. Higher number, more debugging messages and memory usage. -#define _ASYNC_HTTP_LOGLEVEL_ 1 - -#define USING_LAN8720 true - -#if defined(STM32F0) - #warning STM32F0 board selected - #define BOARD_TYPE "STM32F0" -#elif defined(STM32F1) - #warning STM32F1 board selected - #define BOARD_TYPE "STM32F1" -#elif defined(STM32F2) - #warning STM32F2 board selected - #define BOARD_TYPE "STM32F2" -#elif defined(STM32F3) - #warning STM32F3 board selected - #define BOARD_TYPE "STM32F3" -#elif defined(STM32F4) - #warning STM32F4 board selected - #define BOARD_TYPE "STM32F4" -#elif defined(STM32F7) - #warning STM32F7 board selected - #define BOARD_TYPE "STM32F7" -#elif defined(STM32L0) - #warning STM32L0 board selected - #define BOARD_TYPE "STM32L0" -#elif defined(STM32L1) - #warning STM32L1 board selected - #define BOARD_TYPE "STM32L1" -#elif defined(STM32L4) - #warning STM32L4 board selected - #define BOARD_TYPE "STM32L4" -#elif defined(STM32H7) - #warning STM32H7 board selected - #define BOARD_TYPE "STM32H7" -#elif defined(STM32G0) - #warning STM32G0 board selected - #define BOARD_TYPE "STM32G0" -#elif defined(STM32G4) - #warning STM32G4 board selected - #define BOARD_TYPE "STM32G4" -#elif defined(STM32WB) - #warning STM32WB board selected - #define BOARD_TYPE "STM32WB" -#elif defined(STM32MP1) - #warning STM32MP1 board selected - #define BOARD_TYPE "STM32MP1" -#else - #warning STM32 unknown board selected - #define BOARD_TYPE "STM32 Unknown" -#endif - -#ifndef BOARD_NAME - #define BOARD_NAME BOARD_TYPE -#endif - -#include -#include - -// Enter a MAC address and IP address for your controller below. -#define NUMBER_OF_MAC 20 - -byte mac[][NUMBER_OF_MAC] = -{ - { 0xDE, 0xAD, 0xBE, 0xEF, 0x32, 0x01 }, - { 0xDE, 0xAD, 0xBE, 0xEF, 0x32, 0x02 }, - { 0xDE, 0xAD, 0xBE, 0xEF, 0x32, 0x03 }, - { 0xDE, 0xAD, 0xBE, 0xEF, 0x32, 0x04 }, - { 0xDE, 0xAD, 0xBE, 0xEF, 0x32, 0x05 }, - { 0xDE, 0xAD, 0xBE, 0xEF, 0x32, 0x06 }, - { 0xDE, 0xAD, 0xBE, 0xEF, 0x32, 0x07 }, - { 0xDE, 0xAD, 0xBE, 0xEF, 0x32, 0x08 }, - { 0xDE, 0xAD, 0xBE, 0xEF, 0x32, 0x09 }, - { 0xDE, 0xAD, 0xBE, 0xEF, 0x32, 0x0A }, - { 0xDE, 0xAD, 0xBE, 0xEF, 0x32, 0x0B }, - { 0xDE, 0xAD, 0xBE, 0xEF, 0x32, 0x0C }, - { 0xDE, 0xAD, 0xBE, 0xEF, 0x32, 0x0D }, - { 0xDE, 0xAD, 0xBE, 0xEF, 0x32, 0x0E }, - { 0xDE, 0xAD, 0xBE, 0xEF, 0x32, 0x0F }, - { 0xDE, 0xAD, 0xBE, 0xEF, 0x32, 0x10 }, - { 0xDE, 0xAD, 0xBE, 0xEF, 0x32, 0x11 }, - { 0xDE, 0xAD, 0xBE, 0xEF, 0x32, 0x12 }, - { 0xDE, 0xAD, 0xBE, 0xEF, 0x32, 0x13 }, - { 0xDE, 0xAD, 0xBE, 0xEF, 0x32, 0x14 }, -}; - -// Select the static IP address according to your local network -IPAddress ip(192, 168, 2, 232); - -#endif //defines_h