Add debugPins module that provides functions to set and clear debug GPIOs.

Disable logging once again.
This commit is contained in:
JF
2020-03-01 21:00:59 +01:00
parent 5bc0640b73
commit 6f1857c503
5 changed files with 88 additions and 3 deletions

25
src/drivers/DebugPins.h Normal file
View File

@@ -0,0 +1,25 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
typedef enum {
DebugPin0 = 27,
DebugPin1 = 29,
DebugPin2 = 20,
DebugPin3 = 17,
DebugPin4 = 11,
} debugpins_pins;
void debugpins_init();
void debugpins_set(debugpins_pins pin);
void debugpins_clear(debugpins_pins pin);
void debugpins_pulse(debugpins_pins pin);
#ifdef __cplusplus
}
#endif