[FL-3302] ble: attempt to handle hardfaulted c2 (#2653)

* ble: attempt to handle hardfaulted c2
* MfKey32: nicer macros
* FuriHal: slightly different core2 hardfault message
* Update ReadMe

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
hedger
2023-05-09 13:06:44 +09:00
committed by GitHub
co-authored by あく
parent d5403a089c
commit eebc6241b7
5 changed files with 56 additions and 25 deletions
+1 -1
View File
@@ -41,7 +41,7 @@
#define BIT(x, n) ((x) >> (n)&1)
#define BEBIT(x, n) BIT(x, (n) ^ 24)
#define SWAPENDIAN(x) \
(x = (x >> 8 & 0xff00ff) | (x & 0xff00ff) << 8, x = x >> 16 | x << 16) //-V1003
((x) = ((x) >> 8 & 0xff00ff) | ((x)&0xff00ff) << 8, (x) = (x) >> 16 | (x) << 16)
//#define SIZEOF(arr) sizeof(arr) / sizeof(*arr)
static int eta_round_time = 56;