Update develop. Ready for pre-release v0.4 #49
@@ -27,6 +27,10 @@
 | 
				
			|||||||
#include <stm-periph/rcc-manager.h>
 | 
					#include <stm-periph/rcc-manager.h>
 | 
				
			||||||
#include <stm32/stm32f4xx.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)
 | 
					enum hw_revision get_pcb_hardware_version(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	uint8_t current_pin;
 | 
						uint8_t current_pin;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -48,7 +48,6 @@
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
#define HW_REV_DETECT_PIN_HIGH (15U)
 | 
					#define HW_REV_DETECT_PIN_HIGH (15U)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * @brief PCB/Hardware Revision Type
 | 
					 * @brief PCB/Hardware Revision Type
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user