Not sure I follow what you are saying  "by pin" but I think it is because
they use a development system that abstracts some details.   I know that I
almost never use the low level registers to configure pins.  One reason is
to keep my code portable if I move to a different ARM chip.

On Sun, Dec 24, 2017 at 9:50 AM, Dave Cole <[email protected]> wrote:

> Wow... that's great!
>
> Dave
>
>
> On 12/24/2017 6:44 AM, Nicklas Karlsson wrote:
>
>> I just got SPI started on my Ethercat LAN9252 board. It turned out SPI
>> MISO where configured twice.
>>
>> For some reason I think almost all manufacturers choose to configure by
>> pin so for peripheral input pins it is possible to configure more than one
>> pin and get a collision. I remember Microchip got this correct: for
>> peripheral inputs a source could be selected and for pin outputs
>> configuration a peripheral output could be selected. It is also have the
>> advantage a signal may be used at more than place.
>>
>> For some reason most manufacturers have chosen to write headers specifice
>> for micro controller instead of peripheral specific even though same
>> peripheral usually is the same on all micro controllers in the family. I
>> remember Texas instrument got this correct and wrote a pdf-file specific
>> for each peripheral although I do not remember about header files. I have
>> been thinking about porting the header filer on perihpheral basis to ADA
>> but never get time.
>>
>>
>> Nicklas Karlsson
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Emc-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users
>



-- 

Chris Albertson
Redondo Beach, California
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to