From 110a0c4b1ffce46a5c18f3fa3a24246e77f3230a Mon Sep 17 00:00:00 2001 From: Alexis Lockwood Date: Tue, 3 Jan 2023 21:18:59 -0700 Subject: [PATCH] Clean up the template header a bit Closes #8 --- inc/timdac_config_template_ch32v103.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/inc/timdac_config_template_ch32v103.h b/inc/timdac_config_template_ch32v103.h index ec2dbe2..04d96e7 100644 --- a/inc/timdac_config_template_ch32v103.h +++ b/inc/timdac_config_template_ch32v103.h @@ -9,11 +9,14 @@ // ---------------------------------------------------------------------------- // MAIN DRIVER CONFIGURATION +// Timer base frequency in Hz #define TIMDAC_TIMERFREQ_HZ 72000000 +// How many channels are present, up to 254 #define TIMDAC_N_CHANNELS 4 -#define TIMDAC_DIAGNOSTIC 1 +// Whether special diagnostic functions should be compiled in +#define TIMDAC_DIAGNOSTIC 0 // Include the reference design hardware parameters here: #include "timdac_config_ref1p0.h" @@ -69,6 +72,6 @@ // OPTIONAL GPIO <>: ISR profiler. Goes high when executing the ISR. // For debugging/development. -#define TIMDAC_HW_GPIO_PROFILE GPIOB, GPIO_Pin_2 +//#define TIMDAC_HW_GPIO_PROFILE GPIOB, GPIO_Pin_2 #endif // !defined(TIMDAC_CONFIG_H)