Why was UART0 serial driver identifier set to SD1 not SD0?

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

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
dinosaurkfb
Posts: 2
Joined: Thu Dec 26, 2013 6:41 am

Why was UART0 serial driver identifier set to SD1 not SD0?

Post by dinosaurkfb »

Hi, I'm newbie here.
I have a question when I go through the source code.
Why was UART0 serial driver identifier set to SD1 not SD0?
Should I follow this rule when developing another modules? like the I2C.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Why was UART0 serial driver identifier set to SD1 not SD

Post by Giovanni »

Hi,

The convention is that driver numbers start from 1 regardless how the physical peripheral is named.

Giovanni
dinosaurkfb
Posts: 2
Joined: Thu Dec 26, 2013 6:41 am

Re: Why was UART0 serial driver identifier set to SD1 not SD

Post by dinosaurkfb »

OK, Thank you.
Post Reply