Spi 관련 설정은 어디서 하나요?
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: Spi 관련 설정은 어디서 하나요?
by wowfoot ·
위에 올린 링크를 조금 따라 내려오면 샘플이 있군요. 잘 살펴 보았습니다.
결론은 spi read, write를 callback으로 처리되어 callback function을 등록하면 되고
spi pin 설정은 시작할때 알아서 하고 들어 오면 된다네요.
감사합니다.
////// from example of w5500_example_loopback_stm32f103x_coide_20131104 ////
#if WIZCHIP_IO_MODE == WIZCHIP_IO_MODE_SPI_VDM
reg_wizchip_cs_cbfunc(wizchip_select, wizchip_deselect);
#elif WIZCHIP_IO_MODE == WIZCHIP_IO_MODE_SPI_FDM
reg_wizchip_cs_cbfunc(wizchip_select, wizchip_select); // CS must be tried with LOW.
#else
#if (WIZCHIP_IO_MODE & WIZCHIP_IO_MODE_SIP) != WIZCHIP_IO_MODE_SIP
#error “Unknown WIZCHIP_IO_MODE”
#else
reg_wizchip_cs_cbfunc(wizchip_select, wizchip_deselect);
#endif
#endif
/* SPI Read & Write callback function */
reg_wizchip_spi_cbfunc(wizchip_read, wizchip_write)
///////////////////////////////////////////////////////////////////////////
RE: Spi 관련 설정은 어디서 하나요?
by irinakim ·
다른 질문이 있으시면 글 남겨주세요
thanks,
irinakim