Add compile error for configuration mistake

This commit is contained in:
Mario Hüttel 2022-07-30 16:45:26 +02:00
parent aaed95cc95
commit f9b9a3c685
2 changed files with 4 additions and 1 deletions

View File

@ -27,6 +27,10 @@
#include <stm-periph/rcc-manager.h>
#include <stm32/stm32f4xx.h>
#if HW_REV_DETECT_PIN_LOW > HW_REV_DETECT_PIN_HIGH
#error Configuration error for Hardware derection pins. Lowest position must be less than the highest pin position.
#endif
enum hw_revision get_pcb_hardware_version(void)
{
uint8_t current_pin;

View File

@ -48,7 +48,6 @@
*/
#define HW_REV_DETECT_PIN_HIGH (15U)
/**
* @brief PCB/Hardware Revision Type
*/