summaryrefslogtreecommitdiff
path: root/quantum/split_common/serial.h
diff options
context:
space:
mode:
authorskullY <skullydazed@gmail.com>2019-08-30 11:19:03 -0700
committerFlorian Didron <fdidron@users.noreply.github.com>2019-09-17 11:39:43 +0900
commitf8fe33acfac01064112fd2b5da680abfb5190b97 (patch)
treefcf75ef930800a948e5a3ba015d6759889f2284d /quantum/split_common/serial.h
parentc339d670684674165b422a0168bfd2016ff2e6ef (diff)
clang-format changes
Diffstat (limited to 'quantum/split_common/serial.h')
-rw-r--r--quantum/split_common/serial.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/quantum/split_common/serial.h b/quantum/split_common/serial.h
index 1c1e640069..53e66cf905 100644
--- a/quantum/split_common/serial.h
+++ b/quantum/split_common/serial.h
@@ -22,14 +22,14 @@
// /////////////////////////////////////////////////////////////////
// Soft Serial Transaction Descriptor
-typedef struct _SSTD_t {
+typedef struct _SSTD_t {
uint8_t *status;
- uint8_t initiator2target_buffer_size;
+ uint8_t initiator2target_buffer_size;
uint8_t *initiator2target_buffer;
- uint8_t target2initiator_buffer_size;
+ uint8_t target2initiator_buffer_size;
uint8_t *target2initiator_buffer;
} SSTD_t;
-#define TID_LIMIT( table ) (sizeof(table) / sizeof(SSTD_t))
+#define TID_LIMIT(table) (sizeof(table) / sizeof(SSTD_t))
// initiator is transaction start side
void soft_serial_initiator_init(SSTD_t *sstd_table, int sstd_table_size);
@@ -39,12 +39,12 @@ void soft_serial_target_init(SSTD_t *sstd_table, int sstd_table_size);
// initiator resullt
#define TRANSACTION_END 0
#define TRANSACTION_NO_RESPONSE 0x1
-#define TRANSACTION_DATA_ERROR 0x2
-#define TRANSACTION_TYPE_ERROR 0x4
+#define TRANSACTION_DATA_ERROR 0x2
+#define TRANSACTION_TYPE_ERROR 0x4
#ifndef SERIAL_USE_MULTI_TRANSACTION
-int soft_serial_transaction(void);
+int soft_serial_transaction(void);
#else
-int soft_serial_transaction(int sstd_index);
+int soft_serial_transaction(int sstd_index);
#endif
// target status
@@ -58,5 +58,5 @@ int soft_serial_transaction(int sstd_index);
// or TRANSACTION_ACCEPTED
#define TRANSACTION_ACCEPTED 0x8
#ifdef SERIAL_USE_MULTI_TRANSACTION
-int soft_serial_get_and_clean_status(int sstd_index);
+int soft_serial_get_and_clean_status(int sstd_index);
#endif