文件名称:LED
- 所属分类:
- 微处理器(ARM/PowerPC等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 812kb
- 下载次数:
- 0次
- 提 供 者:
- xun***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
STM32开放版驱动网页控制LED。stm32103vb-STM32 Web control LED
u8 enc28j60ReadOp(u8 op, u8 address)
{
u8 dat = 0
ENC28J60_CSL()
dat = op | (address & ADDR_MASK)
SPInet_ReadWrite(dat)
dat = SPInet_ReadWrite(0xFF)
// do dummy read if needed (for mac and mii, see datasheet page 29)
if (address & 0x80)
{
dat = SPInet_ReadWrite(0xFF)
}
// release CS
ENC28J60_CSH()
return dat
}
u8 enc28j60ReadOp(u8 op, u8 address)
{
u8 dat = 0
ENC28J60_CSL()
dat = op | (address & ADDR_MASK)
SPInet_ReadWrite(dat)
dat = SPInet_ReadWrite(0xFF)
// do dummy read if needed (for mac and mii, see datasheet page 29)
if (address & 0x80)
{
dat = SPInet_ReadWrite(0xFF)
}
// release CS
ENC28J60_CSH()
return dat
}
(系统自动生成,下载前可以参看下载内容)
下载文件列表
网页控制LED\enc28j60\ENC28J60.C
...........\........\ENC28J60.H
...........\........\SPI.C
...........\........\SPI.H
...........\KeiDelAll.bat
...........\LstFlash\STM32F10x.lst
...........\........\USART_Pol.map
...........\main\Abstract.txt
...........\....\BinType.h
...........\....\config.h
...........\....\include.h
...........\....\main.c
...........\....\MyType.h
...........\....\Project.Opt
...........\....\Project.Uv2
...........\....\Project_FLASH.dep
...........\....\Project_Opt.Bak
...........\....\Project_Uv2.Bak
...........\....\RAM.ini
...........\....\Retarget.c
...........\....\STM32F10x.s
...........\....\STM32_Init.c
...........\....\STM32_Init.h
...........\....\STM32_Reg.h
...........\....\复件 STM32_Init.c
...........\Net\ip_arp_udp_tcp.c
...........\...\ip_arp_udp_tcp.h
...........\...\net.h
...........\...\simple_server.c
...........\...\simple_server.h
...........\ObjFlash\enc28j60.crf
...........\........\enc28j60.d
...........\........\enc28j60.o
...........\........\enc28j60.__i
...........\........\ip_arp_udp_tcp.crf
...........\........\ip_arp_udp_tcp.d
...........\........\ip_arp_udp_tcp.o
...........\........\ip_arp_udp_tcp.__i
...........\........\main.crf
...........\........\main.d
...........\........\main.o
...........\........\retarget.crf
...........\........\retarget.d
...........\........\retarget.o
...........\........\simple_server.crf
...........\........\simple_server.d
...........\........\simple_server.o
...........\........\simple_server.__i
...........\........\spi.crf
...........\........\spi.d
...........\........\spi.o
...........\........\spi.__i
...........\........\STM32F10x.o
...........\........\stm32f10x._ia
...........\........\stm32_init.crf
...........\........\stm32_init.d
...........\........\stm32_init.o
...........\........\USART_Pol.axf
...........\........\USART_Pol.hex
...........\........\USART_Pol.htm
...........\........\USART_Pol.lnp
...........\........\USART_Pol.plg
...........\........\USART_Pol.sct
...........\........\USART_Pol.tra
...........\.utput\ExtDll.iex
...........\......\stm32f10x._ia
...........\......\USART_Pol.hex
...........\......\USART_Pol.htm
...........\......\USART_Pol.map
...........\......\USART_Pol.sct
...........\Thumbs.db
...........\main\Output
...........\enc28j60
...........\LstFlash
...........\main
...........\Net
...........\ObjFlash
...........\Output
网页控制LED
...........\........\ENC28J60.H
...........\........\SPI.C
...........\........\SPI.H
...........\KeiDelAll.bat
...........\LstFlash\STM32F10x.lst
...........\........\USART_Pol.map
...........\main\Abstract.txt
...........\....\BinType.h
...........\....\config.h
...........\....\include.h
...........\....\main.c
...........\....\MyType.h
...........\....\Project.Opt
...........\....\Project.Uv2
...........\....\Project_FLASH.dep
...........\....\Project_Opt.Bak
...........\....\Project_Uv2.Bak
...........\....\RAM.ini
...........\....\Retarget.c
...........\....\STM32F10x.s
...........\....\STM32_Init.c
...........\....\STM32_Init.h
...........\....\STM32_Reg.h
...........\....\复件 STM32_Init.c
...........\Net\ip_arp_udp_tcp.c
...........\...\ip_arp_udp_tcp.h
...........\...\net.h
...........\...\simple_server.c
...........\...\simple_server.h
...........\ObjFlash\enc28j60.crf
...........\........\enc28j60.d
...........\........\enc28j60.o
...........\........\enc28j60.__i
...........\........\ip_arp_udp_tcp.crf
...........\........\ip_arp_udp_tcp.d
...........\........\ip_arp_udp_tcp.o
...........\........\ip_arp_udp_tcp.__i
...........\........\main.crf
...........\........\main.d
...........\........\main.o
...........\........\retarget.crf
...........\........\retarget.d
...........\........\retarget.o
...........\........\simple_server.crf
...........\........\simple_server.d
...........\........\simple_server.o
...........\........\simple_server.__i
...........\........\spi.crf
...........\........\spi.d
...........\........\spi.o
...........\........\spi.__i
...........\........\STM32F10x.o
...........\........\stm32f10x._ia
...........\........\stm32_init.crf
...........\........\stm32_init.d
...........\........\stm32_init.o
...........\........\USART_Pol.axf
...........\........\USART_Pol.hex
...........\........\USART_Pol.htm
...........\........\USART_Pol.lnp
...........\........\USART_Pol.plg
...........\........\USART_Pol.sct
...........\........\USART_Pol.tra
...........\.utput\ExtDll.iex
...........\......\stm32f10x._ia
...........\......\USART_Pol.hex
...........\......\USART_Pol.htm
...........\......\USART_Pol.map
...........\......\USART_Pol.sct
...........\Thumbs.db
...........\main\Output
...........\enc28j60
...........\LstFlash
...........\main
...........\Net
...........\ObjFlash
...........\Output
网页控制LED