In line #define MB(board) (MOTHERBOARD==BOARD_##board)
The ‘##’ preprocessing operator performs token pasting. When a macro is expanded, the two tokens on either side of each ‘##’ operator are combined into a single token, which then replaces the ‘##’
( from [gcc.gnu.org] )
so MB(ULTIMAKER) becomes MOTHERBOARD==BOARD_ULTIMAKER)
In Configuration.h need to uncomment ( remove // at start) your motherboard
#define MOTHERBOARD BOARD_ULTIMAKER
So in pins.h
#if MB(ULTIMAKER)
#define KNOWN_BOARD
becomes
#if MOTHERBOARD==BOARD_ULTIMAKER
#define KNOWN_BOARD
The ‘##’ preprocessing operator performs token pasting. When a macro is expanded, the two tokens on either side of each ‘##’ operator are combined into a single token, which then replaces the ‘##’
( from [gcc.gnu.org] )
so MB(ULTIMAKER) becomes MOTHERBOARD==BOARD_ULTIMAKER)
In Configuration.h need to uncomment ( remove // at start) your motherboard
#define MOTHERBOARD BOARD_ULTIMAKER
So in pins.h
#if MB(ULTIMAKER)
#define KNOWN_BOARD
becomes
#if MOTHERBOARD==BOARD_ULTIMAKER
#define KNOWN_BOARD