Merge pull request #251 from merlokk/reorg_includes

added PACKED attribute for structures and reorganize include folder
This commit is contained in:
Philippe Teuwen 2019-07-16 14:52:14 +02:00 committed by GitHub
commit ed4289d462
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 216 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) )