aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/src/debug.hpp
blob: 49be2593b571d9c5a0666cb0e8c7449f7a117500 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <cstdio>

namespace debug
{

static void
toggle_led() {
    gpio_xor_mask(1u << PICO_DEFAULT_LED_PIN);
}
void
init()
{
    stdio_init_all();
    gpio_init(PICO_DEFAULT_LED_PIN);
    gpio_set_dir(PICO_DEFAULT_LED_PIN, 1);
    gpio_put(PICO_DEFAULT_LED_PIN, !PICO_DEFAULT_LED_PIN_INVERTED);

}

}