Critical section implementation
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: Critical section implementation
by hjjeon0608 ·
These functions are for enable/disable interrupt.
So, place disable interrupt function to wizchip_cris_enter and place enable interrupt function to wizchip_cris_exit.
RE: Critical section implementation
by avivf ·
Hi, thanks a lot for quick reply.
Can you please help me understanding what interrupts should I disable?
Are we talking about SPI TX interrupts?
(I guess SPI Rx interrupts should NOT be disabled, as the host waits for receiving answers from Wiznet.)
Please elaborate, if you can.
Thanks
RE: Critical section implementation
by hjjeon0608 ·
Not about SPI.
Interrupt in MCU. If MCU receives interrupt signal, MCU stop current command and then jump to interrupt routine.
So, there are wizchip_cris_enter() and wizchip_cris_exit().
RE: Critical section implementation
by avivf ·
OK, thanks.