сделал запись трека через юсб

This commit is contained in:
2023-11-02 16:33:31 +03:00
parent b3b04f5714
commit 4622e29d02
4 changed files with 136 additions and 217 deletions

View File

@@ -0,0 +1,27 @@
#ifndef FLOPPOTRON_FLOPPY_INTERFACE_H
#define FLOPPOTRON_FLOPPY_INTERFACE_H
#include "main.h"
#define FLOPPY_MAX_TRACK_SIZE 4096
#ifdef __cplusplus
extern "C" {
#endif
// статус Floppy-проигрывателя
enum FloppyStatus_t {
FP_READY = 0,
FP_PLAY,
FP_PAUSE,
};
extern enum FloppyStatus_t FloppyStatus;
extern uint16_t FloppyTrack[FLOPPY_MAX_TRACK_SIZE];
void FloppyPutData(const uint8_t* data, size_t len);
#ifdef __cplusplus
};
#endif
#endif //FLOPPOTRON_FLOPPY_INTERFACE_H