diff options
| author | Fred Sundvik <fsundvik@gmail.com> | 2016-05-15 13:38:59 +0300 |
|---|---|---|
| committer | Fred Sundvik <fsundvik@gmail.com> | 2016-05-15 13:38:59 +0300 |
| commit | a0297a892ee1fc571cd9bdc447d2c2726a210629 (patch) | |
| tree | 1a40c6c6291f38f64fdc908d06ea9a22afa924a1 | |
| parent | b4ab61171e83eeca82fbc1930fcaab175b45c656 (diff) | |
| download | qmk_firmware-a0297a892ee1fc571cd9bdc447d2c2726a210629.tar.gz qmk_firmware-a0297a892ee1fc571cd9bdc447d2c2726a210629.zip | |
Rename system to serial_link
Also combined driver.h with serial_link.h
| -rw-r--r-- | serial_link/protocol/transport.h | 2 | ||||
| -rw-r--r-- | serial_link/protocol/triple_buffered_object.c | 2 | ||||
| -rw-r--r-- | serial_link/system/driver.h | 36 | ||||
| -rw-r--r-- | serial_link/system/serial_link.c (renamed from serial_link/system/system.c) | 3 | ||||
| -rw-r--r-- | serial_link/system/serial_link.h (renamed from serial_link/system/system.h) | 11 |
5 files changed, 12 insertions, 42 deletions
diff --git a/serial_link/protocol/transport.h b/serial_link/protocol/transport.h index e518aaa6e..9a052d880 100644 --- a/serial_link/protocol/transport.h +++ b/serial_link/protocol/transport.h | |||
| @@ -26,7 +26,7 @@ SOFTWARE. | |||
| 26 | #define SERIAL_LINK_TRANSPORT_H | 26 | #define SERIAL_LINK_TRANSPORT_H |
| 27 | 27 | ||
| 28 | #include "serial_link/protocol/triple_buffered_object.h" | 28 | #include "serial_link/protocol/triple_buffered_object.h" |
| 29 | #include "serial_link/system/system.h" | 29 | #include "serial_link/system/serial_link.h" |
| 30 | 30 | ||
| 31 | #define NUM_SLAVES 8 | 31 | #define NUM_SLAVES 8 |
| 32 | #define LOCAL_OBJECT_EXTRA 16 | 32 | #define LOCAL_OBJECT_EXTRA 16 |
diff --git a/serial_link/protocol/triple_buffered_object.c b/serial_link/protocol/triple_buffered_object.c index c6bf28af0..e3e8989d3 100644 --- a/serial_link/protocol/triple_buffered_object.c +++ b/serial_link/protocol/triple_buffered_object.c | |||
| @@ -23,7 +23,7 @@ SOFTWARE. | |||
| 23 | */ | 23 | */ |
| 24 | 24 | ||
| 25 | #include "serial_link/protocol/triple_buffered_object.h" | 25 | #include "serial_link/protocol/triple_buffered_object.h" |
| 26 | #include "serial_link/system/system.h" | 26 | #include "serial_link/system/serial_link.h" |
| 27 | #include <stdbool.h> | 27 | #include <stdbool.h> |
| 28 | #include <stddef.h> | 28 | #include <stddef.h> |
| 29 | 29 | ||
diff --git a/serial_link/system/driver.h b/serial_link/system/driver.h deleted file mode 100644 index 76e2d682c..000000000 --- a/serial_link/system/driver.h +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | /* | ||
| 2 | The MIT License (MIT) | ||
| 3 | |||
| 4 | Copyright (c) 2016 Fred Sundvik | ||
| 5 | |||
| 6 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| 7 | of this software and associated documentation files (the "Software"), to deal | ||
| 8 | in the Software without restriction, including without limitation the rights | ||
| 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| 10 | copies of the Software, and to permit persons to whom the Software is | ||
| 11 | furnished to do so, subject to the following conditions: | ||
| 12 | |||
| 13 | The above copyright notice and this permission notice shall be included in all | ||
| 14 | copies or substantial portions of the Software. | ||
| 15 | |||
| 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| 22 | SOFTWARE. | ||
| 23 | */ | ||
| 24 | |||
| 25 | #ifndef SERIAL_LINK_DRIVER_H | ||
| 26 | #define SERIAL_LINK_DRIVER_H | ||
| 27 | |||
| 28 | #include "host_driver.h" | ||
| 29 | |||
| 30 | void init_serial_link(void); | ||
| 31 | void init_serial_link_hal(void); | ||
| 32 | bool is_serial_link_connected(void); | ||
| 33 | host_driver_t* get_serial_link_driver(void); | ||
| 34 | void serial_link_update(void); | ||
| 35 | |||
| 36 | #endif | ||
diff --git a/serial_link/system/system.c b/serial_link/system/serial_link.c index f5af9baa7..27e61a9e9 100644 --- a/serial_link/system/system.c +++ b/serial_link/system/serial_link.c | |||
| @@ -23,8 +23,7 @@ SOFTWARE. | |||
| 23 | */ | 23 | */ |
| 24 | #include "report.h" | 24 | #include "report.h" |
| 25 | #include "host_driver.h" | 25 | #include "host_driver.h" |
| 26 | #include "serial_link/system/system.h" | 26 | #include "serial_link/system/serial_link.h" |
| 27 | #include "serial_link/system/driver.h" | ||
| 28 | #include "hal.h" | 27 | #include "hal.h" |
| 29 | #include "serial_link/protocol/byte_stuffer.h" | 28 | #include "serial_link/protocol/byte_stuffer.h" |
| 30 | #include "serial_link/protocol/transport.h" | 29 | #include "serial_link/protocol/transport.h" |
diff --git a/serial_link/system/system.h b/serial_link/system/serial_link.h index fcc27425e..132cb657f 100644 --- a/serial_link/system/system.h +++ b/serial_link/system/serial_link.h | |||
| @@ -22,10 +22,17 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |||
| 22 | SOFTWARE. | 22 | SOFTWARE. |
| 23 | */ | 23 | */ |
| 24 | 24 | ||
| 25 | #ifndef SERIAL_LINK_SYSTEM_H | 25 | #ifndef SERIAL_LINK_H |
| 26 | #define SERIAL_LINK_SYSTEM_H | 26 | #define SERIAL_LINK_H |
| 27 | 27 | ||
| 28 | #include "host_driver.h" | ||
| 29 | #include <stdbool.h> | ||
| 28 | 30 | ||
| 31 | void init_serial_link(void); | ||
| 32 | void init_serial_link_hal(void); | ||
| 33 | bool is_serial_link_connected(void); | ||
| 34 | host_driver_t* get_serial_link_driver(void); | ||
| 35 | void serial_link_update(void); | ||
| 29 | 36 | ||
| 30 | #if defined(PROTOCOL_CHIBIOS) | 37 | #if defined(PROTOCOL_CHIBIOS) |
| 31 | #include "ch.h" | 38 | #include "ch.h" |
