aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2016-05-15 13:38:59 +0300
committerFred Sundvik <fsundvik@gmail.com>2016-05-15 13:38:59 +0300
commita0297a892ee1fc571cd9bdc447d2c2726a210629 (patch)
tree1a40c6c6291f38f64fdc908d06ea9a22afa924a1
parentb4ab61171e83eeca82fbc1930fcaab175b45c656 (diff)
downloadqmk_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.h2
-rw-r--r--serial_link/protocol/triple_buffered_object.c2
-rw-r--r--serial_link/system/driver.h36
-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/*
2The MIT License (MIT)
3
4Copyright (c) 2016 Fred Sundvik
5
6Permission is hereby granted, free of charge, to any person obtaining a copy
7of this software and associated documentation files (the "Software"), to deal
8in the Software without restriction, including without limitation the rights
9to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10copies of the Software, and to permit persons to whom the Software is
11furnished to do so, subject to the following conditions:
12
13The above copyright notice and this permission notice shall be included in all
14copies or substantial portions of the Software.
15
16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22SOFTWARE.
23*/
24
25#ifndef SERIAL_LINK_DRIVER_H
26#define SERIAL_LINK_DRIVER_H
27
28#include "host_driver.h"
29
30void init_serial_link(void);
31void init_serial_link_hal(void);
32bool is_serial_link_connected(void);
33host_driver_t* get_serial_link_driver(void);
34void 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
22SOFTWARE. 22SOFTWARE.
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
31void init_serial_link(void);
32void init_serial_link_hal(void);
33bool is_serial_link_connected(void);
34host_driver_t* get_serial_link_driver(void);
35void serial_link_update(void);
29 36
30#if defined(PROTOCOL_CHIBIOS) 37#if defined(PROTOCOL_CHIBIOS)
31#include "ch.h" 38#include "ch.h"