-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcommands.h
More file actions
30 lines (23 loc) · 780 Bytes
/
Copy pathcommands.h
File metadata and controls
30 lines (23 loc) · 780 Bytes
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
#ifndef COMMANDS_H
#define COMMANDS_H
#include "mbed.h"
// #define ASYNCHOUT 1 // sending output data asynchronously - TO DEBUG!!
// communication data depth (max file size during LOAD)
#if defined TARGET_NUCLEO_L432KC
#define OUT_BUF_SIZE 40000
#define IN_BUF_SIZE 2000
#endif
#if defined TARGET_NUCLEO_L053R8
#define OUT_BUF_SIZE 256
#define IN_BUF_SIZE 256
#endif
#define ERR_PRINTOUT(x) debug_log("ERR %s",x); pc.printf(x)
#define ERR_SD_CARD_NOT_PRESENT "SD Card not present!\n"
#define SD_HOME "/sd/"
#define MAX_N_FILES 6
extern volatile uint8_t inDataBuf[];
extern volatile uint8_t outDataBuf[];
extern volatile uint16_t inBufPosition;
extern volatile uint16_t outDataPutPosition;
void ProcessCommand ( void ) ;
#endif