mirror of
https://github.com/espressif/openthread.git
synced 2026-07-27 22:37:45 +00:00
[toolchain] remove unnecessary OT_TOOL_ALIGN (#4344)
This commit is contained in:
committed by
Jonathan Hui
parent
4b422a33a0
commit
23e89196c0
@@ -85,13 +85,6 @@ extern "C" {
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @def OT_TOOL_ALIGN
|
||||
*
|
||||
* Compiler-specific alignment modifier.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @def OT_TOOL_WEAK
|
||||
*
|
||||
@@ -111,8 +104,6 @@ extern "C" {
|
||||
#define OT_TOOL_PACKED_END __attribute__((packed))
|
||||
#define OT_TOOL_WEAK __attribute__((weak))
|
||||
|
||||
#define OT_TOOL_ALIGN(X)
|
||||
|
||||
#elif defined(__ICCARM__) || defined(__ICC8051__)
|
||||
|
||||
// http://supp.iar.com/FilesPublic/UPDINFO/004916/arm/doc/EWARM_DevelopmentGuide.ENU.pdf
|
||||
@@ -124,8 +115,6 @@ extern "C" {
|
||||
#define OT_TOOL_PACKED_END
|
||||
#define OT_TOOL_WEAK __weak
|
||||
|
||||
#define OT_TOOL_ALIGN(X)
|
||||
|
||||
#elif defined(__SDCC)
|
||||
|
||||
// Structures are packed by default in sdcc, as it primarily targets 8-bit MCUs.
|
||||
@@ -135,8 +124,6 @@ extern "C" {
|
||||
#define OT_TOOL_PACKED_END
|
||||
#define OT_TOOL_WEAK
|
||||
|
||||
#define OT_TOOL_ALIGN(X)
|
||||
|
||||
#else
|
||||
|
||||
#error "Error: No valid Toolchain specified"
|
||||
@@ -148,8 +135,6 @@ extern "C" {
|
||||
#define OT_TOOL_PACKED_END
|
||||
#define OT_TOOL_WEAK
|
||||
|
||||
#define OT_TOOL_ALIGN(X)
|
||||
|
||||
#endif
|
||||
|
||||
// =========== TOOLCHAIN SELECTION : END ===========
|
||||
|
||||
@@ -74,7 +74,6 @@ typedef enum
|
||||
/**
|
||||
* This structure represents an MLE Link Mode configuration.
|
||||
*/
|
||||
OT_TOOL_ALIGN(4)
|
||||
typedef struct otLinkModeConfig
|
||||
{
|
||||
bool mRxOnWhenIdle : 1; ///< 1, if the sender has its receiver on when not transmitting. 0, otherwise.
|
||||
@@ -130,7 +129,6 @@ typedef struct otLeaderData
|
||||
* This structure holds diagnostic information for a Thread Router
|
||||
*
|
||||
*/
|
||||
OT_TOOL_ALIGN(4)
|
||||
typedef struct
|
||||
{
|
||||
otExtAddress mExtAddress; ///< IEEE 802.15.4 Extended Address
|
||||
|
||||
Reference in New Issue
Block a user