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

introduce NRF and BLE drivers #4448

Merged
merged 4 commits into from
Jan 14, 2025
Merged

Conversation

TychoVrahe
Copy link
Contributor

This PR introduces NRF driver, responsible for handling communication with NRF, and BLE driver, which provides interface for using BLE via the NRF.

@TychoVrahe TychoVrahe self-assigned this Dec 13, 2024
@TychoVrahe TychoVrahe changed the base branch from main to tychovrahe/refactor/usb_events December 13, 2024 15:51
Copy link

github-actions bot commented Dec 18, 2024

core UI changes device test click test persistence test
T2T1 Model T test(screens) main(screens) test(screens) main(screens) test(screens) main(screens)
T3B1 Safe 3 test(screens) main(screens) test(screens) main(screens) test(screens) main(screens)
T3T1 Safe 5 test(screens) main(screens) test(screens) main(screens) test(screens) main(screens)
All main(screens)

@TychoVrahe TychoVrahe marked this pull request as ready for review December 30, 2024 08:52
@TychoVrahe TychoVrahe requested review from cepetr and removed request for prusnak and matejcik December 30, 2024 08:52
core/embed/sys/syscall/stm32/syscall_verifiers.c Outdated Show resolved Hide resolved
core/embed/io/ble/stm32/ble_comm_defs.h Outdated Show resolved Hide resolved
core/embed/io/nrf/inc/io/nrf.h Outdated Show resolved Hide resolved
core/embed/io/nrf/inc/io/nrf.h Show resolved Hide resolved
core/embed/io/nrf/stm32u5/nrf.c Outdated Show resolved Hide resolved
core/embed/io/nrf/stm32u5/nrf.c Outdated Show resolved Hide resolved
core/embed/io/nrf/stm32u5/nrf.c Outdated Show resolved Hide resolved
core/embed/io/nrf/stm32u5/nrf.c Outdated Show resolved Hide resolved
core/embed/io/nrf/stm32u5/nrf.c Outdated Show resolved Hide resolved
core/embed/io/nrf/stm32u5/nrf.c Show resolved Hide resolved
core/embed/util/tsqueue/tsqueue.c Show resolved Hide resolved
core/embed/io/ble/stm32/ble.c Outdated Show resolved Hide resolved
core/embed/io/ble/inc/io/ble.h Show resolved Hide resolved
core/embed/io/ble/stm32/ble.c Outdated Show resolved Hide resolved
core/embed/io/ble/stm32/ble.c Outdated Show resolved Hide resolved
core/embed/io/ble/stm32/ble.c Show resolved Hide resolved
core/embed/io/ble/stm32/ble.c Outdated Show resolved Hide resolved
core/embed/io/ble/stm32/ble.c Show resolved Hide resolved
core/embed/io/ble/stm32/ble.c Outdated Show resolved Hide resolved
core/embed/io/ble/stm32/ble.c Outdated Show resolved Hide resolved
core/embed/io/ble/stm32/ble.c Outdated Show resolved Hide resolved
core/embed/io/nrf/stm32u5/nrf.c Outdated Show resolved Hide resolved
core/embed/io/nrf/stm32u5/nrf.c Outdated Show resolved Hide resolved
core/embed/io/nrf/stm32u5/nrf.c Outdated Show resolved Hide resolved
core/embed/io/nrf/stm32u5/nrf.c Show resolved Hide resolved
core/embed/io/nrf/stm32u5/nrf.c Show resolved Hide resolved
core/embed/io/nrf/stm32u5/nrf.c Outdated Show resolved Hide resolved
core/embed/io/nrf/stm32u5/nrf.c Outdated Show resolved Hide resolved
core/embed/io/ble/stm32/ble.c Outdated Show resolved Hide resolved
core/embed/io/nrf/stm32u5/nrf.c Outdated Show resolved Hide resolved
core/embed/io/nrf/stm32u5/nrf.c Outdated Show resolved Hide resolved
@TychoVrahe TychoVrahe force-pushed the tychovrahe/T3W1/nrf_ble_driver branch from 601953e to 87610cc Compare January 6, 2025 13:08
core/embed/util/tsqueue/inc/util/tsqueue.h Outdated Show resolved Hide resolved
core/embed/util/tsqueue/tsqueue.c Outdated Show resolved Hide resolved
core/embed/io/ble/stm32/ble.c Outdated Show resolved Hide resolved
core/embed/io/ble/stm32/ble.c Outdated Show resolved Hide resolved
// If the message is already sent or the id is not found, it does nothing and
// returns false If the message is queued, it will be removed from the queue If
// the message is being sent, it will be sent. The callback will not be called.
bool nrf_abort_msg(int32_t id);
Copy link
Member

@mmilata mmilata Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aborting messages introduces a bunch of complexity into the queue code, where are we even going to use it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably will when going to low power modes, there will also be other services that might need that. cc also @cepetr

core/embed/io/ble/stm32/ble.c Show resolved Hide resolved
Copy link
Member

@mmilata mmilata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nothing else from me

core/embed/io/nrf/stm32u5/nrf.c Show resolved Hide resolved
core/embed/io/ble/stm32/ble.c Outdated Show resolved Hide resolved
core/embed/io/ble/stm32/ble.c Show resolved Hide resolved
core/embed/io/ble/stm32/ble.c Show resolved Hide resolved
core/embed/io/ble/stm32/ble.c Outdated Show resolved Hide resolved
core/embed/io/ble/stm32/ble.c Show resolved Hide resolved
core/embed/io/ble/stm32/ble.c Show resolved Hide resolved
Copy link
Contributor

@cepetr cepetr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@TychoVrahe TychoVrahe force-pushed the tychovrahe/refactor/usb_events branch from f5a0f84 to aac111f Compare January 13, 2025 16:44
Base automatically changed from tychovrahe/refactor/usb_events to main January 13, 2025 17:46
@TychoVrahe TychoVrahe force-pushed the tychovrahe/T3W1/nrf_ble_driver branch from ed61578 to a2622a6 Compare January 13, 2025 17:54
@TychoVrahe TychoVrahe removed the request for review from andrewkozlik January 13, 2025 17:55
@TychoVrahe TychoVrahe force-pushed the tychovrahe/T3W1/nrf_ble_driver branch from a2622a6 to d4bf0e8 Compare January 14, 2025 07:11
@TychoVrahe TychoVrahe merged commit 8207b9f into main Jan 14, 2025
95 checks passed
@TychoVrahe TychoVrahe deleted the tychovrahe/T3W1/nrf_ble_driver branch January 14, 2025 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Approved
Development

Successfully merging this pull request may close these issues.

3 participants