Skip to content

Instantly share code, notes, and snippets.

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>,
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"))]
#![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};
/* 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