Closed guissalustiano closed 6 months ago
Hi @guissalustiano I think it's a great initiative, but also a very big one. It's also a question how much of this needs to be in embassy or not. For instance, the LoRa and LoRaWAN work was recently moved out of the embassy repo into a separate organization https://github.com/lora-rs, and I'm wondering if it would be better for work like this to keep the HAL-dependent parts in this repo, and the HAL-independent parts of the stack outside as much as possible. This also has other benefits such as allowing other HALs to benefit from your work.
Hey, just an update. Based on @lulf feedback I decided to move the work to a separate repo, there are a lot of agnostic functions like the package structures and serialization. And also make it easier to iterate over the interface. I tried to define a basic trait there that I plan to use with the embassy hal to implement other layers.
Here are two working low-level examples using the current trait:
Still a lot of work to do, but is good to see some progress!
Hi! I'm Interested in developing some Bluetooth tools for Rust (as my bachelor's thesis), as a first step, I would like to implement the Radio driver with async support. Do you think it makes sense?
I started the development here but I'm unsure about the best API approach. The radio hardware varies between the boards, a quick resume:
Desing
Given the uncertainty of the best interface and based on the feedback I will move development to another project, in order to iterate faster, and perhaps in the future create a generic library for any framework. However, for this, I need some primitives to access the radio and wait for the interruption, and this must be implemented here as it requires access to the poll executor.
Steps
First, implement POC to understand the necessary register and interrupts, and based on that implement a low-level API (specify for BLE now, but could be extended to others formats later)
Previous related issues:
432
1800
References