2016-12-13 14:27:26 -05:00
|
|
|
// nrf52_prefix.c becomes the initial portion of the generated pins file.
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "py/obj.h"
|
|
|
|
#include "py/mphal.h"
|
2018-08-26 20:37:12 -04:00
|
|
|
#include "nrf_pin.h"
|
2016-12-13 14:27:26 -05:00
|
|
|
|
2018-02-12 16:33:01 -05:00
|
|
|
#define PIN(p_name, p_port, p_pin, p_adc_channel) \
|
2016-12-13 14:27:26 -05:00
|
|
|
{ \
|
2017-12-21 07:49:14 -05:00
|
|
|
{ &mcu_pin_type }, \
|
2018-02-12 16:33:01 -05:00
|
|
|
.name = MP_QSTR_ ## p_name, \
|
2018-06-20 17:26:32 -04:00
|
|
|
.port = (p_port), \
|
2016-12-13 14:27:26 -05:00
|
|
|
.pin = (p_pin), \
|
2018-06-20 17:26:32 -04:00
|
|
|
.adc_channel = (p_adc_channel), \
|
2016-12-13 14:27:26 -05:00
|
|
|
}
|