summaryrefslogtreecommitdiff
path: root/ports/nrf/boards/nrf52_prefix.c
blob: 92fb165b50f63e44d3a9160d1599fa9058d57c9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// nrf52_prefix.c becomes the initial portion of the generated pins file.

#include <stdio.h>

#include "py/obj.h"
#include "py/mphal.h"
#include "nrf_pin.h"

#define PIN(p_name, p_port, p_pin, p_adc_channel) \
    { \
        { &mcu_pin_type }, \
        .name = MP_QSTR_##p_name, \
        .port = (p_port), \
        .pin = (p_pin), \
        .adc_channel = (p_adc_channel), \
    }