Add compile error for configuration mistake
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
@@ -48,7 +48,6 @@
 | 
			
		||||
 */
 | 
			
		||||
#define HW_REV_DETECT_PIN_HIGH (15U)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief PCB/Hardware Revision Type
 | 
			
		||||
 */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user