usbd: Added an array length helper macro
This commit is contained in:
committed by
Piotr Esden-Tempski
parent
7aa5270809
commit
5ba3293da2
@@ -42,6 +42,9 @@ LGPL License Terms @ref lgpl_license
|
||||
|
||||
BEGIN_DECLS
|
||||
|
||||
#ifndef ARRAY_LENGTH
|
||||
#define ARRAY_LENGTH(array) (sizeof(array) / sizeof(*(array)))
|
||||
#endif
|
||||
|
||||
enum usbd_request_return_codes {
|
||||
USBD_REQ_NOTSUPP = 0,
|
||||
|
||||
Reference in New Issue
Block a user