Merge upstream changes from Marlin 2.1.2
This commit is contained in:
@@ -21,7 +21,10 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/* DGUS implementation written by coldtobi in 2019 for Marlin */
|
||||
/**
|
||||
* DGUS implementation written by coldtobi in 2019.
|
||||
* Updated for STM32G0B1RE by Protomosh in 2022.
|
||||
*/
|
||||
|
||||
#include "config/DGUS_Screen.h"
|
||||
#include "config/DGUS_Control.h"
|
||||
@@ -30,11 +33,13 @@
|
||||
#include "../../../inc/MarlinConfigPre.h"
|
||||
#include "../../../MarlinCore.h"
|
||||
|
||||
//#define DEBUG_DGUSLCD // Uncomment for debug messages
|
||||
#define DEBUG_OUT ENABLED(DEBUG_DGUSLCD)
|
||||
#include "../../../core/debug_out.h"
|
||||
|
||||
#define Swap16(val) ((uint16_t)(((uint16_t)(val) >> 8) |\
|
||||
((uint16_t)(val) << 8)))
|
||||
// New endianness swap for 32bit mcu (tested with STM32G0B1RE)
|
||||
#define BE16_P(V) ( ((uint8_t*)(V))[0] << 8U | ((uint8_t*)(V))[1] )
|
||||
#define BE32_P(V) ( ((uint8_t*)(V))[0] << 24U | ((uint8_t*)(V))[1] << 16U | ((uint8_t*)(V))[2] << 8U | ((uint8_t*)(V))[3] )
|
||||
|
||||
// Low-Level access to the display.
|
||||
class DGUSDisplay {
|
||||
|
Reference in New Issue
Block a user