projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add TMC header read and write functions, so that TMC data can now be exchanged in...
[pub/USBasp.git]
/
Demos
/
Device
/
Incomplete
/
TestAndMeasurement
/
TestAndMeasurement.h
diff --git
a/Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.h
b/Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.h
index
191eb40
..
d0db01e
100644
(file)
--- a/
Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.h
+++ b/
Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.h
@@
-45,17
+45,20
@@
\r
/* Macros: */
\r
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
\r
\r
/* Macros: */
\r
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
\r
- #define LEDMASK_USB_NOTREADY
LEDS_LED1
\r
+ #define LEDMASK_USB_NOTREADY LEDS_LED1
\r
\r
/** LED mask for the library LED driver, to indicate that the USB interface is enumerating. */
\r
\r
/** LED mask for the library LED driver, to indicate that the USB interface is enumerating. */
\r
- #define LEDMASK_USB_ENUMERATING
(LEDS_LED2 | LEDS_LED3)
\r
+ #define LEDMASK_USB_ENUMERATING (LEDS_LED2 | LEDS_LED3)
\r
\r
/** LED mask for the library LED driver, to indicate that the USB interface is ready. */
\r
\r
/** LED mask for the library LED driver, to indicate that the USB interface is ready. */
\r
- #define LEDMASK_USB_READY
(LEDS_LED2 | LEDS_LED4)
\r
+ #define LEDMASK_USB_READY (LEDS_LED2 | LEDS_LED4)
\r
\r
/** LED mask for the library LED driver, to indicate that an error has occurred in the USB interface. */
\r
\r
/** LED mask for the library LED driver, to indicate that an error has occurred in the USB interface. */
\r
- #define LEDMASK_USB_ERROR
(LEDS_LED1 | LEDS_LED3)
\r
+ #define LEDMASK_USB_ERROR (LEDS_LED1 | LEDS_LED3)
\r
\r
\r
+ /** LED mask for the library LED driver, to indicate that the USB interface is busy. */
\r
+ #define LEDMASK_USB_BUSY LEDS_LED2
\r
+
\r
#define Req_InitiateAbortBulkOut 0x01
\r
#define Req_CheckAbortBulkOutStatus 0x02
\r
#define Req_InitiateAbortBulkIn 0x03
\r
#define Req_InitiateAbortBulkOut 0x01
\r
#define Req_CheckAbortBulkOutStatus 0x02
\r
#define Req_InitiateAbortBulkIn 0x03
\r
@@
-139,6
+142,8
@@
/* Function Prototypes: */
\r
void SetupHardware(void);
\r
void TMC_Task(void);
\r
/* Function Prototypes: */
\r
void SetupHardware(void);
\r
void TMC_Task(void);
\r
+ bool ReadTMCHeader(TMC_MessageHeader_t* const MessageHeader);
\r
+ bool WriteTMCHeader(TMC_MessageHeader_t* const MessageHeader);
\r
\r
void EVENT_USB_Device_Connect(void);
\r
void EVENT_USB_Device_Disconnect(void);
\r
\r
void EVENT_USB_Device_Connect(void);
\r
void EVENT_USB_Device_Disconnect(void);
\r