From d41a1bd864fbfa3f8bbcde79e9cdcd8a4c4ec8d4 Mon Sep 17 00:00:00 2001 From: David Lin Date: Tue, 25 Feb 2020 10:37:57 +0800 Subject: [PATCH 1/4] Fixed macro error ARM_SAI_ERROR_FRAME_LENGHT -> ARM_SAI_ERROR_FRAME_LENGTH --- CMSIS/Driver/Include/Driver_SAI.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMSIS/Driver/Include/Driver_SAI.h b/CMSIS/Driver/Include/Driver_SAI.h index e3563358a5..8e6a4871d0 100644 --- a/CMSIS/Driver/Include/Driver_SAI.h +++ b/CMSIS/Driver/Include/Driver_SAI.h @@ -173,7 +173,7 @@ extern "C" #define ARM_SAI_ERROR_AUDIO_FREQ (ARM_DRIVER_ERROR_SPECIFIC - 8) ///< Specified Audio frequency not supported #define ARM_SAI_ERROR_MCLK_PIN (ARM_DRIVER_ERROR_SPECIFIC - 9) ///< Specified MCLK Pin setting not supported #define ARM_SAI_ERROR_MCLK_PRESCALER (ARM_DRIVER_ERROR_SPECIFIC - 10) ///< Specified MCLK Prescaler not supported -#define ARM_SAI_ERROR_FRAME_LENGHT (ARM_DRIVER_ERROR_SPECIFIC - 11) ///< Specified Frame length not supported +#define ARM_SAI_ERROR_FRAME_LENGTH (ARM_DRIVER_ERROR_SPECIFIC - 11) ///< Specified Frame length not supported #define ARM_SAI_ERROR_FRAME_SYNC_WIDTH (ARM_DRIVER_ERROR_SPECIFIC - 12) ///< Specified Frame Sync width not supported #define ARM_SAI_ERROR_FRAME_SYNC_POLARITY (ARM_DRIVER_ERROR_SPECIFIC - 13) ///< Specified Frame Sync polarity not supported #define ARM_SAI_ERROR_FRAME_SYNC_EARLY (ARM_DRIVER_ERROR_SPECIFIC - 14) ///< Specified Frame Sync early not supported From 5c795b4897368db8a6907293b2cdc35a834f4de5 Mon Sep 17 00:00:00 2001 From: David Lin Date: Tue, 25 Feb 2020 10:39:47 +0800 Subject: [PATCH 2/4] Fixed macro error ARM_SAI_ERROR_FRAME_LENGHT -> ARM_SAI_ERROR_FRAME_LENGTH --- CMSIS/DoxyGen/Driver/src/Driver_SAI.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMSIS/DoxyGen/Driver/src/Driver_SAI.c b/CMSIS/DoxyGen/Driver/src/Driver_SAI.c index a87d731ad4..7d294e9c56 100644 --- a/CMSIS/DoxyGen/Driver/src/Driver_SAI.c +++ b/CMSIS/DoxyGen/Driver/src/Driver_SAI.c @@ -281,7 +281,7 @@ The MCLK pin setting requested with the function \ref ARM_SAI_Control is \def ARM_SAI_ERROR_MCLK_PRESCALER The MCLK prescaler requested with the function \ref ARM_SAI_Control is not supported. -\def ARM_SAI_ERROR_FRAME_LENGHT +\def ARM_SAI_ERROR_FRAME_LENGTH The frame length requested with the function \ref ARM_SAI_Control is not supported. \def ARM_SAI_ERROR_FRAME_SYNC_WIDTH From 5d4410cc79d511acc29b857627007aaa43e22e64 Mon Sep 17 00:00:00 2001 From: David Lin Date: Tue, 25 Feb 2020 10:41:59 +0800 Subject: [PATCH 3/4] Fixed macro error ARM_SAI_ERROR_FRAME_LENGHT -> ARM_SAI_ERROR_FRAME_LENGTH --- CMSIS/Pack/Example/CMSIS_Driver/I2S_LPC18xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMSIS/Pack/Example/CMSIS_Driver/I2S_LPC18xx.c b/CMSIS/Pack/Example/CMSIS_Driver/I2S_LPC18xx.c index ac44979c44..3c674434f8 100644 --- a/CMSIS/Pack/Example/CMSIS_Driver/I2S_LPC18xx.c +++ b/CMSIS/Pack/Example/CMSIS_Driver/I2S_LPC18xx.c @@ -1313,7 +1313,7 @@ static int32_t I2S_Control (uint32_t control, uint32_t arg1, uint32_t arg2, I2S_ // Frame length val = ((arg1 & ARM_SAI_FRAME_LENGTH_Msk) >> ARM_SAI_FRAME_LENGTH_Pos) + 1; - if ((val != 0U) && (val != (data_bits * 2))) { return ARM_SAI_ERROR_FRAME_LENGHT; } + if ((val != 0U) && (val != (data_bits * 2))) { return ARM_SAI_ERROR_FRAME_LENGTH; } // Audio Frequency if (master == 1U) { From bfcdbbefdfc11e65a4276caae22545bc77611d3c Mon Sep 17 00:00:00 2001 From: David Lin Date: Tue, 3 Mar 2020 21:44:34 +0800 Subject: [PATCH 4/4] Fixed macro error Added (@deprecated) to notice the macro 'ARM_SAI_ERROR_FRAME_LENGHT' had been deprecated, and added macro 'ARM_SAI_ERROR_FRAME_LENGTH' to use. --- CMSIS/DoxyGen/Driver/src/Driver_SAI.c | 3 +++ CMSIS/Driver/Include/Driver_SAI.h | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMSIS/DoxyGen/Driver/src/Driver_SAI.c b/CMSIS/DoxyGen/Driver/src/Driver_SAI.c index a87d731ad4..48601dc1f6 100644 --- a/CMSIS/DoxyGen/Driver/src/Driver_SAI.c +++ b/CMSIS/DoxyGen/Driver/src/Driver_SAI.c @@ -281,6 +281,9 @@ The MCLK pin setting requested with the function \ref ARM_SAI_Control is \def ARM_SAI_ERROR_MCLK_PRESCALER The MCLK prescaler requested with the function \ref ARM_SAI_Control is not supported. +\def ARM_SAI_ERROR_FRAME_LENGTH +The frame length requested with the function \ref ARM_SAI_Control is not supported. + \def ARM_SAI_ERROR_FRAME_LENGHT The frame length requested with the function \ref ARM_SAI_Control is not supported. diff --git a/CMSIS/Driver/Include/Driver_SAI.h b/CMSIS/Driver/Include/Driver_SAI.h index e3563358a5..63c84444c4 100644 --- a/CMSIS/Driver/Include/Driver_SAI.h +++ b/CMSIS/Driver/Include/Driver_SAI.h @@ -173,7 +173,8 @@ extern "C" #define ARM_SAI_ERROR_AUDIO_FREQ (ARM_DRIVER_ERROR_SPECIFIC - 8) ///< Specified Audio frequency not supported #define ARM_SAI_ERROR_MCLK_PIN (ARM_DRIVER_ERROR_SPECIFIC - 9) ///< Specified MCLK Pin setting not supported #define ARM_SAI_ERROR_MCLK_PRESCALER (ARM_DRIVER_ERROR_SPECIFIC - 10) ///< Specified MCLK Prescaler not supported -#define ARM_SAI_ERROR_FRAME_LENGHT (ARM_DRIVER_ERROR_SPECIFIC - 11) ///< Specified Frame length not supported +#define ARM_SAI_ERROR_FRAME_LENGTH (ARM_DRIVER_ERROR_SPECIFIC - 11) ///< Specified Frame length not supported +#define ARM_SAI_ERROR_FRAME_LENGHT (ARM_DRIVER_ERROR_SPECIFIC - 11) ///< Specified Frame length not supported (@deprecated) #define ARM_SAI_ERROR_FRAME_SYNC_WIDTH (ARM_DRIVER_ERROR_SPECIFIC - 12) ///< Specified Frame Sync width not supported #define ARM_SAI_ERROR_FRAME_SYNC_POLARITY (ARM_DRIVER_ERROR_SPECIFIC - 13) ///< Specified Frame Sync polarity not supported #define ARM_SAI_ERROR_FRAME_SYNC_EARLY (ARM_DRIVER_ERROR_SPECIFIC - 14) ///< Specified Frame Sync early not supported