This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub struct Audio { | |
pub stream: sai::Sai<stm32::SAI1, sai::I2S>, | |
input: &'static mut IoBuffer, | |
output: &'static mut IoBuffer, | |
} | |
impl Audio { | |
pub fn new( | |
mut stream: sai::Sai<stm32::SAI1, sai::I2S>, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use log::{Record, Level, Metadata}; | |
#[cfg(any(feature = "rtt"))] | |
use rtt_target::{rprintln, rtt_init_print}; | |
pub struct Logger; | |
impl Logger { | |
pub fn init(&self) { | |
#[cfg(any(feature = "rtt"))] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![no_std] | |
#![no_main] | |
#![allow(dead_code)] | |
#![allow(unused_variables)] | |
#![allow(unused_imports)] | |
use rtic::app; | |
use stm32h7xx_hal::stm32; | |
use stm32h7xx_hal::stm32::{TIM1, TIM12, TIM17, TIM2}; | |
use stm32h7xx_hal::timer::{Event, Timer}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Generated by LinkerScriptGenerator [http://visualgdb.com/tools/LinkerScriptGenerator] | |
* Target: STM32H750IB | |
* The file is provided under the BSD license. | |
*/ | |
ENTRY(Reset_Handler) | |
MEMORY | |
{ | |
FLASH (RX) : ORIGIN = 0x08000000, LENGTH = 128K |