#ifndef PANDA_CONFIG_H #define PANDA_CONFIG_H //#define DEBUG //#define DEBUG_UART //#define DEBUG_USB //#define DEBUG_SPI //#define DEBUG_FAULTS //#define DEBUG_COMMS #define DEEPSLEEP_WAKEUP_DELAY 3U #define NULL ((void*)0) #define COMPILE_TIME_ASSERT(pred) ((void)sizeof(char[1 - (2 * ((int)(!(pred))))])) #define MIN(a,b) \ ({ __typeof__ (a) _a = (a); \ __typeof__ (b) _b = (b); \ (_a < _b) ? _a : _b; }) #define MAX(a,b) \ ({ __typeof__ (a) _a = (a); \ __typeof__ (b) _b = (b); \ (_a > _b) ? _a : _b; }) #define ABS(a) \ ({ __typeof__ (a) _a = (a); \ (_a > 0) ? _a : (-_a); }) #include #include "panda.h" #ifdef STM32H7 #include "stm32h7/stm32h7_config.h" #else #include "stm32fx/stm32fx_config.h" #endif #endif