Przeglądaj źródła

Drivers: updated guard macros in include file (not using reserved identifier)

Robert Rostohar 9 lat temu
rodzic
commit
4611e7f3dc

+ 3 - 3
CMSIS/Driver/Include/Driver_CAN.h

@@ -26,8 +26,8 @@
  *    Initial release
  */
 
-#ifndef __DRIVER_CAN_H
-#define __DRIVER_CAN_H
+#ifndef DRIVER_CAN_H_
+#define DRIVER_CAN_H_
 
 #include "Driver_Common.h"
 
@@ -359,4 +359,4 @@ typedef struct _ARM_DRIVER_CAN {
   ARM_CAN_STATUS           (*GetStatus)             (void);                             ///< Pointer to \ref ARM_CAN_GetStatus             : Get CAN status.
 } const ARM_DRIVER_CAN;
 
-#endif /* __DRIVER_CAN_H */
+#endif /* DRIVER_CAN_H_ */

+ 3 - 3
CMSIS/Driver/Include/Driver_Common.h

@@ -31,8 +31,8 @@
  *    Initial release
  */
 
-#ifndef __DRIVER_COMMON_H
-#define __DRIVER_COMMON_H
+#ifndef DRIVER_COMMON_H_
+#define DRIVER_COMMON_H_
 
 #include <stddef.h>
 #include <stdint.h>
@@ -66,4 +66,4 @@ typedef enum _ARM_POWER_STATE {
   ARM_POWER_FULL                        ///< Power on: full operation at maximum performance
 } ARM_POWER_STATE;
 
-#endif /* __DRIVER_COMMON_H */
+#endif /* DRIVER_COMMON_H_ */

+ 3 - 3
CMSIS/Driver/Include/Driver_ETH.h

@@ -31,8 +31,8 @@
  *    Initial release
  */
 
-#ifndef __DRIVER_ETH_H
-#define __DRIVER_ETH_H
+#ifndef DRIVER_ETH_H_
+#define DRIVER_ETH_H_
 
 #include "Driver_Common.h"
 
@@ -79,4 +79,4 @@ typedef struct _ARM_ETH_MAC_ADDR {
   uint8_t b[6];                         ///< MAC Address (6 bytes), MSB first
 } ARM_ETH_MAC_ADDR;
 
-#endif /* __DRIVER_ETH_H */
+#endif /* DRIVER_ETH_H_ */

+ 3 - 3
CMSIS/Driver/Include/Driver_ETH_MAC.h

@@ -49,8 +49,8 @@
  *    Initial release
  */
 
-#ifndef __DRIVER_ETH_MAC_H
-#define __DRIVER_ETH_MAC_H
+#ifndef DRIVER_ETH_MAC_H_
+#define DRIVER_ETH_MAC_H_
 
 #include "Driver_ETH.h"
 
@@ -295,4 +295,4 @@ typedef struct _ARM_DRIVER_ETH_MAC {
   int32_t                  (*PHY_Write)       (uint8_t phy_addr, uint8_t reg_addr, uint16_t  data);  ///< Pointer to \ref ARM_ETH_MAC_PHY_Write : Write Ethernet PHY Register through Management Interface.
 } const ARM_DRIVER_ETH_MAC;
 
-#endif /* __DRIVER_ETH_MAC_H */
+#endif /* DRIVER_ETH_MAC_H_ */

+ 3 - 3
CMSIS/Driver/Include/Driver_ETH_PHY.h

@@ -32,8 +32,8 @@
  *    Initial release
  */
 
-#ifndef __DRIVER_ETH_PHY_H
-#define __DRIVER_ETH_PHY_H
+#ifndef DRIVER_ETH_PHY_H_
+#define DRIVER_ETH_PHY_H_
 
 #include "Driver_ETH.h"
 
@@ -127,4 +127,4 @@ typedef struct _ARM_DRIVER_ETH_PHY {
   ARM_ETH_LINK_INFO  (*GetLinkInfo)  (void);                          ///< Pointer to \ref ARM_ETH_PHY_GetLinkInfo : Get Ethernet PHY Device Link information.
 } const ARM_DRIVER_ETH_PHY;
 
-#endif /* __DRIVER_ETH_PHY_H */
+#endif /* DRIVER_ETH_PHY_H_ */

+ 3 - 3
CMSIS/Driver/Include/Driver_Flash.h

@@ -30,8 +30,8 @@
  *    Initial release
  */
 
-#ifndef __DRIVER_FLASH_H
-#define __DRIVER_FLASH_H
+#ifndef DRIVER_FLASH_H_
+#define DRIVER_FLASH_H_
 
 #include "Driver_Common.h"
 
@@ -183,4 +183,4 @@ typedef struct _ARM_DRIVER_FLASH {
   ARM_FLASH_INFO *       (*GetInfo)        (void);                                          ///< Pointer to \ref ARM_Flash_GetInfo : Get Flash information.
 } const ARM_DRIVER_FLASH;
 
-#endif /* __DRIVER_FLASH_H */
+#endif /* DRIVER_FLASH_H_ */

+ 3 - 3
CMSIS/Driver/Include/Driver_I2C.h

@@ -48,8 +48,8 @@
  *    Initial release
  */
 
-#ifndef __DRIVER_I2C_H
-#define __DRIVER_I2C_H
+#ifndef DRIVER_I2C_H_
+#define DRIVER_I2C_H_
 
 #include "Driver_Common.h"
 
@@ -201,4 +201,4 @@ typedef struct _ARM_DRIVER_I2C {
   ARM_I2C_STATUS       (*GetStatus)      (void);                                                                ///< Pointer to \ref ARM_I2C_GetStatus : Get I2C status.
 } const ARM_DRIVER_I2C;
 
-#endif /* __DRIVER_I2C_H */
+#endif /* DRIVER_I2C_H_ */

+ 3 - 3
CMSIS/Driver/Include/Driver_MCI.h

@@ -57,8 +57,8 @@
  *    Initial release
  */
 
-#ifndef __DRIVER_MCI_H
-#define __DRIVER_MCI_H
+#ifndef DRIVER_MCI_H_
+#define DRIVER_MCI_H_
 
 #include "Driver_Common.h"
 
@@ -344,4 +344,4 @@ typedef struct _ARM_DRIVER_MCI {
   ARM_MCI_STATUS       (*GetStatus)      (void);                           ///< Pointer to \ref ARM_MCI_GetStatus : Get MCI status.
 } const ARM_DRIVER_MCI;
 
-#endif /* __DRIVER_MCI_H */
+#endif /* DRIVER_MCI_H_ */

+ 3 - 3
CMSIS/Driver/Include/Driver_NAND.h

@@ -39,8 +39,8 @@
  *    Initial release
  */
 
-#ifndef __DRIVER_NAND_H
-#define __DRIVER_NAND_H
+#ifndef DRIVER_NAND_H_
+#define DRIVER_NAND_H_
 
 #include "Driver_Common.h"
 
@@ -397,4 +397,4 @@ typedef struct _ARM_DRIVER_NAND {
   int32_t               (*InquireECC)     ( int32_t index, ARM_NAND_ECC_INFO *info);                          ///< Pointer to \ref ARM_NAND_InquireECC : Inquire about available ECC. 
 } const ARM_DRIVER_NAND;
 
-#endif /* __DRIVER_NAND_H */
+#endif /* DRIVER_NAND_H_ */

+ 3 - 3
CMSIS/Driver/Include/Driver_SAI.h

@@ -26,8 +26,8 @@
  *    Initial release
  */
 
-#ifndef __DRIVER_SAI_H
-#define __DRIVER_SAI_H
+#ifndef DRIVER_SAI_H_
+#define DRIVER_SAI_H_
 
 #include "Driver_Common.h"
 
@@ -292,4 +292,4 @@ typedef struct _ARM_DRIVER_SAI {
   ARM_SAI_STATUS       (*GetStatus)       (void);                                            ///< Pointer to \ref ARM_SAI_GetStatus : Get SAI status.
 } const ARM_DRIVER_SAI;
 
-#endif /* __DRIVER_SAI_H */
+#endif /* DRIVER_SAI_H_ */

+ 3 - 3
CMSIS/Driver/Include/Driver_SPI.h

@@ -42,8 +42,8 @@
  *    Initial release
  */
 
-#ifndef __DRIVER_SPI_H
-#define __DRIVER_SPI_H
+#ifndef DRIVER_SPI_H_
+#define DRIVER_SPI_H_
 
 #include "Driver_Common.h"
 
@@ -231,4 +231,4 @@ typedef struct _ARM_DRIVER_SPI {
   ARM_SPI_STATUS       (*GetStatus)       (void);                             ///< Pointer to \ref ARM_SPI_GetStatus : Get SPI status.
 } const ARM_DRIVER_SPI;
 
-#endif /* __DRIVER_SPI_H */
+#endif /* DRIVER_SPI_H_ */

+ 3 - 3
CMSIS/Driver/Include/Driver_Storage.h

@@ -15,8 +15,8 @@
  * limitations under the License.
  */
 
-#ifndef __DRIVER_STORAGE_H
-#define __DRIVER_STORAGE_H
+#ifndef DRIVER_STORAGE_H_
+#define DRIVER_STORAGE_H_
 
 #ifdef __cplusplus
 extern "C" {
@@ -415,4 +415,4 @@ typedef struct _ARM_DRIVER_STORAGE {
 }
 #endif // __cplusplus
 
-#endif /* __DRIVER_STORAGE_H */
+#endif /* DRIVER_STORAGE_H_ */

+ 3 - 3
CMSIS/Driver/Include/Driver_USART.h

@@ -50,8 +50,8 @@
  *    Initial release
  */
 
-#ifndef __DRIVER_USART_H
-#define __DRIVER_USART_H
+#ifndef DRIVER_USART_H_
+#define DRIVER_USART_H_
 
 #include "Driver_Common.h"
 
@@ -324,4 +324,4 @@ typedef struct _ARM_DRIVER_USART {
   ARM_USART_MODEM_STATUS (*GetModemStatus)  (void);                              ///< Pointer to \ref ARM_USART_GetModemStatus : Get USART Modem Status lines state.
 } const ARM_DRIVER_USART;
 
-#endif /* __DRIVER_USART_H */
+#endif /* DRIVER_USART_H_ */

+ 3 - 3
CMSIS/Driver/Include/Driver_USB.h

@@ -31,8 +31,8 @@
  *    Initial release
  */
 
-#ifndef __DRIVER_USB_H
-#define __DRIVER_USB_H
+#ifndef DRIVER_USB_H_
+#define DRIVER_USB_H_
 
 #include "Driver_Common.h"
 
@@ -89,4 +89,4 @@
 #define ARM_USB_ENDPOINT_MICROFRAME_TRANSACTIONS_2      0x0800
 #define ARM_USB_ENDPOINT_MICROFRAME_TRANSACTIONS_3      0x1000
 
-#endif /* __DRIVER_USB_H */
+#endif /* DRIVER_USB_H_ */

+ 3 - 3
CMSIS/Driver/Include/Driver_USBD.h

@@ -39,8 +39,8 @@
  *    Initial release
  */
 
-#ifndef __DRIVER_USBD_H
-#define __DRIVER_USBD_H
+#ifndef DRIVER_USBD_H_
+#define DRIVER_USBD_H_
 
 #include "Driver_USB.h"
 
@@ -257,4 +257,4 @@ typedef struct _ARM_DRIVER_USBD {
 
 #endif /* __DOXYGEN_MW__ */
 
-#endif /* __DRIVER_USBD_H */
+#endif /* DRIVER_USBD_H_ */

+ 3 - 3
CMSIS/Driver/Include/Driver_USBH.h

@@ -39,8 +39,8 @@
  *    Initial release
  */
 
-#ifndef __DRIVER_USBH_H
-#define __DRIVER_USBH_H
+#ifndef DRIVER_USBH_H_
+#define DRIVER_USBH_H_
 
 #include "Driver_USB.h"
 
@@ -395,4 +395,4 @@ typedef struct _ARM_DRIVER_USBH_HCI {
 
 #endif /* __DOXYGEN_MW__ */
 
-#endif /* __DRIVER_USBH_H */
+#endif /* DRIVER_USBH_H_ */