[ 
https://issues.apache.org/jira/browse/MYNEWT-424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15593643#comment-15593643
 ] 

ASF subversion and git services commented on MYNEWT-424:
--------------------------------------------------------

Commit dbb78037e27c532b91078d51dd327bf92a8c9f50 in incubator-mynewt-core's 
branch refs/heads/develop from [~marko]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-mynewt-core.git;h=dbb7803 
]

MYNEWT-424; MCU specific define mapping port/pin to a single number.


> 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