You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/05/10 21:20:15 UTC

[GitHub] utzig commented on issue #955: pwm enabled?

utzig commented on issue #955: pwm enabled?
URL: https://github.com/apache/mynewt-core/issues/955#issuecomment-388189656
 
 
   Might suggestion would be doing something like this:
   
   ```
    struct pwm_chan_cfg {
        pwm_pin_t pin;
        bool inverted;
        void* data;
    };
   ```
   
   Now include `<mcu/mcu.h` in `pwm.h` and declare `pwm_pin_t` for each MCU as in:
   
   `typedef uint8_t pwm_pin_t;` on `mcu.h` for NRF5xxx
   `typedef uint32_t pwm_pin_t;` on `mcu.h` for STM32xxx
   
   Would that work?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services