Prusa MINI Firmware overview
heatshrink_config.h
Go to the documentation of this file.
1 /**
2  * libs/heatshrink/heatshrink_config.h
3  */
4 #pragma once
5 
6 // Should functionality assuming dynamic allocation be used?
7 #ifndef HEATSHRINK_DYNAMIC_ALLOC
8  //#define HEATSHRINK_DYNAMIC_ALLOC 1
9 #endif
10 
11 #if HEATSHRINK_DYNAMIC_ALLOC
12  // Optional replacement of malloc/free
13  #define HEATSHRINK_MALLOC(SZ) malloc(SZ)
14  #define HEATSHRINK_FREE(P, SZ) free(P)
15 #else
16  // Required parameters for static configuration
17  #define HEATSHRINK_STATIC_INPUT_BUFFER_SIZE 32
18  #define HEATSHRINK_STATIC_WINDOW_BITS 8
19  #define HEATSHRINK_STATIC_LOOKAHEAD_BITS 4
20 #endif
21 
22 // Turn on logging for debugging
23 #define HEATSHRINK_DEBUGGING_LOGS 0
24 
25 // Use indexing for faster compression. (This requires additional space.)
26 #define HEATSHRINK_USE_INDEX 1