This repository has been archived on 2025-03-06. You can view files and clone it, but cannot push or open issues or pull requests.
machines-backup/components/hal/firmware/zoe/config_validator.h
2024-10-01 17:06:14 +02:00

21 lines
552 B
C

#ifndef CONFIG_VALIDATOR
#define CONFIG_VALIDATOR
#include "common/macros.h"
#if defined(ENABLE_AUTO_REVERSE_PIN) && defined(HAS_AUTO_REVERSE_MODE)
#error "You can not have auto-revese toggle and a 3 pos mode switch"
#endif
#if DEBUG == true && USE_FIRMATA && DEBUG_BAUD_RATE !=FIRMATA_BAUD_RATE
#error "Debug baud rate must match firmata baud rate"
#endif
#if defined(USE_UNO) && defined(IR_SPEED)
#if IR_PIN !=2 && IR_PIN !=3
#error "For speed computation on the UNO, you need to use pins D2 or D3!"
#endif
#endif
#endif