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

Fixing pounder bootup issues #748

Merged
merged 4 commits into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased](https://github.com/quartiq/stabilizer/compare/v0.8.1...main)

### Fixed

* Fixed a defect where powering up with Pounder attached would cause an internal panic.

## [v0.8.1](https://github.com/quartiq/stabilizer/compare/v0.8.0...v0.8.1) - 2022-11-14)

* Fixed the python package dependencies
Expand Down
6 changes: 6 additions & 0 deletions src/hardware/setup.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
///! Stabilizer hardware configuration
///!
///! This file contains all of the hardware-specific configuration of Stabilizer.

Check warning on line 3 in src/hardware/setup.rs

View workflow job for this annotation

GitHub Actions / clippy

this is an outer doc comment and does not apply to the parent module or crate

warning: this is an outer doc comment and does not apply to the parent module or crate --> src/hardware/setup.rs:1:1 | 1 | / ///! Stabilizer hardware configuration 2 | | ///! 3 | | ///! This file contains all of the hardware-specific configuration of Stabilizer. | |_________________________________________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_doc_comments help: use an inner doc comment to document the parent module or crate | 1 + //! Stabilizer hardware configuration 2 + //! 3 + //! This file contains all of the hardware-specific configuration of Stabilizer. |
use core::sync::atomic::{self, AtomicBool, Ordering};
use core::{ptr, slice};
use stm32h7xx_hal::{
Expand Down Expand Up @@ -876,6 +876,12 @@

let mut io_update = gpiog.pg7.into_push_pull_output();

// Delay to allow the pounder DDS reference clock to fully start up. The exact startup
// time is not specified, but bench testing indicates it usually comes up within
// 200-300uS. We do a larger delay to ensure that it comes up and is stable before
// using it.
delay.delay_ms(10u32);

let mut ad9959 = ad9959::Ad9959::new(
qspi_interface,
reset_pin,
Expand Down
Loading