steps towards tle8888

This commit is contained in:
rusefi 2020-05-06 19:15:52 -04:00
parent a20684e9ed
commit 7e817fb4fd
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@
#define BIT(n) (UINT32_C(1) << (n))
// we also have efi::size which probably does not work for C code
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
// human-readable IDs start from 1 while computer-readbale indexes start from 0
#define ID2INDEX(id) ((id) - 1)