Skip to content

Refactor phoenix#7

Closed
seofernando25 wants to merge 5 commits intosbg-updatefrom
sbg-update-refactor
Closed

Refactor phoenix#7
seofernando25 wants to merge 5 commits intosbg-updatefrom
sbg-update-refactor

Conversation

@seofernando25
Copy link
Contributor

Refactors the phoenix to use a centralized Board abstraction for peripheral setup and moves tasks to a more modular setup.

// eg from before with peripheral access in main()
let usart = Uart::new(p.UART4, p.PA1, p.PA0, Irqs, p.DMA1_CH1, p.DMA1_CH0, uart_config);

// after
let (tx, ring_rx) = board.setup_sbg_uart();
  • Also reduced main.rs from 1000 lines to 350.
  • Getting a small issue with SBG DMA (Could be wrong cable setup)
  • Added runtime feature flags (could change it to feature flags in the future)

@seofernando25 seofernando25 requested a review from n123xyz August 11, 2025 05:40
@seofernando25 seofernando25 marked this pull request as ready for review August 11, 2025 22:02
@seofernando25 seofernando25 removed the request for review from n123xyz August 11, 2025 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant