-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(split): wired split over serial TX support (WIP 2024-05-26)
- Loading branch information
1 parent
e284d48
commit 9986dc3
Showing
4 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright (c) 2023 The ZMK Contributors | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
#include <zephyr/kernel.h> | ||
|
||
#include <zmk/split/serial/serial.h> | ||
|
||
// TODO TODO TODO | ||
#include <zephyr/logging/log.h> | ||
LOG_MODULE_DECLARE(slicemk); | ||
|
||
// TODO TODO TODO these two should be in a header somewhere | ||
|
||
// TODO TODO TODO implement central to peripheral data transfer | ||
void serial_handle_rx(uint32_t cmd, uint8_t *data, uint8_t len) { | ||
LOG_HEXDUMP_ERR(data, len, "central to peripheral"); | ||
} | ||
|
||
void send_position_state_impl(uint8_t *state, int len) { | ||
serial_write_uart(0x73627400, state, len); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters