added PACKED attribute for structures and reorganize include folder

This commit is contained in:
merlokk
2019-07-16 14:50:38 +03:00
parent 19469fc676
commit 20d13d5509
18 changed files with 204 additions and 183 deletions

View File

@@ -13,20 +13,11 @@
#ifndef __PM3_CMD_H
#define __PM3_CMD_H
#include "common.h"
// Use it e.g. when using slow links such as BT
#define USART_SLOW_LINK
#ifdef _MSC_VER
typedef DWORD uint32_t;
typedef BYTE uint8_t;
#define PACKED
// stuff
#else
#include <stdint.h>
#include <stdbool.h>
#define PACKED __attribute__((packed))
#endif
#define PM3_CMD_DATA_SIZE 512
#define PM3_CMD_DATA_SIZE_MIX ( PM3_CMD_DATA_SIZE - 3 * sizeof(uint64_t) )