blob: 064393aa369d4b9119a62b25317b0258a3404b51 (
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
29
30
|
#pragma once
#include <stdint.h>
#include <mmio/mmio.h>
struct STM32_DMAMUX_reg_v1_t {
/**
* Not all parts offer all channels!
* WB: 14, G4: 16...
*/
volatile uint32_t CCR[20];
volatile uint32_t _reserved1[12];
volatile uint32_t CSR; // 0x80
volatile uint32_t CFR; // 0x84
volatile uint32_t _reserved2[30];
/**
* Not all parts offer all requests!
* WB/G4: 4, H7: 8
*/
volatile uint32_t RGCR[8]; // 0x100
volatile uint32_t _reserved3[8];
volatile uint32_t RGSR; // 0x140
volatile uint32_t RGCFR;
};
template <typename T>
class STM32_DMAMUX_t : public mmio_ptr<T> {
public:
using mmio_ptr<T>::ptr;
};
|