Skip to content

Commit

Permalink
Driver: Fixed typo in SAI Driver interface macro. (ARM-software#849)
Browse files Browse the repository at this point in the history
ARM_SAI_ERROR_FRAME_LENG*HT* => ARM_SAI_ERROR_FRAME_LENG*TH*
Using @deprecated to notice the wrong one, and added the new.

Change-Id: Ieb4eb047752c29079baa810e88b879800d508921
  • Loading branch information
DavidLin1577 authored and JonatanAntoni committed Mar 26, 2020
1 parent ce0d0b0 commit 22baad6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMSIS/DoxyGen/Driver/src/Driver_SAI.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ The <b>MCLK pin</b> setting requested with the function \ref ARM_SAI_Control is
\def ARM_SAI_ERROR_MCLK_PRESCALER
The <b>MCLK prescaler</b> requested with the function \ref ARM_SAI_Control is not supported.
\def ARM_SAI_ERROR_FRAME_LENGHT
\def ARM_SAI_ERROR_FRAME_LENGTH
The <b>frame length</b> requested with the function \ref ARM_SAI_Control is not supported.
\def ARM_SAI_ERROR_FRAME_SYNC_WIDTH
Expand Down
3 changes: 2 additions & 1 deletion CMSIS/Driver/Include/Driver_SAI.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 use \ref ARM_SAI_ERROR_FRAME_LENGTH instead
#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
Expand Down

0 comments on commit 22baad6

Please sign in to comment.