mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-24 16:20:49 +01:00
[ion/f730] Switch to FMC
This commit is contained in:
committed by
Ruben Dashyan
parent
b547f8bfd9
commit
fe9b2fec1c
@@ -1,9 +1,9 @@
|
||||
#ifndef REGS_FSMC_H
|
||||
#define REGS_FSMC_H
|
||||
#ifndef REGS_FMC_H
|
||||
#define REGS_FMC_H
|
||||
|
||||
#include "register.h"
|
||||
|
||||
class FSMC {
|
||||
class FMC {
|
||||
public:
|
||||
class BCR : Register32 {
|
||||
public:
|
||||
@@ -58,7 +58,7 @@ public:
|
||||
REGS_TYPE_FIELD(ACCMOD, 29, 28);
|
||||
};
|
||||
|
||||
constexpr FSMC() {}
|
||||
constexpr FMC() {}
|
||||
volatile BCR * BCR(int index) const {
|
||||
return (class BCR *)(Base() + 8*(index-1));
|
||||
}
|
||||
@@ -74,6 +74,6 @@ private:
|
||||
};
|
||||
};
|
||||
|
||||
constexpr FSMC FSMC;
|
||||
constexpr FMC FMC;
|
||||
|
||||
#endif
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "dma.h"
|
||||
#include "exti.h"
|
||||
#include "flash.h"
|
||||
#include "fsmc.h"
|
||||
#include "fmc.h"
|
||||
#include "gpio.h"
|
||||
#include "itm.h"
|
||||
#include "mpu.h"
|
||||
|
||||
Reference in New Issue
Block a user