aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/rcc.c
blob: e29b01018b45e78cd1fb2afbd7f1297e6f3e2032 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "libmaple.h"
#include "rcc.h"

typedef struct RCC {
    volatile uint32 CR;
    volatile uint32 CFGR;
    volatile uint32 CIR;
    volatile uint32 APB2STR;
    volatile uint32 APB1RSTR;
    volatile uint32 AHBENR;
    volatile uint32 APB2ENR;
    volatile uint32 APB1ENR;
    volatile uint32 BDCR;
    volatile uint32 CSR;
} RCC;

void rcc_enable(uint32 p) {

}