13 lines
280 B
C++
13 lines
280 B
C++
#ifndef NORFLASH_H
|
|
#define NORFLASH_H
|
|
#include <stdint.h>
|
|
#include "spiblocked.h"
|
|
|
|
class NorFlash {
|
|
SpiBlocked spi;
|
|
public:
|
|
explicit NorFlash () noexcept : spi() {}
|
|
unsigned ReadBlock (const unsigned addr, uint8_t * data, const unsigned len);
|
|
};
|
|
|
|
#endif // NORFLASH_H
|