Add debug pin

This commit is contained in:
Jan-Henrik 2020-04-27 01:01:55 +02:00
parent 04787576fe
commit 1ddc290b20

View file

@ -0,0 +1,11 @@
#pragma once
#ifdef ENABLE_DEBUG_PIN
#define DEBUG_PIN
#define DEBUG_ON HAL_GPIO_WritePin(GPIOC, GPIO_PIN_14, GPIO_PIN_SET);
#define DEBUG_OFF HAL_GPIO_WritePin(GPIOC, GPIO_PIN_14, GPIO_PIN_RESET);
#else
#define DEBUG_ON {};
#define DEBUG_OFF {};
#endif