Menu

#273 header for pin manipulation (for EFM8BB1)

None
closed-rejected
None
5
2016-04-16
2016-03-15
No

header for pin manipulation.
for example

#include "portpins.h"
#define PWM_PIN     P1_0

pin_set_output(PWM_PIN);
pin_set_input_analog(PWM_PIN);
pin_set_output_open_drain(PWM_PIN);
pin_toggle(PWM_PIN);
pin_write(PWM_PIN,1);
2 Attachments

Discussion

  • Maarten Brock

    Maarten Brock - 2016-04-16
    • status: open --> closed-rejected
    • assigned_to: Maarten Brock
    • Group: -->
     
  • Maarten Brock

    Maarten Brock - 2016-04-16

    portpins.h redefines true & false, NULL, __bit, and just disables some warnings.
    IMO therefor we cannot accept this patch.

     

Log in to post a comment.

MongoDB Logo MongoDB