Page 1 of 1

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

Posted: Sat Feb 15, 2014 12:01 pm
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.

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

Posted: Sat Feb 15, 2014 1:10 pm
by Giovanni
Hi,

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

Giovanni

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

Posted: Sun Feb 16, 2014 2:16 am
by dinosaurkfb
OK, Thank you.