9962ea6449
Quite a big revamp of the make-pins script, it is now used on each build to generate the pin files, so the static ones are not needed anymore.
17 lines
361 B
C
17 lines
361 B
C
// nrf52_prefix.c becomes the initial portion of the generated pins file.
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "py/obj.h"
|
|
#include "py/mphal.h"
|
|
#include "pin.h"
|
|
|
|
#define PIN(p_name, p_port, p_pin, p_adc_channel) \
|
|
{ \
|
|
{ &mcu_pin_type }, \
|
|
.name = MP_QSTR_ ## p_name, \
|
|
.port = PORT_ ## p_port, \
|
|
.pin = (p_pin), \
|
|
.adc_channel = p_adc_channel, \
|
|
}
|