├── .gitignore ├── 00_m1284p_blink ├── .cproject ├── .project └── main.c ├── 00_m1284p_blink_make ├── .cproject ├── .gitignore ├── .project ├── Makefile ├── README.md └── main.c ├── 00_m644p_blink_make ├── .cproject ├── .gitignore ├── .project ├── Makefile ├── README.md └── main.c ├── 01_m1284p_bb00_minimum ├── .cproject ├── .project ├── main.c ├── uart_extd.c └── uart_extd.h ├── 02_m1284p_FATFS_Chang_tst ├── .cproject ├── .project ├── ff │ ├── ccsbcs.c.unicode │ ├── diskio.h │ ├── ff.c │ ├── ff.h │ ├── ffconf.h │ └── integer.h ├── main.c ├── mmc_avr.c ├── uart_extd.c └── uart_extd.h ├── 02_m1284p_FATFS_LFN_Chang_tst ├── .cproject ├── .project ├── ff │ ├── ccsbcs.c │ ├── diskio.h │ ├── ff.c │ ├── ff.h │ ├── ffconf.h │ └── integer.h ├── main.c ├── mmc_avr.c ├── uart_extd.c └── uart_extd.h ├── 03_m1284p_WIZNET_loopback_FATFS_template ├── .cproject ├── .project ├── Application │ └── loopback │ │ ├── loopback.c │ │ └── loopback.h ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── ff │ ├── ccsbcs.c.unicode │ ├── diskio.h │ ├── ff.c │ ├── ff.h │ ├── ffconf.h │ └── integer.h ├── globals.h ├── main.c ├── mmc_avr.c ├── spi.c ├── spi.h ├── uart_extd.c └── uart_extd.h ├── 03_m1284p_WIZNET_loopback_STATIC_IP ├── .cproject ├── .project ├── Application │ └── loopback │ │ ├── loopback.c │ │ └── loopback.h ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── globals.c ├── globals.h ├── main.c ├── spi.c ├── spi.h ├── uart_extd.c └── uart_extd.h ├── 04_m1284p_WIZNET_loopback_DHCP ├── .cproject ├── .project ├── Application │ └── loopback │ │ ├── loopback.c │ │ └── loopback.h ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── Internet │ └── DHCP │ │ ├── dhcp.c │ │ └── dhcp.h ├── globals.c ├── globals.h ├── main.c ├── spi.c ├── spi.h ├── uart_extd.c └── uart_extd.h ├── 05_m1284p_WIZNET_DNS_client ├── .cproject ├── .project ├── Application │ └── loopback │ │ ├── loopback.c │ │ └── loopback.h ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── Internet │ └── DNS │ │ ├── dns.c │ │ └── dns.h ├── main.c ├── spi.c ├── spi.h ├── uart_extd.c └── uart_extd.h ├── 06_m1284p_WIZNET_DNS_SNTP_client ├── .cproject ├── .project ├── Application │ └── loopback │ │ ├── loopback.c │ │ └── loopback.h ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── Internet │ ├── DNS │ │ ├── dns.c │ │ └── dns.h │ └── SNTP │ │ ├── sntp.c │ │ └── sntp.h ├── main.c ├── spi.c ├── spi.h ├── uart_extd.c └── uart_extd.h ├── 07_m1284p_WIZNET_telnets_basic ├── .cproject ├── .project ├── Application │ ├── loopback │ │ ├── loopback.c │ │ └── loopback.h │ └── telnet │ │ ├── telnet.c │ │ └── telnet.h ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── globals.h ├── main.c ├── spi.c ├── spi.h ├── uart_extd.c └── uart_extd.h ├── 08_m1284p_WIZNET_ICMP_aka_ping ├── .cproject ├── .project ├── Application │ ├── PING │ │ ├── ping.c │ │ └── ping.h │ └── loopback │ │ ├── loopback.c │ │ └── loopback.h ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── main.c ├── spi.c ├── spi.h ├── uart_extd.c └── uart_extd.h ├── 09_m1284p_WIZNET_simple_webserver ├── .cproject ├── .project ├── Application │ ├── loopback │ │ ├── loopback.c │ │ └── loopback.h │ └── webserver_simple │ │ ├── webpages.h │ │ ├── webserver_simple.c │ │ └── webserver_simple.h ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── globals.h ├── index_wiznetweb.html ├── main.c ├── spi.c ├── spi.h ├── uart_extd.c └── uart_extd.h ├── 10_m1284p_WIZNET_HTTPServer_RAM_pages ├── .cproject ├── .project ├── Application │ ├── loopback │ │ ├── loopback.c │ │ └── loopback.h │ └── webserver_simple │ │ ├── webpages.h │ │ ├── webserver_simple.c │ │ └── webserver_simple.h ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── Internet │ └── httpServer │ │ ├── httpParser.c │ │ ├── httpParser.h │ │ ├── httpServer.c │ │ ├── httpServer.h │ │ ├── httpUtil.c │ │ └── httpUtil.h ├── globals.h ├── main.c ├── spi.c ├── spi.h ├── uart_extd.c ├── uart_extd.h ├── userHandler.c ├── userHandler.h └── webpage.h ├── 11_m1284p_WIZNET_HTTPServer_FLASH_pages ├── .cproject ├── .project ├── Application │ ├── loopback │ │ ├── loopback.c │ │ └── loopback.h │ └── webserver_simple │ │ ├── webpages.h │ │ ├── webserver_simple.c │ │ └── webserver_simple.h ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── Internet │ └── httpServer_avr │ │ ├── httpParser.c │ │ ├── httpParser.h │ │ ├── httpServer.c │ │ ├── httpServer.h │ │ ├── httpUtil.c │ │ └── httpUtil.h ├── WWW │ ├── bin2hex_v2.py │ ├── brd_wiznet.png │ ├── brd_wiznet_png.h │ ├── favicon.ico │ ├── favicon_ico.h │ ├── m1284p.png │ └── m1284p_png.h ├── clean.bat ├── globals.h ├── main.c ├── spi.c ├── spi.h ├── uart_extd.c ├── uart_extd.h ├── userHandler.c ├── userHandler.h └── webpage.h ├── 11_m644p_WIZNET_HTTPServer_FLASH_pages ├── .cproject ├── .project ├── Application │ ├── loopback │ │ ├── loopback.c │ │ └── loopback.h │ └── webserver_simple │ │ ├── webpages.h │ │ ├── webserver_simple.c │ │ └── webserver_simple.h ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── Internet │ └── httpServer_avr │ │ ├── httpParser.c │ │ ├── httpParser.h │ │ ├── httpServer.c │ │ ├── httpServer.h │ │ ├── httpUtil.c │ │ └── httpUtil.h ├── WWW │ ├── bin2hex_v2.py │ ├── brd_wiznet.png │ ├── brd_wiznet_png.h │ ├── favicon.ico │ ├── favicon_ico.h │ ├── m1284p.png │ └── m1284p_png.h ├── clean.bat ├── globals.h ├── main.c ├── spi.c ├── spi.h ├── uart_extd.c ├── uart_extd.h ├── userHandler.c ├── userHandler.h └── webpage.h ├── 12_m1284p_WIZNET_HTTPServer_SDCARD_pages ├── .cproject ├── .project ├── Application │ └── loopback │ │ ├── loopback.c │ │ └── loopback.h ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── Internet │ └── httpServer_avr │ │ ├── httpParser.c │ │ ├── httpParser.h │ │ ├── httpServer.c │ │ ├── httpServer.h │ │ ├── httpUtil.c │ │ └── httpUtil.h ├── WWW │ ├── ain.htm │ ├── ain.js │ ├── ain_gaug.htm │ ├── ain_gaug.js │ ├── ajax.js │ ├── bin2hex_v2.py │ ├── brd_wiz.png │ ├── dio.htm │ ├── dio.js │ ├── favicon.ico │ ├── img.htm │ ├── index.htm │ ├── info.htm │ ├── info.js │ ├── m1284p.png │ ├── netinfo.htm │ └── netinfo.js ├── clean.bat ├── ff │ ├── ccsbcs.c.unicode │ ├── diskio.h │ ├── ff.c │ ├── ff.h │ ├── ffconf.h │ └── integer.h ├── globals.h ├── main.c ├── mmc_avr.c ├── spi.c ├── spi.h ├── uart_extd.c ├── uart_extd.h ├── userHandler.c └── userHandler.h ├── 12_m644p_WIZNET_HTTPServer_SDCARD_pages ├── .cproject ├── .project ├── Application │ └── loopback │ │ ├── loopback.c │ │ └── loopback.h ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── Internet │ └── httpServer_avr │ │ ├── httpParser.c │ │ ├── httpParser.h │ │ ├── httpServer.c │ │ ├── httpServer.h │ │ ├── httpUtil.c │ │ └── httpUtil.h ├── WWW │ ├── ain.htm │ ├── ain.js │ ├── ain_gaug.htm │ ├── ain_gaug.js │ ├── ajax.js │ ├── bin2hex_v2.py │ ├── brd_wiz.png │ ├── dio.htm │ ├── dio.js │ ├── favicon.ico │ ├── img.htm │ ├── index.htm │ ├── info.htm │ ├── info.js │ ├── m1284p.png │ ├── netinfo.htm │ └── netinfo.js ├── clean.bat ├── ff │ ├── ccsbcs.c.unicode │ ├── diskio.h │ ├── ff.c │ ├── ff.h │ ├── ffconf.h │ └── integer.h ├── globals.h ├── main.c ├── mmc_avr.c ├── spi.c ├── spi.h ├── uart_extd.c ├── uart_extd.h ├── userHandler.c └── userHandler.h ├── 14_m1284p_WIZNET_FTPC_FATFS ├── .cproject ├── .project ├── Application │ └── loopback │ │ ├── loopback.c │ │ └── loopback.h ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── Internet │ └── FTPClient_avr │ │ ├── ftpc.c │ │ └── ftpc.h ├── ff │ ├── ccsbcs.c.unicode │ ├── diskio.h │ ├── ff.c │ ├── ff.h │ ├── ffconf.h │ └── integer.h ├── globals.h ├── main.c ├── mmc_avr.c ├── spi.c ├── spi.h ├── uart_extd.c └── uart_extd.h ├── 15_m1284p_WIZNET_FTPD_FATFS ├── .cproject ├── .project ├── Application │ └── loopback │ │ ├── loopback.c │ │ └── loopback.h ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── Internet │ └── FTPServer_avr │ │ ├── ftpd.c │ │ ├── ftpd.h │ │ └── stdio_private.h ├── ff │ ├── ccsbcs.c.unicode │ ├── diskio.h │ ├── ff.c │ ├── ff.h │ ├── ffconf.h │ └── integer.h ├── globals.h ├── main.c ├── mmc_avr.c ├── spi.c ├── spi.h ├── uart_extd.c └── uart_extd.h ├── 16_m1284p_WIZNET_HTTPD_FTPD_FATFS_SDCARD ├── .cproject ├── .project ├── Application │ └── loopback │ │ ├── loopback.c │ │ └── loopback.h ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── Internet │ ├── FTPServer_avr │ │ ├── ftpd.c │ │ ├── ftpd.h │ │ └── stdio_private.h │ └── httpServer_avr │ │ ├── httpParser.c │ │ ├── httpParser.h │ │ ├── httpServer.c │ │ ├── httpServer.h │ │ ├── httpUtil.c │ │ └── httpUtil.h ├── WWW │ ├── ain.htm │ ├── ain.js │ ├── ain_gaug.htm │ ├── ain_gaug.js │ ├── ajax.js │ ├── brd_wiz.png │ ├── dio.htm │ ├── dio.js │ ├── favicon.ico │ ├── img.htm │ ├── index.htm │ ├── info.htm │ ├── info.js │ ├── m1284p.png │ ├── netinfo.htm │ └── netinfo.js ├── ff │ ├── ccsbcs.c.unicode │ ├── diskio.h │ ├── ff.c │ ├── ff.h │ ├── ffconf.h │ └── integer.h ├── globals.h ├── main.c ├── mmc_avr.c ├── spi.c ├── spi.h ├── uart_extd.c ├── uart_extd.h ├── userHandler.c └── userHandler.h ├── 17_m1284p_BTLD_WIZNET_HTTPD_FTPD_FATFS_SDCARD ├── .cproject ├── .project ├── Application │ └── loopback │ │ ├── loopback.c │ │ └── loopback.h ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── Internet │ ├── FTPServer_avr │ │ ├── ftpd.c │ │ ├── ftpd.h │ │ └── stdio_private.h │ └── httpServer_avr │ │ ├── httpParser.c │ │ ├── httpParser.h │ │ ├── httpServer.c │ │ ├── httpServer.h │ │ ├── httpUtil.c │ │ └── httpUtil.h ├── WWW │ ├── ain.htm │ ├── ain.js │ ├── ain_gaug.htm │ ├── ain_gaug.js │ ├── ajax.js │ ├── brd_wiz.png │ ├── dio.htm │ ├── dio.js │ ├── favicon.ico │ ├── img.htm │ ├── index.htm │ ├── info.htm │ ├── info.js │ ├── m1284p.png │ ├── netinfo.htm │ └── netinfo.js ├── ff │ ├── ccsbcs.c.unicode │ ├── diskio.h │ ├── ff.c │ ├── ff.h │ ├── ffconf.h │ └── integer.h ├── globals.c ├── globals.h ├── main.c ├── mmc_avr.c ├── spi.c ├── spi.h ├── uart_extd.c ├── uart_extd.h ├── userHandler.c └── userHandler.h ├── 18_m1284p_BTLD_WIZNET_LOOPBACK_FTPD_FATFS_SDCARD ├── .cproject ├── .project ├── 1284BOOT.BIN.bootloaded ├── 1284BOOT.BIN.bootloaded.readme ├── Application │ └── loopback │ │ ├── loopback.c │ │ └── loopback.h ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── Internet │ └── FTPServer_avr │ │ ├── ftpd.c │ │ ├── ftpd.h │ │ └── stdio_private.h ├── ff │ ├── ccsbcs.c.unicode │ ├── diskio.h │ ├── ff.c │ ├── ff.h │ ├── ffconf.h │ └── integer.h ├── globals.c ├── globals.h ├── main.c ├── mmc_avr.c ├── spi.c ├── spi.h ├── uart_extd.c └── uart_extd.h ├── 18_m644p_BTLD_WIZNET_LOOPBACK_FTPD_FATFS_SDCARD ├── .cproject ├── .project ├── 644BOOT.BIN.bootloaded ├── 644BOOT.BIN.bootloaded.readme ├── Application │ └── loopback │ │ ├── loopback.c │ │ └── loopback.h ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── Internet │ └── FTPServer_avr │ │ ├── ftpd.c │ │ ├── ftpd.h │ │ └── stdio_private.h ├── ff │ ├── ccsbcs.c.unicode │ ├── diskio.h │ ├── ff.c │ ├── ff.h │ ├── ffconf.h │ └── integer.h ├── globals.c ├── globals.h ├── main.c ├── mmc_avr.c ├── spi.c ├── spi.h ├── uart_extd.c └── uart_extd.h ├── 19_m1284p_WIZNET_blynk ├── .cproject ├── .project ├── Application │ └── Blynk │ │ ├── blynk.c │ │ ├── blynk.h │ │ ├── blynkDependency.c │ │ └── blynkDependency.h ├── Blynk_application │ ├── Check out m1284 + W5500 app I've made.txt │ ├── Screenshot_2019-03-18-13-37-20-278_cc.blynk.png │ ├── app1_m1284p_and_W5500_QR.png │ └── app2_m1284p_and_W5500_QR.png ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── Internet │ └── DNS │ │ ├── dns.c │ │ └── dns.h ├── README.md ├── git_goodies │ └── git_usefull_commands.txt ├── globals.c ├── globals.h ├── main.c ├── spi.c ├── spi.h ├── uart_extd.c └── uart_extd.h ├── 20_m1284p_BTLD_WIZNET_BLYNK_FTPD_FATFS_SDCARD ├── .cproject ├── .project ├── 1284BOOT.BIN.bootloaded ├── 1284BOOT.BIN.bootloaded.readme ├── Application │ ├── Blynk │ │ ├── blynk.c │ │ ├── blynk.h │ │ ├── blynkDependency.c │ │ └── blynkDependency.h │ └── loopback │ │ ├── loopback.c │ │ └── loopback.h ├── Blynk_application │ ├── Check out m1284 + W5500 app I've made.txt │ ├── Screenshot_2019-03-18-13-37-20-278_cc.blynk.png │ ├── app1_m1284p_and_W5500_QR.png │ └── app2_m1284p_and_W5500_QR.png ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── Internet │ ├── DNS │ │ ├── dns.c │ │ └── dns.h │ └── FTPServer_avr │ │ ├── ftpd.c │ │ ├── ftpd.h │ │ └── stdio_private.h ├── ff │ ├── ccsbcs.c.unicode │ ├── diskio.h │ ├── ff.c │ ├── ff.h │ ├── ffconf.h │ └── integer.h ├── globals.c ├── globals.h ├── main.c ├── mmc_avr.c ├── spi.c ├── spi.h ├── uart_extd.c └── uart_extd.h ├── 21_m1284p_WIZNET_TFTP_client_FATFS ├── .cproject ├── .project ├── Application │ └── loopback │ │ ├── loopback.c │ │ └── loopback.h ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── Internet │ └── TFTP │ │ ├── netutil.c │ │ ├── netutil.h │ │ ├── tftp.c │ │ └── tftp.h ├── ff │ ├── ccsbcs.c.unicode │ ├── diskio.h │ ├── ff.c │ ├── ff.h │ ├── ffconf.h │ └── integer.h ├── globals.c ├── globals.h ├── main.c ├── mmc_avr.c ├── spi.c ├── spi.h ├── test_patterns │ ├── ff_lfn.txt │ ├── test.txt │ └── tftpd32.ini ├── uart_extd.c └── uart_extd.h ├── 22_m1284p_WIZNET_MQTT ├── .cproject ├── .project ├── Application │ └── loopback │ │ ├── loopback.c │ │ └── loopback.h ├── Ethernet │ ├── W5500 │ │ ├── w5500.c │ │ └── w5500.h │ ├── socket.c │ ├── socket.h │ ├── wizchip_conf.c │ └── wizchip_conf.h ├── Internet │ └── MQTT │ │ ├── MQTTClient.c │ │ ├── MQTTClient.h │ │ ├── MQTTPacket │ │ └── src │ │ │ ├── MQTTConnect.h │ │ │ ├── MQTTConnectClient.c │ │ │ ├── MQTTConnectServer.c │ │ │ ├── MQTTDeserializePublish.c │ │ │ ├── MQTTFormat.c │ │ │ ├── MQTTFormat.h │ │ │ ├── MQTTPacket.c │ │ │ ├── MQTTPacket.h │ │ │ ├── MQTTPublish.h │ │ │ ├── MQTTSerializePublish.c │ │ │ ├── MQTTSubscribe.h │ │ │ ├── MQTTSubscribeClient.c │ │ │ ├── MQTTSubscribeServer.c │ │ │ ├── MQTTUnsubscribe.h │ │ │ ├── MQTTUnsubscribeClient.c │ │ │ ├── MQTTUnsubscribeServer.c │ │ │ └── StackTrace.h │ │ ├── mqtt_interface.c │ │ └── mqtt_interface.h ├── globals.c ├── globals.h ├── main.c ├── spi.c ├── spi.h ├── uart_extd.c └── uart_extd.h ├── KiCad_M644_breakout_v1.2d ├── .gitignore ├── 3d_terminal_blocks │ ├── 300_2_5.wrl │ └── 300_2_5_wrl_settings.png ├── M644_breakout_v1.2d-a_factory_gerbers │ ├── M644_breakout_v1.2d-B.Mask.gbr │ ├── M644_breakout_v1.2d-B.SilkS.gbr │ ├── M644_breakout_v1.2d-Bottom.gbr │ ├── M644_breakout_v1.2d-Edge.Cuts.gbr │ ├── M644_breakout_v1.2d-F.Mask.gbr │ ├── M644_breakout_v1.2d-F.SilkS.gbr │ ├── M644_breakout_v1.2d-NPTH.drl │ ├── M644_breakout_v1.2d-PTH.drl │ └── M644_breakout_v1.2d-Top.gbr ├── M644_breakout_v1.2d-eagle-import.dcm ├── M644_breakout_v1.2d.kicad_pcb ├── M644_breakout_v1.2d.pretty │ ├── 1X01.kicad_mod │ ├── 1X09-BIG.kicad_mod │ ├── 1X12.kicad_mod │ ├── C0805H.kicad_mod │ ├── CHIPLED_1206.kicad_mod │ ├── DO214AA.kicad_mod │ ├── D_7343-31R.kicad_mod │ ├── L3216C.kicad_mod │ ├── LED3MM.kicad_mod │ ├── ML6.kicad_mod │ ├── QS.kicad_mod │ ├── R0805.kicad_mod │ ├── R0805H.kicad_mod │ ├── SMBJ.kicad_mod │ ├── SW_TACT_SMALL.kicad_mod │ ├── TO220V.kicad_mod │ ├── TQFP44.kicad_mod │ └── W237-102.kicad_mod ├── M644_breakout_v1.2d.pro ├── M644_breakout_v1.2d.sch ├── M644_breakout_v1.2d_factory_gerbers │ ├── M644_breakout_v1.2d.GBL │ ├── M644_breakout_v1.2d.GBS │ ├── M644_breakout_v1.2d.GTL │ ├── M644_breakout_v1.2d.GTO │ ├── M644_breakout_v1.2d.GTS │ ├── M644_breakout_v1.2d.TXT │ ├── M644_breakout_v1.2d.do │ └── M644_breakout_v1.2d.dri ├── M644_breakout_v1.2d_pinmap.kicad_pcb ├── M644_breakout_v1.2d_pinmap.pro ├── Pictures │ ├── M644_breakout_v1.2d-a_bottom.png │ ├── M644_breakout_v1.2d-a_bottom_tiny.png │ ├── M644_breakout_v1.2d-a_top.png │ ├── M644_breakout_v1.2d-a_top_tiny.png │ ├── M644_breakout_v1.2d_bottom.png │ ├── M644_breakout_v1.2d_pinmap.png │ ├── M644_breakout_v1.2d_pinmap_tiny.png │ ├── M644_breakout_v1.2d_schematic.png │ ├── M644_breakout_v1.2d_top.png │ ├── M644_connection_schematic.png │ └── tested_system_photo_01.jpg ├── README.md ├── fp-lib-table └── sym-lib-table ├── README.md ├── README.ru.md ├── bootloader_zevero_sd_m1284p_make ├── .cproject ├── .gitignore ├── .project ├── LICENSE ├── Makefile ├── README.md ├── asmfunc.S ├── bootloader_zevero_sd_m1284p.hex.bootloader ├── diskio.c ├── m1284p_zevero_sd_m1284p_fuses.txt ├── main.c ├── pff │ ├── doc │ │ ├── 00index_p.html │ │ ├── css_e.css │ │ ├── css_p.css │ │ ├── img │ │ │ ├── layers3.png │ │ │ └── rwtest3.png │ │ └── pf │ │ │ ├── appnote.html │ │ │ ├── dinit.html │ │ │ ├── dreadp.html │ │ │ ├── dwritep.html │ │ │ ├── filename.html │ │ │ ├── lseek.html │ │ │ ├── mount.html │ │ │ ├── open.html │ │ │ ├── opendir.html │ │ │ ├── read.html │ │ │ ├── readdir.html │ │ │ ├── sdir.html │ │ │ ├── sfatfs.html │ │ │ ├── sfileinfo.html │ │ │ └── write.html │ └── src │ │ ├── 00readme.txt │ │ ├── diskio.c │ │ ├── diskio.h │ │ ├── integer.h │ │ ├── pff.c │ │ ├── pff.h │ │ └── pffconf.h ├── spi_pins.h └── uart │ ├── uart.c │ └── uart.h └── bootloader_zevero_sd_m644p_make ├── .cproject ├── .gitignore ├── .project ├── LICENSE ├── Makefile ├── README.md ├── asmfunc.S ├── bootloader_zevero_sd_m644p.hex.bootloader ├── diskio.c ├── m644p_zevero_sd_m644p_fuses.txt ├── main.c ├── pff ├── doc │ ├── 00index_p.html │ ├── css_e.css │ ├── css_p.css │ ├── img │ │ ├── layers3.png │ │ └── rwtest3.png │ └── pf │ │ ├── appnote.html │ │ ├── dinit.html │ │ ├── dreadp.html │ │ ├── dwritep.html │ │ ├── filename.html │ │ ├── lseek.html │ │ ├── mount.html │ │ ├── open.html │ │ ├── opendir.html │ │ ├── read.html │ │ ├── readdir.html │ │ ├── sdir.html │ │ ├── sfatfs.html │ │ ├── sfileinfo.html │ │ └── write.html └── src │ ├── 00readme.txt │ ├── diskio.c │ ├── diskio.h │ ├── integer.h │ ├── pff.c │ ├── pff.h │ └── pffconf.h ├── spi_pins.h └── uart ├── uart.c └── uart.h /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Object files 9 | *.o 10 | *.ko 11 | *.obj 12 | *.elf 13 | 14 | # Libraries 15 | *.lib 16 | *.a 17 | 18 | # Shared objects (inc. Windows DLLs) 19 | *.dll 20 | *.so 21 | *.so.* 22 | *.dylib 23 | 24 | # Executables 25 | *.exe 26 | *.out 27 | *.app 28 | *.i*86 29 | *.x86_64 30 | *.hex 31 | *.HEX 32 | *.bin 33 | *.BIN 34 | 35 | # Temporary GCC build 36 | *.eep 37 | *.lss 38 | *.lst 39 | *.map 40 | *.sym 41 | Release/ 42 | /.dep 43 | 44 | # Eclipse specific 45 | .settings/ 46 | 47 | # Wiznet not used here 48 | W5100/ 49 | W5100S/ 50 | W5200/ 51 | W5300/ 52 | Socket_APIs_V3.0.3.chm 53 | -------------------------------------------------------------------------------- /00_m1284p_blink/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | 00_m1284p_blink 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 10 | clean,full,incremental, 11 | 12 | 13 | 14 | 15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 16 | full,incremental, 17 | 18 | 19 | 20 | 21 | 22 | org.eclipse.cdt.core.cnature 23 | org.eclipse.cdt.core.ccnature 24 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 25 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 26 | de.innot.avreclipse.core.avrnature 27 | 28 | 29 | -------------------------------------------------------------------------------- /00_m1284p_blink_make/.gitignore: -------------------------------------------------------------------------------- 1 | .dep/ -------------------------------------------------------------------------------- /00_m1284p_blink_make/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | 00_m1284p_blink_make 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 10 | clean,full,incremental, 11 | 12 | 13 | 14 | 15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 16 | full,incremental, 17 | 18 | 19 | 20 | 21 | 22 | org.eclipse.cdt.core.cnature 23 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 24 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 25 | de.innot.avreclipse.core.avrnature 26 | 27 | 28 | -------------------------------------------------------------------------------- /00_m1284p_blink_make/README.md: -------------------------------------------------------------------------------- 1 | Tiny AUX project to test Bootloader Zevero for AtMEGA 1284p 2 | -------------------------------------------------------------------------------- /00_m1284p_blink_make/main.c: -------------------------------------------------------------------------------- 1 | /* 2 | * main.c 3 | * 4 | * Created on: 22 нояб. 2018 г. 5 | * Author: maxx 6 | */ 7 | #include 8 | #include 9 | /* 10 | * m1284p minimum template, with one button & one led 11 | */ 12 | 13 | //M644P/M1284p Users LEDS: 14 | //LED1/PORTC.4- m644p/m1284p maxxir 15 | #define led1_conf() DDRC |= (1< 2 | 3 | 00_m644p_blink_make 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 10 | clean,full,incremental, 11 | 12 | 13 | 14 | 15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 16 | full,incremental, 17 | 18 | 19 | 20 | 21 | 22 | org.eclipse.cdt.core.cnature 23 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 24 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 25 | de.innot.avreclipse.core.avrnature 26 | 27 | 28 | -------------------------------------------------------------------------------- /00_m644p_blink_make/README.md: -------------------------------------------------------------------------------- 1 | Tiny AUX project to test Bootloader Zevero for AtMEGA 644p 2 | -------------------------------------------------------------------------------- /00_m644p_blink_make/main.c: -------------------------------------------------------------------------------- 1 | /* 2 | * main.c 3 | * 4 | * Created on: 22 нояб. 2018 г. 5 | * Author: maxx 6 | */ 7 | #include 8 | #include 9 | /* 10 | * m1284p minimum template, with one button & one led 11 | */ 12 | 13 | //M644P/M1284p Users LEDS: 14 | //LED1/PORTC.4- m644p/m1284p maxxir 15 | #define led1_conf() DDRC |= (1< 2 | 3 | 01_m1284p_bb00_minimum 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 10 | clean,full,incremental, 11 | 12 | 13 | 14 | 15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 16 | full,incremental, 17 | 18 | 19 | 20 | 21 | 22 | org.eclipse.cdt.core.cnature 23 | org.eclipse.cdt.core.ccnature 24 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 25 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 26 | de.innot.avreclipse.core.avrnature 27 | 28 | 29 | -------------------------------------------------------------------------------- /02_m1284p_FATFS_Chang_tst/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | 02_m1284p_FATFS_Chang_tst 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 10 | clean,full,incremental, 11 | 12 | 13 | 14 | 15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 16 | full,incremental, 17 | 18 | 19 | 20 | 21 | 22 | org.eclipse.cdt.core.cnature 23 | org.eclipse.cdt.core.ccnature 24 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 25 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 26 | de.innot.avreclipse.core.avrnature 27 | 28 | 29 | -------------------------------------------------------------------------------- /02_m1284p_FATFS_Chang_tst/ff/integer.h: -------------------------------------------------------------------------------- 1 | /*-------------------------------------------*/ 2 | /* Integer type definitions for FatFs module */ 3 | /*-------------------------------------------*/ 4 | 5 | #ifndef _FF_INTEGER 6 | #define _FF_INTEGER 7 | 8 | #ifdef _WIN32 /* FatFs development platform */ 9 | 10 | #include 11 | #include 12 | 13 | #else /* Embedded platform */ 14 | 15 | /* This type MUST be 8 bit */ 16 | typedef unsigned char BYTE; 17 | 18 | /* These types MUST be 16 bit */ 19 | typedef short SHORT; 20 | typedef unsigned short WORD; 21 | typedef unsigned short WCHAR; 22 | 23 | /* These types MUST be 16 bit or 32 bit */ 24 | typedef int INT; 25 | typedef unsigned int UINT; 26 | 27 | /* These types MUST be 32 bit */ 28 | typedef long LONG; 29 | typedef unsigned long DWORD; 30 | 31 | #endif 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /02_m1284p_FATFS_LFN_Chang_tst/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | 02_m1284p_FATFS_LFN_Chang_tst 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 10 | clean,full,incremental, 11 | 12 | 13 | 14 | 15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 16 | full,incremental, 17 | 18 | 19 | 20 | 21 | 22 | org.eclipse.cdt.core.cnature 23 | org.eclipse.cdt.core.ccnature 24 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 25 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 26 | de.innot.avreclipse.core.avrnature 27 | 28 | 29 | -------------------------------------------------------------------------------- /02_m1284p_FATFS_LFN_Chang_tst/ff/integer.h: -------------------------------------------------------------------------------- 1 | /*-------------------------------------------*/ 2 | /* Integer type definitions for FatFs module */ 3 | /*-------------------------------------------*/ 4 | 5 | #ifndef _FF_INTEGER 6 | #define _FF_INTEGER 7 | 8 | #ifdef _WIN32 /* FatFs development platform */ 9 | 10 | #include 11 | #include 12 | 13 | #else /* Embedded platform */ 14 | 15 | /* This type MUST be 8 bit */ 16 | typedef unsigned char BYTE; 17 | 18 | /* These types MUST be 16 bit */ 19 | typedef short SHORT; 20 | typedef unsigned short WORD; 21 | typedef unsigned short WCHAR; 22 | 23 | /* These types MUST be 16 bit or 32 bit */ 24 | typedef int INT; 25 | typedef unsigned int UINT; 26 | 27 | /* These types MUST be 32 bit */ 28 | typedef long LONG; 29 | typedef unsigned long DWORD; 30 | 31 | #endif 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /03_m1284p_WIZNET_loopback_FATFS_template/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | 03_m1284p_WIZNET_loopback_FATFS_template 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 10 | clean,full,incremental, 11 | 12 | 13 | 14 | 15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 16 | full,incremental, 17 | 18 | 19 | 20 | 21 | 22 | org.eclipse.cdt.core.cnature 23 | org.eclipse.cdt.core.ccnature 24 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 25 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 26 | de.innot.avreclipse.core.avrnature 27 | 28 | 29 | -------------------------------------------------------------------------------- /03_m1284p_WIZNET_loopback_FATFS_template/Application/loopback/loopback.h: -------------------------------------------------------------------------------- 1 | #ifndef _LOOPBACK_H_ 2 | #define _LOOPBACK_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include 9 | 10 | /* Loopback test debug message printout enable */ 11 | #define _LOOPBACK_DEBUG_ 12 | 13 | /* DATA_BUF_SIZE define for Loopback example */ 14 | #ifndef DATA_BUF_SIZE 15 | #define DATA_BUF_SIZE 2048 16 | #endif 17 | 18 | /************************/ 19 | /* Select LOOPBACK_MODE */ 20 | /************************/ 21 | #define LOOPBACK_MAIN_NOBLOCK 0 22 | #define LOOPBACK_MODE LOOPBACK_MAIN_NOBLOCK 23 | 24 | 25 | /* TCP server Loopback test example */ 26 | int32_t loopback_tcps(uint8_t sn, uint8_t* buf, uint16_t port); 27 | 28 | /* TCP client Loopback test example */ 29 | int32_t loopback_tcpc(uint8_t sn, uint8_t* buf, uint8_t* destip, uint16_t destport); 30 | 31 | /* UDP Loopback test example */ 32 | int32_t loopback_udps(uint8_t sn, uint8_t* buf, uint16_t port); 33 | 34 | #ifdef __cplusplus 35 | } 36 | #endif 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /03_m1284p_WIZNET_loopback_FATFS_template/ff/integer.h: -------------------------------------------------------------------------------- 1 | /*-------------------------------------------*/ 2 | /* Integer type definitions for FatFs module */ 3 | /*-------------------------------------------*/ 4 | 5 | #ifndef _FF_INTEGER 6 | #define _FF_INTEGER 7 | 8 | #ifdef _WIN32 /* FatFs development platform */ 9 | 10 | #include 11 | #include 12 | 13 | #else /* Embedded platform */ 14 | 15 | /* This type MUST be 8 bit */ 16 | typedef unsigned char BYTE; 17 | 18 | /* These types MUST be 16 bit */ 19 | typedef short SHORT; 20 | typedef unsigned short WORD; 21 | typedef unsigned short WCHAR; 22 | 23 | /* These types MUST be 16 bit or 32 bit */ 24 | typedef int INT; 25 | typedef unsigned int UINT; 26 | 27 | /* These types MUST be 32 bit */ 28 | typedef long LONG; 29 | typedef unsigned long DWORD; 30 | 31 | #endif 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /03_m1284p_WIZNET_loopback_STATIC_IP/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | 03_m1284p_WIZNET_loopback_STATIC_IP 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 10 | clean,full,incremental, 11 | 12 | 13 | 14 | 15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 16 | full,incremental, 17 | 18 | 19 | 20 | 21 | 22 | org.eclipse.cdt.core.cnature 23 | org.eclipse.cdt.core.ccnature 24 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 25 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 26 | de.innot.avreclipse.core.avrnature 27 | 28 | 29 | -------------------------------------------------------------------------------- /03_m1284p_WIZNET_loopback_STATIC_IP/Application/loopback/loopback.h: -------------------------------------------------------------------------------- 1 | #ifndef _LOOPBACK_H_ 2 | #define _LOOPBACK_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include 9 | #include 10 | #include "../../globals.h" 11 | 12 | /* Loopback test debug message printout enable */ 13 | #define _LOOPBACK_DEBUG_ 14 | 15 | /* DATA_BUF_SIZE define for Loopback example */ 16 | #ifndef LOOPBACK_DATA_BUF_SIZE 17 | #define LOOPBACK_DATA_BUF_SIZE 512 18 | #endif 19 | 20 | /************************/ 21 | /* Select LOOPBACK_MODE */ 22 | /************************/ 23 | #define LOOPBACK_MAIN_NOBLOCK 0 24 | #define LOOPBACK_MODE LOOPBACK_MAIN_NOBLOCK 25 | 26 | 27 | /* TCP server Loopback test example */ 28 | int32_t loopback_tcps(uint8_t sn, uint8_t* buf, uint16_t port); 29 | 30 | /* TCP client Loopback test example */ 31 | int32_t loopback_tcpc(uint8_t sn, uint8_t* buf, uint8_t* destip, uint16_t destport); 32 | 33 | /* UDP Loopback test example */ 34 | int32_t loopback_udps(uint8_t sn, uint8_t* buf, uint16_t port); 35 | 36 | #ifdef __cplusplus 37 | } 38 | #endif 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /03_m1284p_WIZNET_loopback_STATIC_IP/globals.c: -------------------------------------------------------------------------------- 1 | /* 2 | * globals.c 3 | * 4 | * Created on: 07 февр. 2019 г. 5 | * Author: maxx 6 | */ 7 | #include "globals.h" 8 | 9 | #ifdef IP_WORK 10 | //NIC metrics for WORK PC 11 | wiz_NetInfo netInfo = { .mac = {0x00, 0x08, 0xdc, 0xab, 0xcd, 0xef}, // Mac address 12 | .ip = {192, 168, 0, 199}, // IP address 13 | .sn = {255, 255, 255, 0}, // Subnet mask 14 | .dns = {8,8,8,8}, // DNS address (google dns) 15 | .gw = {192, 168, 0, 1}, // Gateway address 16 | .dhcp = NETINFO_STATIC}; //Static IP configuration 17 | #else 18 | //NIC metrics for another PC (second IP configuration) 19 | wiz_NetInfo netInfo = { .mac = {0x00, 0x08, 0xdc, 0xab, 0xcd, 0xef}, // Mac address 20 | .ip = {192, 168, 1, 199}, // IP address 21 | .sn = {255, 255, 255, 0}, // Subnet mask 22 | .dns = {8,8,8,8}, // DNS address (google dns) 23 | .gw = {192, 168, 1, 1}, // Gateway address 24 | .dhcp = NETINFO_STATIC}; //Static IP configuration 25 | #endif 26 | 27 | -------------------------------------------------------------------------------- /04_m1284p_WIZNET_loopback_DHCP/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | 04_m1284p_WIZNET_loopback_DHCP 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 10 | clean,full,incremental, 11 | 12 | 13 | 14 | 15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 16 | full,incremental, 17 | 18 | 19 | 20 | 21 | 22 | org.eclipse.cdt.core.cnature 23 | org.eclipse.cdt.core.ccnature 24 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 25 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 26 | de.innot.avreclipse.core.avrnature 27 | 28 | 29 | -------------------------------------------------------------------------------- /04_m1284p_WIZNET_loopback_DHCP/Application/loopback/loopback.h: -------------------------------------------------------------------------------- 1 | #ifndef _LOOPBACK_H_ 2 | #define _LOOPBACK_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include 9 | #include 10 | #include "../../globals.h" 11 | 12 | /* Loopback test debug message printout enable */ 13 | #define _LOOPBACK_DEBUG_ 14 | 15 | /* DATA_BUF_SIZE define for Loopback example */ 16 | #ifndef LOOPBACK_DATA_BUF_SIZE 17 | #define LOOPBACK_DATA_BUF_SIZE 512 18 | #endif 19 | 20 | /************************/ 21 | /* Select LOOPBACK_MODE */ 22 | /************************/ 23 | #define LOOPBACK_MAIN_NOBLOCK 0 24 | #define LOOPBACK_MODE LOOPBACK_MAIN_NOBLOCK 25 | 26 | 27 | /* TCP server Loopback test example */ 28 | int32_t loopback_tcps(uint8_t sn, uint8_t* buf, uint16_t port); 29 | 30 | /* TCP client Loopback test example */ 31 | int32_t loopback_tcpc(uint8_t sn, uint8_t* buf, uint8_t* destip, uint16_t destport); 32 | 33 | /* UDP Loopback test example */ 34 | int32_t loopback_udps(uint8_t sn, uint8_t* buf, uint16_t port); 35 | 36 | #ifdef __cplusplus 37 | } 38 | #endif 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /04_m1284p_WIZNET_loopback_DHCP/globals.c: -------------------------------------------------------------------------------- 1 | /* 2 | * globals.c 3 | * 4 | * Created on: 07 февр. 2019 г. 5 | * Author: maxx 6 | */ 7 | #include "globals.h" 8 | 9 | #ifdef IP_WORK 10 | //NIC metrics for WORK PC 11 | wiz_NetInfo netInfo = { .mac = {0x00, 0x08, 0xdc, 0xab, 0xcd, 0xef}, // Mac address 12 | .ip = {192, 168, 0, 199}, // IP address 13 | .sn = {255, 255, 255, 0}, // Subnet mask 14 | .dns = {8,8,8,8}, // DNS address (google dns) 15 | .gw = {192, 168, 0, 1}, // Gateway address 16 | .dhcp = NETINFO_DHCP}; //Static IP configuration 17 | #else 18 | //NIC metrics for another PC (second IP configuration) 19 | wiz_NetInfo netInfo = { .mac = {0x00, 0x08, 0xdc, 0xab, 0xcd, 0xef}, // Mac address 20 | .ip = {192, 168, 1, 199}, // IP address 21 | .sn = {255, 255, 255, 0}, // Subnet mask 22 | .dns = {8,8,8,8}, // DNS address (google dns) 23 | .gw = {192, 168, 1, 1}, // Gateway address 24 | .dhcp = NETINFO_DHCP}; //Static IP configuration 25 | #endif 26 | 27 | -------------------------------------------------------------------------------- /04_m1284p_WIZNET_loopback_DHCP/spi.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "spi.h" 3 | #include "globals.h" 4 | 5 | /* 6 | * Initialize SPI bus. 7 | */ 8 | 9 | //~ // From working SPI ENC28J60 driver 10 | //~ #define ENC28J60_CONTROL_PORT PORTB 11 | //~ #define ENC28J60_CONTROL_DDR DDRB 12 | //~ 13 | //~ #define ENC28J60_CONTROL_CS PORTB6 14 | //~ #define ENC28J60_CONTROL_SO PORTB3 15 | //~ #define ENC28J60_CONTROL_SI PORTB2 16 | //~ #define ENC28J60_CONTROL_SCK PORTB1 17 | //~ #define ENC28J60_CONTROL_SS PORTB0 18 | //~ 19 | //~ // set CS to 0 = active 20 | //~ #define CSACTIVE ENC28J60_CONTROL_PORT&=~(1< 2 | 3 | 05_m1284p_WIZNET_DNS_client 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 10 | clean,full,incremental, 11 | 12 | 13 | 14 | 15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 16 | full,incremental, 17 | 18 | 19 | 20 | 21 | 22 | org.eclipse.cdt.core.cnature 23 | org.eclipse.cdt.core.ccnature 24 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 25 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 26 | de.innot.avreclipse.core.avrnature 27 | 28 | 29 | -------------------------------------------------------------------------------- /05_m1284p_WIZNET_DNS_client/Application/loopback/loopback.h: -------------------------------------------------------------------------------- 1 | #ifndef _LOOPBACK_H_ 2 | #define _LOOPBACK_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include 9 | 10 | /* Loopback test debug message printout enable */ 11 | #define _LOOPBACK_DEBUG_ 12 | 13 | /* DATA_BUF_SIZE define for Loopback example */ 14 | #ifndef DATA_BUF_SIZE 15 | #define DATA_BUF_SIZE 2048 16 | #endif 17 | 18 | /************************/ 19 | /* Select LOOPBACK_MODE */ 20 | /************************/ 21 | #define LOOPBACK_MAIN_NOBLOCK 0 22 | #define LOOPBACK_MODE LOOPBACK_MAIN_NOBLOCK 23 | 24 | 25 | /* TCP server Loopback test example */ 26 | int32_t loopback_tcps(uint8_t sn, uint8_t* buf, uint16_t port); 27 | 28 | /* TCP client Loopback test example */ 29 | int32_t loopback_tcpc(uint8_t sn, uint8_t* buf, uint8_t* destip, uint16_t destport); 30 | 31 | /* UDP Loopback test example */ 32 | int32_t loopback_udps(uint8_t sn, uint8_t* buf, uint16_t port); 33 | 34 | #ifdef __cplusplus 35 | } 36 | #endif 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /05_m1284p_WIZNET_DNS_client/spi.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "spi.h" 3 | #include "globals.h" 4 | 5 | /* 6 | * Initialize SPI bus. 7 | */ 8 | 9 | //~ // From working SPI ENC28J60 driver 10 | //~ #define ENC28J60_CONTROL_PORT PORTB 11 | //~ #define ENC28J60_CONTROL_DDR DDRB 12 | //~ 13 | //~ #define ENC28J60_CONTROL_CS PORTB6 14 | //~ #define ENC28J60_CONTROL_SO PORTB3 15 | //~ #define ENC28J60_CONTROL_SI PORTB2 16 | //~ #define ENC28J60_CONTROL_SCK PORTB1 17 | //~ #define ENC28J60_CONTROL_SS PORTB0 18 | //~ 19 | //~ // set CS to 0 = active 20 | //~ #define CSACTIVE ENC28J60_CONTROL_PORT&=~(1< 2 | 3 | 06_m1284p_WIZNET_DNS_SNTP_client 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 10 | clean,full,incremental, 11 | 12 | 13 | 14 | 15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 16 | full,incremental, 17 | 18 | 19 | 20 | 21 | 22 | org.eclipse.cdt.core.cnature 23 | org.eclipse.cdt.core.ccnature 24 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 25 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 26 | de.innot.avreclipse.core.avrnature 27 | 28 | 29 | -------------------------------------------------------------------------------- /06_m1284p_WIZNET_DNS_SNTP_client/Application/loopback/loopback.h: -------------------------------------------------------------------------------- 1 | #ifndef _LOOPBACK_H_ 2 | #define _LOOPBACK_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include 9 | 10 | /* Loopback test debug message printout enable */ 11 | #define _LOOPBACK_DEBUG_ 12 | 13 | /* DATA_BUF_SIZE define for Loopback example */ 14 | #ifndef DATA_BUF_SIZE 15 | #define DATA_BUF_SIZE 2048 16 | #endif 17 | 18 | /************************/ 19 | /* Select LOOPBACK_MODE */ 20 | /************************/ 21 | #define LOOPBACK_MAIN_NOBLOCK 0 22 | #define LOOPBACK_MODE LOOPBACK_MAIN_NOBLOCK 23 | 24 | 25 | /* TCP server Loopback test example */ 26 | int32_t loopback_tcps(uint8_t sn, uint8_t* buf, uint16_t port); 27 | 28 | /* TCP client Loopback test example */ 29 | int32_t loopback_tcpc(uint8_t sn, uint8_t* buf, uint8_t* destip, uint16_t destport); 30 | 31 | /* UDP Loopback test example */ 32 | int32_t loopback_udps(uint8_t sn, uint8_t* buf, uint16_t port); 33 | 34 | #ifdef __cplusplus 35 | } 36 | #endif 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /06_m1284p_WIZNET_DNS_SNTP_client/Internet/SNTP/sntp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxxir/m1284p_wiz5500/1dfac62bb25d987d0865a2dfa95e43f67f14cb95/06_m1284p_WIZNET_DNS_SNTP_client/Internet/SNTP/sntp.c -------------------------------------------------------------------------------- /06_m1284p_WIZNET_DNS_SNTP_client/spi.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "spi.h" 3 | #include "globals.h" 4 | 5 | /* 6 | * Initialize SPI bus. 7 | */ 8 | 9 | //~ // From working SPI ENC28J60 driver 10 | //~ #define ENC28J60_CONTROL_PORT PORTB 11 | //~ #define ENC28J60_CONTROL_DDR DDRB 12 | //~ 13 | //~ #define ENC28J60_CONTROL_CS PORTB6 14 | //~ #define ENC28J60_CONTROL_SO PORTB3 15 | //~ #define ENC28J60_CONTROL_SI PORTB2 16 | //~ #define ENC28J60_CONTROL_SCK PORTB1 17 | //~ #define ENC28J60_CONTROL_SS PORTB0 18 | //~ 19 | //~ // set CS to 0 = active 20 | //~ #define CSACTIVE ENC28J60_CONTROL_PORT&=~(1< 2 | 3 | 07_m1284p_WIZNET_telnets_basic 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 10 | clean,full,incremental, 11 | 12 | 13 | 14 | 15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 16 | full,incremental, 17 | 18 | 19 | 20 | 21 | 22 | org.eclipse.cdt.core.cnature 23 | org.eclipse.cdt.core.ccnature 24 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 25 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 26 | de.innot.avreclipse.core.avrnature 27 | 28 | 29 | -------------------------------------------------------------------------------- /07_m1284p_WIZNET_telnets_basic/Application/loopback/loopback.h: -------------------------------------------------------------------------------- 1 | #ifndef _LOOPBACK_H_ 2 | #define _LOOPBACK_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include 9 | 10 | /* Loopback test debug message printout enable */ 11 | #define _LOOPBACK_DEBUG_ 12 | 13 | /* DATA_BUF_SIZE define for Loopback example */ 14 | #ifndef DATA_BUF_SIZE 15 | #define DATA_BUF_SIZE 2048 16 | #endif 17 | 18 | /************************/ 19 | /* Select LOOPBACK_MODE */ 20 | /************************/ 21 | #define LOOPBACK_MAIN_NOBLOCK 0 22 | #define LOOPBACK_MODE LOOPBACK_MAIN_NOBLOCK 23 | 24 | 25 | /* TCP server Loopback test example */ 26 | int32_t loopback_tcps(uint8_t sn, uint8_t* buf, uint16_t port); 27 | 28 | /* TCP client Loopback test example */ 29 | int32_t loopback_tcpc(uint8_t sn, uint8_t* buf, uint8_t* destip, uint16_t destport); 30 | 31 | /* UDP Loopback test example */ 32 | int32_t loopback_udps(uint8_t sn, uint8_t* buf, uint16_t port); 33 | 34 | #ifdef __cplusplus 35 | } 36 | #endif 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /07_m1284p_WIZNET_telnets_basic/Application/telnet/telnet.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxxir/m1284p_wiz5500/1dfac62bb25d987d0865a2dfa95e43f67f14cb95/07_m1284p_WIZNET_telnets_basic/Application/telnet/telnet.c -------------------------------------------------------------------------------- /07_m1284p_WIZNET_telnets_basic/Application/telnet/telnet.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxxir/m1284p_wiz5500/1dfac62bb25d987d0865a2dfa95e43f67f14cb95/07_m1284p_WIZNET_telnets_basic/Application/telnet/telnet.h -------------------------------------------------------------------------------- /07_m1284p_WIZNET_telnets_basic/globals.h: -------------------------------------------------------------------------------- 1 | /* 2 | * globals.h 3 | * 4 | * Created on: 29 нояб. 2018 г. 5 | * Author: maxx 6 | */ 7 | 8 | #ifndef GLOBALS_H_ 9 | #define GLOBALS_H_ 10 | 11 | #include 12 | #include 13 | #include 14 | #include "avr/wdt.h" // WatchDog 15 | 16 | 17 | #define PRINTF_EN 1 18 | #if PRINTF_EN 19 | #define PRINTF(FORMAT,args...) printf_P(PSTR(FORMAT),##args) 20 | #else 21 | #define PRINTF(...) 22 | #endif 23 | 24 | //#define IP_WORK 25 | 26 | extern unsigned long millis(void); 27 | extern int freeRam (void); 28 | 29 | //M644P/M1284p Users LEDS: 30 | //LED1/PORTC.4- m644p/m1284p maxxir 31 | #define led1_conf() DDRC |= (1< 2 | #include "spi.h" 3 | #include "globals.h" 4 | 5 | /* 6 | * Initialize SPI bus. 7 | */ 8 | 9 | //~ // From working SPI ENC28J60 driver 10 | //~ #define ENC28J60_CONTROL_PORT PORTB 11 | //~ #define ENC28J60_CONTROL_DDR DDRB 12 | //~ 13 | //~ #define ENC28J60_CONTROL_CS PORTB6 14 | //~ #define ENC28J60_CONTROL_SO PORTB3 15 | //~ #define ENC28J60_CONTROL_SI PORTB2 16 | //~ #define ENC28J60_CONTROL_SCK PORTB1 17 | //~ #define ENC28J60_CONTROL_SS PORTB0 18 | //~ 19 | //~ // set CS to 0 = active 20 | //~ #define CSACTIVE ENC28J60_CONTROL_PORT&=~(1< 2 | 3 | 08_m1284p_WIZNET_ICMP_aka_ping 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 10 | clean,full,incremental, 11 | 12 | 13 | 14 | 15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 16 | full,incremental, 17 | 18 | 19 | 20 | 21 | 22 | org.eclipse.cdt.core.cnature 23 | org.eclipse.cdt.core.ccnature 24 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 25 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 26 | de.innot.avreclipse.core.avrnature 27 | 28 | 29 | -------------------------------------------------------------------------------- /08_m1284p_WIZNET_ICMP_aka_ping/Application/loopback/loopback.h: -------------------------------------------------------------------------------- 1 | #ifndef _LOOPBACK_H_ 2 | #define _LOOPBACK_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include 9 | 10 | /* Loopback test debug message printout enable */ 11 | #define _LOOPBACK_DEBUG_ 12 | 13 | /* DATA_BUF_SIZE define for Loopback example */ 14 | #ifndef DATA_BUF_SIZE 15 | #define DATA_BUF_SIZE 2048 16 | #endif 17 | 18 | /************************/ 19 | /* Select LOOPBACK_MODE */ 20 | /************************/ 21 | #define LOOPBACK_MAIN_NOBLOCK 0 22 | #define LOOPBACK_MODE LOOPBACK_MAIN_NOBLOCK 23 | 24 | 25 | /* TCP server Loopback test example */ 26 | int32_t loopback_tcps(uint8_t sn, uint8_t* buf, uint16_t port); 27 | 28 | /* TCP client Loopback test example */ 29 | int32_t loopback_tcpc(uint8_t sn, uint8_t* buf, uint8_t* destip, uint16_t destport); 30 | 31 | /* UDP Loopback test example */ 32 | int32_t loopback_udps(uint8_t sn, uint8_t* buf, uint16_t port); 33 | 34 | #ifdef __cplusplus 35 | } 36 | #endif 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /08_m1284p_WIZNET_ICMP_aka_ping/spi.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "spi.h" 3 | #include "globals.h" 4 | 5 | /* 6 | * Initialize SPI bus. 7 | */ 8 | 9 | //~ // From working SPI ENC28J60 driver 10 | //~ #define ENC28J60_CONTROL_PORT PORTB 11 | //~ #define ENC28J60_CONTROL_DDR DDRB 12 | //~ 13 | //~ #define ENC28J60_CONTROL_CS PORTB6 14 | //~ #define ENC28J60_CONTROL_SO PORTB3 15 | //~ #define ENC28J60_CONTROL_SI PORTB2 16 | //~ #define ENC28J60_CONTROL_SCK PORTB1 17 | //~ #define ENC28J60_CONTROL_SS PORTB0 18 | //~ 19 | //~ // set CS to 0 = active 20 | //~ #define CSACTIVE ENC28J60_CONTROL_PORT&=~(1< 2 | 3 | 09_m1284p_WIZNET_simple_webserver 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 10 | clean,full,incremental, 11 | 12 | 13 | 14 | 15 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 16 | full,incremental, 17 | 18 | 19 | 20 | 21 | 22 | org.eclipse.cdt.core.cnature 23 | org.eclipse.cdt.core.ccnature 24 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 25 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 26 | de.innot.avreclipse.core.avrnature 27 | 28 | 29 | -------------------------------------------------------------------------------- /09_m1284p_WIZNET_simple_webserver/Application/loopback/loopback.h: -------------------------------------------------------------------------------- 1 | #ifndef _LOOPBACK_H_ 2 | #define _LOOPBACK_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include 9 | 10 | /* Loopback test debug message printout enable */ 11 | #define _LOOPBACK_DEBUG_ 12 | 13 | /* DATA_BUF_SIZE define for Loopback example */ 14 | #ifndef DATA_BUF_SIZE 15 | #define DATA_BUF_SIZE 2048 16 | #endif 17 | 18 | /************************/ 19 | /* Select LOOPBACK_MODE */ 20 | /************************/ 21 | #define LOOPBACK_MAIN_NOBLOCK 0 22 | #define LOOPBACK_MODE LOOPBACK_MAIN_NOBLOCK 23 | 24 | 25 | /* TCP server Loopback test example */ 26 | int32_t loopback_tcps(uint8_t sn, uint8_t* buf, uint16_t port); 27 | 28 | /* TCP client Loopback test example */ 29 | int32_t loopback_tcpc(uint8_t sn, uint8_t* buf, uint8_t* destip, uint16_t destport); 30 | 31 | /* UDP Loopback test example */ 32 | int32_t loopback_udps(uint8_t sn, uint8_t* buf, uint16_t port); 33 | 34 | #ifdef __cplusplus 35 | } 36 | #endif 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /09_m1284p_WIZNET_simple_webserver/Application/webserver_simple/webpages.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxxir/m1284p_wiz5500/1dfac62bb25d987d0865a2dfa95e43f67f14cb95/09_m1284p_WIZNET_simple_webserver/Application/webserver_simple/webpages.h -------------------------------------------------------------------------------- /09_m1284p_WIZNET_simple_webserver/Application/webserver_simple/webserver_simple.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxxir/m1284p_wiz5500/1dfac62bb25d987d0865a2dfa95e43f67f14cb95/09_m1284p_WIZNET_simple_webserver/Application/webserver_simple/webserver_simple.c -------------------------------------------------------------------------------- /09_m1284p_WIZNET_simple_webserver/Application/webserver_simple/webserver_simple.h: -------------------------------------------------------------------------------- 1 | #ifndef _WEBSERVER_SIMPLE_H_ 2 | #define _WEBSERVER_SIMPLE_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include 9 | #include "../../globals.h" 10 | #include "webpages.h" 11 | 12 | /* Loopback test debug message printout enable */ 13 | #define _WEBSRV_DEBUG_ 14 | 15 | /* DATA_BUF_SIZE define for Loopback example */ 16 | #ifndef WEBSRV_DATA_BUF_SIZE 17 | #define WEBSRV_DATA_BUF_SIZE 2048 18 | #endif 19 | 20 | //Timeout (ms) to close too long opened socket (Help from freeze with work with Chrome browser (keep persistent connection on WIN7 ~ 120 sec)) 21 | #define HTTPD_OPEN_TIMEOUT 3000 22 | 23 | /* WEB SERVER test example */ 24 | int32_t websrv_simple(uint8_t sn, uint8_t* buf, uint16_t port); 25 | 26 | int strindex(char *s,char *t); 27 | 28 | 29 | #ifdef __cplusplus 30 | } 31 | #endif 32 | 33 | #endif //_WEBSERVER_SIMPLE_H_ 34 | -------------------------------------------------------------------------------- /09_m1284p_WIZNET_simple_webserver/globals.h: -------------------------------------------------------------------------------- 1 | /* 2 | * globals.h 3 | * 4 | * Created on: 29 нояб. 2018 г. 5 | * Author: maxx 6 | */ 7 | 8 | #ifndef GLOBALS_H_ 9 | #define GLOBALS_H_ 10 | 11 | #include 12 | #include 13 | #include 14 | #include "avr/wdt.h" // WatchDog 15 | 16 | 17 | #define PRINTF_EN 1 18 | #if PRINTF_EN 19 | #define PRINTF(FORMAT,args...) printf_P(PSTR(FORMAT),##args) 20 | #else 21 | #define PRINTF(...) 22 | #endif 23 | 24 | //#define IP_WORK 25 | 26 | extern unsigned long millis(void); 27 | extern int freeRam (void); 28 | 29 | //M644P/M1284p Users LEDS: 30 | //LED1/PORTC.4- m644p/m1284p maxxir 31 | #define led1_conf() DDRC |= (1< 2 | 3 | 5 | 6 | 7 | W5500 Simple Web Server 8 | AVR_maxxir Mega1284p and WIZ5500 9 | 10 | 11 | Uptime: sec 12 | LED1 OFF 13 | LED1 ON 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
LED1 OFF 13 | LED1 ON 14 |
15 | 16 |