summaryrefslogtreecommitdiff
path: root/bluefnorf/main.c
blob: 4c183068d9a638f346de96664db0da37005292d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * ADC test: Try to get as many samples as possible
 * using fast interleave mode and DMA
 */

#include <stdlib.h>
#include <string.h>
#include <stdio.h>

#include <libopencm3/cm3/nvic.h>
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/stm32/gpio.h>
#include <libopencm3/stm32/adc.h>
#include <libopencm3/stm32/dma.h>

#include "usb.h"

int main(void) {
    rcc_clock_setup_in_hse_8mhz_out_72mhz();
    usb_serial_init();

    while (42) {
    }
}

void hard_fault_handler(void) {
    while (23);
}