Subversion Repositories DashDisplay

Rev

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 5
Line 1... Line 1...
1
/**
1
/**
2
  ******************************************************************************
2
  ******************************************************************************
3
  * @file    stm32f1xx_hal_i2s.c
3
  * @file    stm32f1xx_hal_i2s.c
4
  * @author  MCD Application Team
4
  * @author  MCD Application Team
5
  * @version V1.0.1
5
  * @version V1.0.4
6
  * @date    31-July-2015
6
  * @date    29-April-2016
7
  * @brief   I2S HAL module driver.
7
  * @brief   I2S HAL module driver.
8
  *          This file provides firmware functions to manage the following
8
  *          This file provides firmware functions to manage the following
9
  *          functionalities of the Integrated Interchip Sound (I2S) peripheral:
9
  *          functionalities of the Integrated Interchip Sound (I2S) peripheral:
10
  *           + Initialization and de-initialization functions
10
  *           + Initialization and de-initialization functions
11
  *           + IO operation functions
11
  *           + IO operation functions
Line 117... Line 117...
117
 
117
 
118
  @endverbatim
118
  @endverbatim
119
  ******************************************************************************
119
  ******************************************************************************
120
  * @attention
120
  * @attention
121
  *
121
  *
122
  * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
122
  * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
123
  *
123
  *
124
  * Redistribution and use in source and binary forms, with or without modification,
124
  * Redistribution and use in source and binary forms, with or without modification,
125
  * are permitted provided that the following conditions are met:
125
  * are permitted provided that the following conditions are met:
126
  *   1. Redistributions of source code must retain the above copyright notice,
126
  *   1. Redistributions of source code must retain the above copyright notice,
127
  *      this list of conditions and the following disclaimer.
127
  *      this list of conditions and the following disclaimer.
Line 383... Line 383...
383
  *         the configuration information for I2S module
383
  *         the configuration information for I2S module
384
  * @retval None
384
  * @retval None
385
  */
385
  */
386
 __weak void HAL_I2S_MspInit(I2S_HandleTypeDef *hi2s)
386
 __weak void HAL_I2S_MspInit(I2S_HandleTypeDef *hi2s)
387
{
387
{
-
 
388
  /* Prevent unused argument(s) compilation warning */
-
 
389
  UNUSED(hi2s);
388
  /* NOTE : This function Should not be modified, when the callback is needed,
390
  /* NOTE : This function Should not be modified, when the callback is needed,
389
            the HAL_I2S_MspInit could be implemented in the user file
391
            the HAL_I2S_MspInit could be implemented in the user file
390
   */
392
   */
391
}
393
}
392
 
394
 
Line 396... Line 398...
396
  *         the configuration information for I2S module
398
  *         the configuration information for I2S module
397
  * @retval None
399
  * @retval None
398
  */
400
  */
399
 __weak void HAL_I2S_MspDeInit(I2S_HandleTypeDef *hi2s)
401
 __weak void HAL_I2S_MspDeInit(I2S_HandleTypeDef *hi2s)
400
{
402
{
-
 
403
  /* Prevent unused argument(s) compilation warning */
-
 
404
  UNUSED(hi2s);
401
  /* NOTE : This function Should not be modified, when the callback is needed,
405
  /* NOTE : This function Should not be modified, when the callback is needed,
402
            the HAL_I2S_MspDeInit could be implemented in the user file
406
            the HAL_I2S_MspDeInit could be implemented in the user file
403
   */
407
   */
404
}
408
}
405
 
409
 
Line 1117... Line 1121...
1117
  *         the configuration information for I2S module
1121
  *         the configuration information for I2S module
1118
  * @retval None
1122
  * @retval None
1119
  */
1123
  */
1120
 __weak void HAL_I2S_TxHalfCpltCallback(I2S_HandleTypeDef *hi2s)
1124
 __weak void HAL_I2S_TxHalfCpltCallback(I2S_HandleTypeDef *hi2s)
1121
{
1125
{
-
 
1126
  /* Prevent unused argument(s) compilation warning */
-
 
1127
  UNUSED(hi2s);
1122
  /* NOTE : This function Should not be modified, when the callback is needed,
1128
  /* NOTE : This function Should not be modified, when the callback is needed,
1123
            the HAL_I2S_TxHalfCpltCallback could be implemented in the user file
1129
            the HAL_I2S_TxHalfCpltCallback could be implemented in the user file
1124
   */
1130
   */
1125
}
1131
}
1126
 
1132
 
Line 1130... Line 1136...
1130
  *         the configuration information for I2S module
1136
  *         the configuration information for I2S module
1131
  * @retval None
1137
  * @retval None
1132
  */
1138
  */
1133
 __weak void HAL_I2S_TxCpltCallback(I2S_HandleTypeDef *hi2s)
1139
 __weak void HAL_I2S_TxCpltCallback(I2S_HandleTypeDef *hi2s)
1134
{
1140
{
-
 
1141
  /* Prevent unused argument(s) compilation warning */
-
 
1142
  UNUSED(hi2s);
1135
  /* NOTE : This function Should not be modified, when the callback is needed,
1143
  /* NOTE : This function Should not be modified, when the callback is needed,
1136
            the HAL_I2S_TxCpltCallback could be implemented in the user file
1144
            the HAL_I2S_TxCpltCallback could be implemented in the user file
1137
   */
1145
   */
1138
}
1146
}
1139
 
1147
 
Line 1143... Line 1151...
1143
  *         the configuration information for I2S module
1151
  *         the configuration information for I2S module
1144
  * @retval None
1152
  * @retval None
1145
  */
1153
  */
1146
__weak void HAL_I2S_RxHalfCpltCallback(I2S_HandleTypeDef *hi2s)
1154
__weak void HAL_I2S_RxHalfCpltCallback(I2S_HandleTypeDef *hi2s)
1147
{
1155
{
-
 
1156
  /* Prevent unused argument(s) compilation warning */
-
 
1157
  UNUSED(hi2s);
1148
  /* NOTE : This function Should not be modified, when the callback is needed,
1158
  /* NOTE : This function Should not be modified, when the callback is needed,
1149
            the HAL_I2S_RxHalfCpltCallback could be implemented in the user file
1159
            the HAL_I2S_RxHalfCpltCallback could be implemented in the user file
1150
   */
1160
   */
1151
}
1161
}
1152
 
1162
 
Line 1156... Line 1166...
1156
  *         the configuration information for I2S module
1166
  *         the configuration information for I2S module
1157
  * @retval None
1167
  * @retval None
1158
  */
1168
  */
1159
__weak void HAL_I2S_RxCpltCallback(I2S_HandleTypeDef *hi2s)
1169
__weak void HAL_I2S_RxCpltCallback(I2S_HandleTypeDef *hi2s)
1160
{
1170
{
-
 
1171
  /* Prevent unused argument(s) compilation warning */
-
 
1172
  UNUSED(hi2s);
1161
  /* NOTE : This function Should not be modified, when the callback is needed,
1173
  /* NOTE : This function Should not be modified, when the callback is needed,
1162
            the HAL_I2S_RxCpltCallback could be implemented in the user file
1174
            the HAL_I2S_RxCpltCallback could be implemented in the user file
1163
   */
1175
   */
1164
}
1176
}
1165
 
1177
 
Line 1169... Line 1181...
1169
  *         the configuration information for I2S module
1181
  *         the configuration information for I2S module
1170
  * @retval None
1182
  * @retval None
1171
  */
1183
  */
1172
 __weak void HAL_I2S_ErrorCallback(I2S_HandleTypeDef *hi2s)
1184
 __weak void HAL_I2S_ErrorCallback(I2S_HandleTypeDef *hi2s)
1173
{
1185
{
-
 
1186
  /* Prevent unused argument(s) compilation warning */
-
 
1187
  UNUSED(hi2s);
1174
  /* NOTE : This function Should not be modified, when the callback is needed,
1188
  /* NOTE : This function Should not be modified, when the callback is needed,
1175
            the HAL_I2S_ErrorCallback could be implemented in the user file
1189
            the HAL_I2S_ErrorCallback could be implemented in the user file
1176
   */
1190
   */
1177
}
1191
}
1178
 
1192