Macros initial
This commit is contained in:
parent
160af0a624
commit
eb007c35d2
8 changed files with 35 additions and 32 deletions
Firmware
|
@ -47,7 +47,9 @@
|
|||
#include "Configuration.h"
|
||||
#include "Marlin.h"
|
||||
#include "config.h"
|
||||
|
||||
|
||||
#include "macros.h"
|
||||
|
||||
#ifdef ENABLE_AUTO_BED_LEVELING
|
||||
#include "vector_3.h"
|
||||
#ifdef AUTO_BED_LEVELING_GRID
|
||||
|
@ -139,11 +141,6 @@
|
|||
#include "cmdqueue.h"
|
||||
#include "io_atmega2560.h"
|
||||
|
||||
// Macros for bit masks
|
||||
#define BIT(b) (1<<(b))
|
||||
#define TEST(n,b) (((n)&BIT(b))!=0)
|
||||
#define SET_BIT(n,b,value) (n) ^= ((-value)^(n)) & (BIT(b))
|
||||
|
||||
//Macro for print fan speed
|
||||
#define FAN_PULSE_WIDTH_LIMIT ((fanSpeed > 100) ? 3 : 4) //time in ms
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue