summaryrefslogtreecommitdiff
path: root/quantum/split_common/serial.h
diff options
context:
space:
mode:
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