2021-11-24 09:08:10 索煒達(dá)電子 813
項目編號:E2441
文件大?。?0M
源碼說明:帶中文注釋
開發(fā)環(huán)境:C編譯器
簡要概述
數(shù)字信號發(fā)生器 STM32F407節(jié)拍器程序 開發(fā)環(huán)境Keil
本實驗所需器材:STM32F407開發(fā)板塊,網(wǎng)線一根。
本實驗將實現(xiàn)如下功能:上電以后初始化相應(yīng)的外設(shè),如果開啟了DHCP的話就獲取IP地址等信息,我們需要通過按鍵設(shè)置需要連接的遠(yuǎn)端主機(jī)IP地址,也就是電腦的IP地址。開發(fā)板與網(wǎng)絡(luò)調(diào)試助手之間建立UDP連接之后就可以通過網(wǎng)絡(luò)調(diào)試助手給開發(fā)板發(fā)送數(shù)據(jù),開發(fā)板接收數(shù)據(jù)并在LCD上顯示。也可以通過開發(fā)板上的按鍵KEY0給網(wǎng)絡(luò)調(diào)試助手發(fā)送數(shù)據(jù)。
注意:本實驗未使用UCOS操作系統(tǒng),端口號為:8089 ,如果沒有插網(wǎng)線并且開啟了DHCP的話就會等待很久!
目錄│文件列表:
└ Signal_Generator_stm32
│ keilkilll.bat
│ readme.txt
├ CORE
│ │ core_cm4.h
│ │ core_cm4_simd.h
│ │ core_cmFunc.h
│ │ core_cmInstr.h
│ └ startup_stm32f40_41xxx.s
├ FWLIB
│ ├ STM32F4x7_ETH_Driver
│ │ ├ inc
│ │ │ │ stm32f4x7_eth.h
│ │ │ └ stm32f4x7_eth_conf.h
│ │ └ src
│ │ └ stm32f4x7_eth.c
│ └ STM32F4xx_StdPeriph_Driver
│ ├ inc
│ │ │ misc.h
│ │ │ stm32f4xx_adc.h
│ │ │ stm32f4xx_can.h
│ │ │ stm32f4xx_crc.h
│ │ │ stm32f4xx_cryp.h
│ │ │ stm32f4xx_dac.h
│ │ │ stm32f4xx_dbgmcu.h
│ │ │ stm32f4xx_dcmi.h
│ │ │ stm32f4xx_dma.h
│ │ │ stm32f4xx_dma2d.h
│ │ │ stm32f4xx_exti.h
│ │ │ stm32f4xx_flash.h
│ │ │ stm32f4xx_fmc.h
│ │ │ stm32f4xx_fsmc.h
│ │ │ stm32f4xx_gpio.h
│ │ │ stm32f4xx_hash.h
│ │ │ stm32f4xx_i2c.h
│ │ │ stm32f4xx_iwdg.h
│ │ │ stm32f4xx_ltdc.h
│ │ │ stm32f4xx_pwr.h
│ │ │ stm32f4xx_rcc.h
│ │ │ stm32f4xx_rng.h
│ │ │ stm32f4xx_rtc.h
│ │ │ stm32f4xx_sai.h
│ │ │ stm32f4xx_sdio.h
│ │ │ stm32f4xx_spi.h
│ │ │ stm32f4xx_syscfg.h
│ │ │ stm32f4xx_tim.h
│ │ │ stm32f4xx_usart.h
│ │ └ stm32f4xx_wwdg.h
│ └ src
│ │ misc.c
│ │ stm32f4xx_adc.c
│ │ stm32f4xx_can.c
│ │ stm32f4xx_crc.c
│ │ stm32f4xx_cryp.c
│ │ stm32f4xx_cryp_aes.c
│ │ stm32f4xx_cryp_des.c
│ │ stm32f4xx_cryp_tdes.c
│ │ stm32f4xx_dac.c
│ │ stm32f4xx_dbgmcu.c
│ │ stm32f4xx_dcmi.c
│ │ stm32f4xx_dma.c
│ │ stm32f4xx_dma2d.c
│ │ stm32f4xx_exti.c
│ │ stm32f4xx_flash.c
│ │ stm32f4xx_fmc.c
│ │ stm32f4xx_fsmc.c
│ │ stm32f4xx_gpio.c
│ │ stm32f4xx_hash.c
│ │ stm32f4xx_hash_md5.c
│ │ stm32f4xx_hash_sha1.c
│ │ stm32f4xx_i2c.c
│ │ stm32f4xx_iwdg.c
│ │ stm32f4xx_ltdc.c
│ │ stm32f4xx_pwr.c
│ │ stm32f4xx_rcc.c
│ │ stm32f4xx_rng.c
│ │ stm32f4xx_rtc.c
│ │ stm32f4xx_sai.c
│ │ stm32f4xx_sdio.c
│ │ stm32f4xx_spi.c
│ │ stm32f4xx_syscfg.c
│ │ stm32f4xx_tim.c
│ │ stm32f4xx_usart.c
│ └ stm32f4xx_wwdg.c
├ HARDWARE
│ ├ ETHERNET
│ │ │ lan8720.c
│ │ │ lan8720.h
│ │ │ socket.c
│ │ └ socket.h
│ ├ Internet
│ │ ├ DHCP
│ │ │ │ dhcp.c
│ │ │ └ dhcp.h
│ │ └ DNS
│ │ │ dns.c
│ │ └ dns.h
│ ├ LED
│ │ │ led.c
│ │ └ led.h
│ ├ SRAM
│ │ │ sram.c
│ │ └ sram.h
│ └ TIMER
│ │ timer.c
│ └ timer.h
├ LWIP
│ │ lwip-1.4.1.rar
│ ├ arch
│ │ │ cc.h
│ │ │ cpu.h
│ │ │ perf.h
│ │ │ sys_arch.c
│ │ └ sys_arch.h
│ ├ lwip-1.4.1
│ │ │ CHANGELOG
│ │ │ COPYING
│ │ │ FILES
│ │ │ README
│ │ │ UPGRADING
│ │ ├ doc
│ │ │ │ contrib.txt
│ │ │ │ FILES
│ │ │ │ rawapi.txt
│ │ │ │ savannah.txt
│ │ │ │ snmp_agent.txt
│ │ │ └ sys_arch.txt
│ │ ├ src
│ │ │ │ FILES
│ │ │ ├ api
│ │ │ │ │ api_lib.c
│ │ │ │ │ api_msg.c
│ │ │ │ │ err.c
│ │ │ │ │ netbuf.c
│ │ │ │ │ netdb.c
│ │ │ │ │ netifapi.c
│ │ │ │ │ sockets.c
│ │ │ │ └ tcpip.c
│ │ │ ├ core
│ │ │ │ │ def.c
│ │ │ │ │ dhcp.c
│ │ │ │ │ dns.c
│ │ │ │ │ init.c
│ │ │ │ │ lwip_sys.c
│ │ │ │ │ mem.c
│ │ │ │ │ memp.c
│ │ │ │ │ netif.c
│ │ │ │ │ pbuf.c
│ │ │ │ │ raw.c
│ │ │ │ │ stats.c
│ │ │ │ │ tcp.c
│ │ │ │ │ tcp_in.c
│ │ │ │ │ tcp_out.c
│ │ │ │ │ timers.c
│ │ │ │ │ udp.c
│ │ │ │ ├ ipv4
│ │ │ │ │ │ autoip.c
│ │ │ │ │ │ icmp.c
│ │ │ │ │ │ igmp.c
│ │ │ │ │ │ inet.c
│ │ │ │ │ │ inet_chksum.c
│ │ │ │ │ │ ip.c
│ │ │ │ │ │ ip_addr.c
│ │ │ │ │ └ ip_frag.c
│ │ │ │ ├ ipv6
│ │ │ │ │ │ icmp6.c
│ │ │ │ │ │ inet6.c
│ │ │ │ │ │ ip6.c
│ │ │ │ │ │ ip6_addr.c
│ │ │ │ │ └ README
│ │ │ │ └ snmp
│ │ │ │ │ asn1_dec.c
│ │ │ │ │ asn1_enc.c
│ │ │ │ │ mib2.c
│ │ │ │ │ mib_structs.c
│ │ │ │ │ msg_in.c
│ │ │ │ └ msg_out.c
│ │ │ ├ include
│ │ │ │ ├ ipv4
│ │ │ │ │ └ lwip
│ │ │ │ │ │ autoip.h
│ │ │ │ │ │ icmp.h
│ │ │ │ │ │ igmp.h
│ │ │ │ │ │ inet.h
│ │ │ │ │ │ inet_chksum.h
│ │ │ │ │ │ ip.h
│ │ │ │ │ │ ip_addr.h
│ │ │ │ │ └ ip_frag.h
│ │ │ │ ├ ipv6
│ │ │ │ │ └ lwip
│ │ │ │ │ │ icmp.h
│ │ │ │ │ │ inet.h
│ │ │ │ │ │ ip.h
│ │ │ │ │ └ ip_addr.h
│ │ │ │ ├ lwip
│ │ │ │ │ │ api.h
│ │ │ │ │ │ api_msg.h
│ │ │ │ │ │ arch.h
│ │ │ │ │ │ debug.h
│ │ │ │ │ │ def.h
│ │ │ │ │ │ dhcp.h
│ │ │ │ │ │ dns.h
│ │ │ │ │ │ err.h
│ │ │ │ │ │ init.h
│ │ │ │ │ │ lwip_sys.h
│ │ │ │ │ │ mem.h
│ │ │ │ │ │ memp.h
│ │ │ │ │ │ memp_std.h
│ │ │ │ │ │ netbuf.h
│ │ │ │ │ │ netdb.h
│ │ │ │ │ │ netif.h
│ │ │ │ │ │ netifapi.h
│ │ │ │ │ │ opt.h
│ │ │ │ │ │ pbuf.h
│ │ │ │ │ │ raw.h
│ │ │ │ │ │ sio.h
│ │ │ │ │ │ snmp.h