Rename DebugInfo to DebugBuffer and related files and variables.
This commit is contained in:
22
right/src/usb_commands/usb_command_get_debug_buffer.h
Normal file
22
right/src/usb_commands/usb_command_get_debug_buffer.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef __USB_COMMAND_GET_DEBUG_BUFFER_H__
|
||||
#define __USB_COMMAND_GET_DEBUG_BUFFER_H__
|
||||
|
||||
// Includes:
|
||||
|
||||
#include "usb_interfaces/usb_interface_generic_hid.h"
|
||||
|
||||
// Macros:
|
||||
|
||||
#define SET_DEBUG_BUFFER_UINT8(offset, value) (*(uint8_t*)(DebugBuffer+(offset)) = (value))
|
||||
#define SET_DEBUG_BUFFER_UINT16(offset, value) (*(uint16_t*)(DebugBuffer+(offset)) = (value))
|
||||
#define SET_DEBUG_BUFFER_UINT32(offset, value) (*(uint32_t*)(DebugBuffer+(offset)) = (value))
|
||||
|
||||
// Variables:
|
||||
|
||||
extern uint8_t DebugBuffer[USB_GENERIC_HID_OUT_BUFFER_LENGTH];
|
||||
|
||||
// Functions:
|
||||
|
||||
void UsbCommand_GetDebugBuffer(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user