SDCConfig struct member bus_width

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
shinelikerain
Posts: 15
Joined: Mon Nov 25, 2013 11:10 am

SDCConfig struct member bus_width

Post by shinelikerain »

Now the element "bus_width" has been added to the SDCConfig structure, is it no longer possible to pass NULL to sdcStart() as then the function sdcConnect() will fail when you come to test in xxx_set_bus_width() for SDC_MODE_xBIT??

Or have I missed something?
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: SDCConfig struct member bus_width

Post by Giovanni »

Hi,

Correct, you have to pass a configuration structure.

Giovanni
shinelikerain
Posts: 15
Joined: Mon Nov 25, 2013 11:10 am

Re: SDCConfig struct member bus_width

Post by shinelikerain »

Thank you Giovanni,

In that case shouldn't there be a :-

osalDbgCheck(config != NULL) in sdcStart() ?
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: SDCConfig struct member bus_width

Post by Giovanni »

I made a change, now sddStart() accepts a NULL configuration again and uses an internal configuration in that case.

Giovanni
shinelikerain
Posts: 15
Joined: Mon Nov 25, 2013 11:10 am

Re: SDCConfig struct member bus_width

Post by shinelikerain »

Thank you Giovanni for all your work :)
Post Reply