Skip to content

Commit 3d2e092

Browse files
committed
Ran make format
1 parent b36e0bb commit 3d2e092

4 files changed

Lines changed: 20 additions & 11 deletions

File tree

include/reactor-uc/event.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
#include <stdbool.h>
88

99
#define EVENT_INIT(Tag, Trigger, Payload) \
10-
{.super.type = EVENT, .super.tag = Tag, .intended_tag = Tag, .trigger = Trigger, .super.payload = Payload}
10+
{ .super.type = EVENT, .super.tag = Tag, .intended_tag = Tag, .trigger = Trigger, .super.payload = Payload }
1111

1212
#define SYSTEM_EVENT_INIT(Tag, Handler, Payload) \
13-
{.super.type = SYSTEM_EVENT, .super.tag = Tag, .super.payload = Payload, .handler = Handler}
13+
{ .super.type = SYSTEM_EVENT, .super.tag = Tag, .super.payload = Payload, .handler = Handler }
1414

1515
typedef struct Trigger Trigger;
1616
typedef struct SystemEventHandler SystemEventHandler;

include/reactor-uc/tag.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,15 @@
3838
#define NEVER_TAG \
3939
(tag_t) { .time = NEVER, .microstep = NEVER_MICROSTEP }
4040
// Need a separate initializer expression to comply with some C compilers
41-
#define NEVER_TAG_INITIALIZER {NEVER, NEVER_MICROSTEP}
41+
#define NEVER_TAG_INITIALIZER \
42+
{ NEVER, NEVER_MICROSTEP }
4243
#define FOREVER_TAG \
4344
(tag_t) { .time = FOREVER, .microstep = FOREVER_MICROSTEP }
4445
// Need a separate initializer expression to comply with some C compilers
45-
#define FOREVER_TAG_INITIALIZER {FOREVER, FOREVER_MICROSTEP}
46-
#define ZERO_TAG (tag_t){.time = 0LL, .microstep = 0u}
46+
#define FOREVER_TAG_INITIALIZER \
47+
{ FOREVER, FOREVER_MICROSTEP }
48+
#define ZERO_TAG \
49+
(tag_t) { .time = 0LL, .microstep = 0u }
4750

4851
// Returns true if timeout has elapsed.
4952
#define CHECK_TIMEOUT(start, duration) (lf_time_physical() > ((start) + (duration)))

src/platform/patmos/s4noc_channel.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
#define S4NOC_CHANNEL_DEBUG(fmt, ...) LF_DEBUG(NET, "S4NOCPollChannel: " fmt, ##__VA_ARGS__)
1313

1414
#if HANDLE_NEW_CONNECTIONS
15-
#define S4NOC_OPEN_MESSAGE_REQUEST {0xC0, 0x18, 0x11, 0xC0}
16-
#define S4NOC_OPEN_MESSAGE_RESPONSE {0xC0, 0xFF, 0x31, 0xC0}
15+
#define S4NOC_OPEN_MESSAGE_REQUEST \
16+
{ 0xC0, 0x18, 0x11, 0xC0 }
17+
#define S4NOC_OPEN_MESSAGE_RESPONSE \
18+
{ 0xC0, 0xFF, 0x31, 0xC0 }
1719
#endif
1820

1921
S4NOCGlobalState s4noc_global_state = {0};

src/platform/pico/uart_channel.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@
99
#define UART_CHANNEL_INFO(fmt, ...) LF_INFO(NET, "UartPolledChannel: " fmt, ##__VA_ARGS__)
1010
#define UART_CHANNEL_DEBUG(fmt, ...) LF_DEBUG(NET, "UartPolledChannel: " fmt, ##__VA_ARGS__)
1111

12-
#define UART_OPEN_MESSAGE_REQUEST {0xC0, 0x18, 0x11, 0xC0, 0xDD}
13-
#define UART_OPEN_MESSAGE_RESPONSE {0xC0, 0xFF, 0x31, 0xC0, 0xDD}
14-
#define UART_MESSAGE_PREFIX {0xAA, 0xAA, 0xAA, 0xAA, 0xAA}
15-
#define UART_MESSAGE_POSTFIX {0xBB, 0xBB, 0xBB, 0xBB, 0xBD}
12+
#define UART_OPEN_MESSAGE_REQUEST \
13+
{ 0xC0, 0x18, 0x11, 0xC0, 0xDD }
14+
#define UART_OPEN_MESSAGE_RESPONSE \
15+
{ 0xC0, 0xFF, 0x31, 0xC0, 0xDD }
16+
#define UART_MESSAGE_PREFIX \
17+
{ 0xAA, 0xAA, 0xAA, 0xAA, 0xAA }
18+
#define UART_MESSAGE_POSTFIX \
19+
{ 0xBB, 0xBB, 0xBB, 0xBB, 0xBD }
1620
#define UART_CLOSE_MESSAGE {0x2, 0xF, 0x6, 0xC, 0x2};
1721
#define MINIMUM_MESSAGE_SIZE 10
1822
#define UART_CHANNEL_EXPECTED_CONNECT_DURATION MSEC(2500)

0 commit comments

Comments
 (0)