Description: 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
}
File list (Check if you may need any files):
网页控制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