Sterling Hughes created MYNEWT-424:
--------------------------------------

             Summary: There should be MCU specific APIs that map port->pin for 
HAL GPIO
                 Key: MYNEWT-424
                 URL: https://issues.apache.org/jira/browse/MYNEWT-424
             Project: Mynewt
          Issue Type: Improvement
          Components: HAL
    Affects Versions: v1_0_0_beta1
            Reporter: Sterling Hughes
            Assignee: Marko Kiiskila
             Fix For: v1_0_0_beta1


I'm thinking this is hw/mcu/<your-mcu>/mcu/mcu.h, and there is a convention, 
i.e. for MCUs that have ports, MCU_PORTA(pin) returns that pin.  We should do 
this for all supported BSPs prior to release.

E.g.
#define PORTA(pin) (pin)
#define PORTB(pin) (16 + pin)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to