Page 1 of 1

Bug in ext_lld.c?

Posted: Thu Nov 13, 2014 11:37 am
by lilvinz
Hi,

for STM32, ext callbacks are execute without system lock, this driver sets a system lock before invoking callbacks.
I assume this to be a bug as it prevents portability between platforms.
Can someone please confirm this?

Cheers,

Vinz

Re: Bug in ext_lld.c?

Posted: Thu Nov 13, 2014 12:08 pm
by Giovanni
By convention callbacks should be called outside critical zones, it would be a bug.

Giovanni

Re: Bug in ext_lld.c?

Posted: Thu Nov 13, 2014 12:11 pm
by lilvinz
Thanks for the quick reply.
The fix seems easy as i don't see a reason for the driver to enter a lock zone anyway.

Cheers,

Vinz