summaryrefslogtreecommitdiff
path: root/tinyusb/class/cdc
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-03-28 14:16:14 +0700
committerhathach <[email protected]>2018-03-28 14:23:38 +0700
commit43ac71179564fc021c2b77408b7f6ba594626007 (patch)
tree562ea32e78e5af065a823786f57d6326c2c9b97a /tinyusb/class/cdc
parent9cacb93bd829bfd3bca0cf7668e0c63053261fe7 (diff)
rename STATIC_ASSERT to VERIFY_STATIC to avoid name conflict with other codes
Diffstat (limited to 'tinyusb/class/cdc')
-rw-r--r--tinyusb/class/cdc/cdc.h6
-rw-r--r--tinyusb/class/cdc/cdc_rndis.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/tinyusb/class/cdc/cdc.h b/tinyusb/class/cdc/cdc.h
index 653704a78..b0c4f90d4 100644
--- a/tinyusb/class/cdc/cdc.h
+++ b/tinyusb/class/cdc/cdc.h
@@ -300,7 +300,7 @@ typedef struct ATTR_PACKED
uint8_t : 0;
}cdc_acm_capability_t;
-STATIC_ASSERT(sizeof(cdc_acm_capability_t) == 1, "mostly problem with compiler");
+VERIFY_STATIC(sizeof(cdc_acm_capability_t) == 1, "mostly problem with compiler");
/// \brief Abstract Control Management Functional Descriptor
/// \details This functional descriptor describes the commands supported by by the Communications Class interface with SubClass code of \ref CDC_COMM_SUBCLASS_ABSTRACT_CONTROL_MODEL
@@ -390,7 +390,7 @@ typedef struct ATTR_PACKED
uint8_t data_bits; ///< can be 5, 6, 7, 8 or 16
} cdc_line_coding_t;
-STATIC_ASSERT(sizeof(cdc_line_coding_t) == 7, "size is not correct");
+VERIFY_STATIC(sizeof(cdc_line_coding_t) == 7, "size is not correct");
typedef struct ATTR_PACKED
{
@@ -399,7 +399,7 @@ typedef struct ATTR_PACKED
uint16_t : 14;
} cdc_line_control_state_t;
-STATIC_ASSERT(sizeof(cdc_line_control_state_t) == 2, "size is not correct");
+VERIFY_STATIC(sizeof(cdc_line_control_state_t) == 2, "size is not correct");
/** @} */
diff --git a/tinyusb/class/cdc/cdc_rndis.h b/tinyusb/class/cdc/cdc_rndis.h
index 8076a5bb5..460477eb0 100644
--- a/tinyusb/class/cdc/cdc_rndis.h
+++ b/tinyusb/class/cdc/cdc_rndis.h
@@ -142,7 +142,7 @@ typedef struct {
uint8_t oid_buffer[] ; ///< Flexible array contains the input data supplied by the host, required for the OID query request processing by the device, as per the host NDIS specification.
} rndis_msg_query_t, rndis_msg_set_t;
-STATIC_ASSERT(sizeof(rndis_msg_query_t) == 28, "Make sure flexible array member does not affect layout");
+VERIFY_STATIC(sizeof(rndis_msg_query_t) == 28, "Make sure flexible array member does not affect layout");
/// \brief Query Complete Message
/// \details This message MUST be sent by the device in response to a query OID message.
@@ -156,7 +156,7 @@ typedef struct {
uint8_t oid_buffer[] ; ///< Flexible array member contains the response data to the OID query request as specified by the host.
} rndis_msg_query_cmplt_t;
-STATIC_ASSERT(sizeof(rndis_msg_query_cmplt_t) == 24, "Make sure flexible array member does not affect layout");
+VERIFY_STATIC(sizeof(rndis_msg_query_cmplt_t) == 24, "Make sure flexible array member does not affect layout");
//------------- Reset -------------//
/// \brief Reset Message