Comments (1)
I am also trying to simply enable an interrupt routine to fire on an STM32F4xx. Am I doing something wrong or is it broken?
#[embassy_executor::main]
async fn main(spawner: Spawner) {
let mut config = Config::default();
{
use embassy_stm32::rcc::*;
config.rcc.hse = Some(Hse {
freq: Hertz(8_000_000),
mode: HseMode::Oscillator,
});
config.rcc.pll_src = PllSource::HSE;
config.rcc.pll = Some(Pll {
prediv: PllPreDiv::DIV4,
mul: PllMul::MUL168,
divp: Some(PllPDiv::DIV2), // 8mhz / 4 * 180 / 2 = 180Mhz.
divq: Some(PllQDiv::DIV4),
divr: None,
});
config.rcc.ahb_pre = AHBPrescaler::DIV1;
config.rcc.apb1_pre = APBPrescaler::DIV4;
config.rcc.apb2_pre = APBPrescaler::DIV2;
config.rcc.sys = Sysclk::PLL1_P;
}
let p = embassy_stm32::init(config);
let mut timer = p.TIM6;
timer.set_frequency(Hertz(1));
timer.set_autoreload_preload(true);
timer.enable_update_interrupt(true);
timer.reset();
timer.start();
}
#[interrupt]
fn TIM6_DAC() {
println!("timer fired");
}
from embassy.
Related Issues (20)
- Mismatch between online documentation and what cargo installs HOT 2
- Docs: embassy_sync PriorityChannel has wrong link in docs
- stm32/spi: new_blocking_txonly_nosck hangs on v3+
- Update BDMA example for soundness
- stm32 i2cv1 async regression, silently reads back 0xFF HOT 1
- Embassy task with `const generics`
- Uart write work but not read fn HOT 1
- impl ReadReady for tcp should use can_recv() insted of may_recv() HOT 2
- bxcan on stm32l5
- Proposition of example of QSPI usage on STM32 HOT 1
- Async read methods on nrf twim lead to unsoundness when canceled (?) HOT 2
- Problem with `embassy_stm32::ospi::Ospi::new_*` HOT 6
- defmt logs give the wrong filesystem path
- Embassy-usb: Using HID Report ID HOT 2
- Define a regular crates-io release cycle HOT 2
- Request: ADC Support for STM32H5*
- STM32 GPIOv1 input pins being set incorrectly (for SPI)
- Using embassy-boot on esp architectures HOT 2
- Expose peripheral registers when enabling the unstable-pac feature. HOT 1
- Rp pico `BufferedUart` drop bug after split HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from embassy.