From f9c19eaa9ab11e4409679fc6d2862c89410493a7 Mon Sep 17 00:00:00 2001 From: Kshitij Sisodia Date: Fri, 7 May 2021 16:08:14 +0100 Subject: MLECO-1860: Support for Arm GNU Embedded Toolchain This patch enables compilation of ML use cases bare-metal applications using Arm GNU Embedded Toolchain. The GNU toolchain can be used instead of the Arm Compiler that was already supported. The GNU toolchain is also set as the default toolchain when building applications for the MPS3 target. Note: The version of GNU toolchain must be 10.2.1 or higher. Change-Id: I5fff242f0f52d2db6c75d292f9fa990df1aec978 Signed-off-by: Kshitij Sisodia --- source/use_case/ad/src/MelSpectrogram.cc | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'source/use_case/ad/src/MelSpectrogram.cc') diff --git a/source/use_case/ad/src/MelSpectrogram.cc b/source/use_case/ad/src/MelSpectrogram.cc index 372ebd8..f1752e1 100644 --- a/source/use_case/ad/src/MelSpectrogram.cc +++ b/source/use_case/ad/src/MelSpectrogram.cc @@ -19,6 +19,7 @@ #include "PlatformMath.hpp" #include +#include namespace arm { namespace app { @@ -46,16 +47,16 @@ namespace audio { { char strC[1024]; snprintf(strC, sizeof(strC) - 1, "\n \ - \n\t Sampling frequency: %f\ - \n\t Number of filter banks: %u\ - \n\t Mel frequency limit (low): %f\ - \n\t Mel frequency limit (high): %f\ - \n\t Frame length: %u\ - \n\t Padded frame length: %u\ - \n\t Using HTK for Mel scale: %s\n", - this->m_samplingFreq, this->m_numFbankBins, this->m_melLoFreq, - this->m_melHiFreq, this->m_frameLen, - this->m_frameLenPadded, this->m_useHtkMethod ? "yes" : "no"); + \n\t Sampling frequency: %f\ + \n\t Number of filter banks: %" PRIu32 "\ + \n\t Mel frequency limit (low): %f\ + \n\t Mel frequency limit (high): %f\ + \n\t Frame length: %" PRIu32 "\ + \n\t Padded frame length: %" PRIu32 "\ + \n\t Using HTK for Mel scale: %s\n", + this->m_samplingFreq, this->m_numFbankBins, this->m_melLoFreq, + this->m_melHiFreq, this->m_frameLen, + this->m_frameLenPadded, this->m_useHtkMethod ? "yes" : "no"); return std::string{strC}; } -- cgit v1.2.1