Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I overwrite the host.c file of tmk? #24029

Closed
KeyMagicHorse opened this issue Jul 1, 2024 · 2 comments
Closed

Can I overwrite the host.c file of tmk? #24029

KeyMagicHorse opened this issue Jul 1, 2024 · 2 comments

Comments

@KeyMagicHorse
Copy link

KeyMagicHorse commented Jul 1, 2024

Issue Description

Why do I want to rewrite the host.c file inside keyboard?
Answer: Because I am developing a Bluetooth module with nkro functionality, but nkro functionality is not implemented in bluetooth.c and host.c.
qmk community response required:
If my bluetooth module supports nkro and via data forwarding (via bluetooth serial), how do I modify qvod's bluetooth driver to enable nkro and via data sending and receiving?

I said my train of thought.
For nkro: Just implement [void bluetooth_send_nkro(report_nkro_t *report);] in bluetooth.c.
For via:
I think via should not directly use the raw_hid.h this file interface, but need to interface out, in the host.c to do hid raw data read and write.

What kind of trouble does qmk get into if I try to implement my ideas?

Or I don't need to modify the original tmk code and bluetooth .c file, I just need to overwrite the original host.c and bluetooth .c in keyboards\xxx\rules.mk to achieve my goal. But the order of construction doesn't allow me to do that.

@fauxpark
Copy link
Member

fauxpark commented Jul 1, 2024

It is not possible right now.
If you are looking to make a Bluetooth keyboard you should look at ZMK instead.

@fauxpark fauxpark closed this as completed Jul 1, 2024
@KeyMagicHorse
Copy link
Author

It is not possible right now. If you are looking to make a Bluetooth keyboard you should look at ZMK instead.

No, I have implemented the Bluetooth module. Now I only need to modify host.c, bluetooth.c and via.c to implement it. And I made a via software that adapts to the bluetooth module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants