添加cmakelists的支持,修复了一些静态检查warning

This commit is contained in:
NeoZng
2023-07-26 14:31:49 +08:00
parent 668848a1e8
commit cb3aeb4063
10 changed files with 147 additions and 36 deletions

View File

@@ -4,7 +4,7 @@
#include "string.h"
static PWMInstance *buzzer;
static uint8_t idx;
// static uint8_t idx;
static BuzzzerInstance *buzzer_list[BUZZER_DEVICE_CNT] = {0};
/**
@@ -84,6 +84,8 @@ void BuzzerTask()
case OCTAVE_7:
PWMSetPeriod(buzzer, (float)1 / SiFreq);
break;
default:
break;
}
break;
}