zBeeble has quit [Remote host closed the connection]
zBeeble has joined #rust-embedded
fabic has joined #rust-embedded
<re_irc>
<@luojia65:matrix.org> We are very happy to announce Tornado-os operating system kernel, after six months of development, has reached version 0.1 🥳
<re_irc>
<@luojia65:matrix.org> This kernel is written in Rust, with async/await coroutine runtime used in kernel level, like drivers and file systems. The kernel provides async/await executor directly to user level.
<re_irc>
<@nihal.pasham:matrix.org> luojia65: quick question - is `documentation` available in english?
fabic has quit [Ping timeout: 252 seconds]
GenTooMan has quit [Ping timeout: 240 seconds]
GenTooMan has joined #rust-embedded
<re_irc>
<@yatekii:matrix.org> Nice Faker is working on tonado-os :D
fabic has joined #rust-embedded
GenTooMan has quit [Ping timeout: 258 seconds]
GenTooMan has joined #rust-embedded
GenTooMan has quit [Excess Flood]
GenTooMan has joined #rust-embedded
GenTooMan has quit [Excess Flood]
GenTooMan has joined #rust-embedded
fabic has quit [Ping timeout: 240 seconds]
GenTooMan has quit [Ping timeout: 240 seconds]
GenTooMan has joined #rust-embedded
fabic has joined #rust-embedded
fabic has quit [Ping timeout: 250 seconds]
tokomak has quit [Ping timeout: 252 seconds]
GenTooMan has quit [Ping timeout: 240 seconds]
GenTooMan has joined #rust-embedded
GenTooMan has quit [Ping timeout: 240 seconds]
GenTooMan has joined #rust-embedded
<re_irc>
<@richarddodd:matrix.org> Quick question: EASY_DMA_SIZE was removed from embassy-nrf. What should I use instead?
GenTooMan has quit [Ping timeout: 240 seconds]
GenTooMan has joined #rust-embedded
<re_irc>
<@dirbaio:matrix.org> richarddodd: I think it was unintentional, when refactoring all chip-specific stuff into `chips/nrf52xxx.rs`. PRs welcome
<re_irc>
<@dirbaio:matrix.org> should be a simple `pub use chip::EASY_DMA_SIZE` or similar
<re_irc>
<@richarddodd:matrix.org> I just did a different PR
<re_irc>
<@richarddodd:matrix.org> I feel silly but i can't work out how to calculate softdevice RAM usage. Is there an easy way to work out how much RAM it will need with the default config?
<re_irc>
<@richarddodd:matrix.org> Actually scrap that I'm getting `SdmIncorrectInterruptConfiguration`. Absolutely no idea why.
<re_irc>
<@dirbaio:matrix.org> there's no easy way to calculate RAM usage. If you give it too much / too little you'll get a warning/error saying exactly how much it needs
<re_irc>
<@dirbaio:matrix.org> `SdmIncorrectInterruptConfiguration` is when you have some interrupt enbled at a reserved priority level
<re_irc>
<@dirbaio:matrix.org> priorities 0, 1, 4 are reserved for the softdevice
<re_irc>
<@dirbaio:matrix.org> or it may be interrupts you've enabled on your own, in whcih case make sure you set them to a non-reserved prio
<re_irc>
<@richarddodd:matrix.org> Thanks I'll go through these. Don't know why I thought it was memory error - I probably need sleep.
<re_irc>
<@richarddodd:matrix.org> Right it's probably the fact that I'm using `#[embassy::main]` rather than setting up the interrupts manually (with priority 2). I haven't check yet but sounds like that's what it is.
<re_irc>
<@dirbaio:matrix.org> ah yeah, default prio is 0 then
<re_irc>
<@richarddodd:matrix.org> Thanks! :)
<re_irc>
<@dirbaio:matrix.org> you can still use a custom config with the main macro
<re_irc>
<@richarddodd:matrix.org> yep changing irq prio fixed it :)
<re_irc>
<@richarddodd:matrix.org> tbh writing it out manually isn't a problem - it's only a few lines of code and in exchange you get rid of macro magic
<re_irc>
<@dirbaio:matrix.org> yea.. macro magic is meh
<re_irc>
<@richarddodd:matrix.org> Actually I can't talk - I spent a while [implementing a css parser as a proc macro](https://github.com/derekdreery/style)
<re_irc>
<@dirbaio:matrix.org> holy shit 🤣
<re_irc>
<@richarddodd:matrix.org> I thought it worked well but it got exactly zero traction.
<re_irc>
<@richarddodd:matrix.org> maybe the problem was the goal of the lib, rather than the quality
<re_irc>
<@dirbaio:matrix.org> fun.. it definitely seems useful for writing an SPA backed by rust+wasm... I've seen somewhere a similar macro for html-in-rust
<re_irc>
<@richarddodd:matrix.org> (warning, this comment is OT and boring) the biggest problem I had was with how the lexer/tokenizer handled exponentials: most number can have arbitrary suffixes (so `2.0f32` is valid, and so is `2ff2cd`), but if you try to parse `2efc14`, say, then the lexer tries to parse an exponential (because of the `e`)...
<re_irc>
... and fails.
<re_irc>
<@richarddodd:matrix.org> I was gonna have a go at refactoring the lexer, but it's a big job and I was already procrastinating from my actual work.
<re_irc>
<@richarddodd:matrix.org> If you solved that problem, then you can have arbitrary alphanumeric sequences in your grammar and parse them from valid (to the tokeniser) rust source.
<re_irc>
<@richarddodd:matrix.org> So hex colors, for instance, become possible
<re_irc>
<@richarddodd:matrix.org> (the solution would be to push actually parsing the number past the point at which proc macros run)
<re_irc>
<@harmony:matrix.org> How tf do you pick a voltage regulator ic
<re_irc>
<@harmony:matrix.org> Need 3.7-4.2V to 3.3V with low energy loss ig
<re_irc>
<@harmony:matrix.org> OT:
<re_irc>
<@harmony:matrix.org> There are thousands