Skip to content

Commit

Permalink
fix cordic example
Browse files Browse the repository at this point in the history
  • Loading branch information
AdinAck committed Nov 8, 2024
1 parent 621afe0 commit 7d56359
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/cordic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ extern crate cortex_m;
extern crate cortex_m_rt as rt;
extern crate stm32g4xx_hal as hal;

use fixed::types::I1F15;
use hal::cordic::{
func::{dynamic::Mode as _, scale::N0, Magnitude, SinCos, Sqrt},
op::{dynamic::Mode as _, Magnitude, SinCos, Sqrt},
prec::P60,
types::{Q15, Q31},
scale::N0,
types::{I1F15, Q15, Q31},
Ext as _,
};
use hal::prelude::*;
Expand All @@ -34,7 +34,7 @@ fn main() -> ! {
let mut cordic = dp
.CORDIC
.constrain(&mut rcc)
.freeze::<Q15, Q31, SinCos, P60>(); // 16 bit arguments, 32 bit results, compute sine and cosine, 60 iterations
.freeze::<Q15, Q31, P60, SinCos>(); // 16 bit arguments, 32 bit results, compute sine and cosine, 60 iterations

// static operation (zero overhead)

Expand Down

0 comments on commit 7d56359

Please sign in to comment.