mutantbob

Results 24 comments of mutantbob

I have managed to copy the mouse code from the example you linked, and got it working in my app. Unfortunately, I have not yet figured out how to generate...

@chrysn take a look at #21 and give some feedback if it helps with your problem.

I assume everyone using Rust on AVR is stuck with `nightly-2021-01-07` until that LLVM issue is sorted out.

I wrote a tiny test to make sure things line up ``` check!(&mut serial, "short", unsafe{raw::size_short()}, size_of::()); check!(&mut serial, "int", unsafe{raw::size_int()}, size_of::()); check!(&mut serial, "long", unsafe{raw::size_long()}, size_of::()); check!(&mut serial, "long...

I wonder how this would behave if the pin were currently being used as the CS for an SPI transaction.

I have prototyped an alternate SPI implementation by modifying the code that already exists to allow the channel-select and SCLK/MOSI/MISO pins to exist separately until it is time to transmit/receive...

Is there an API that translates from the data sheet to the register writes? Right now I have code that does tmr1.tccr1a.write(|w| w.wgm1().bits(0b00)); tmr1.tccr1b.write(|w| { w.cs1() //.prescale_256() .variant(CLOCK_SOURCE) .wgm1() .bits(0b01)...

A quick review of the datasheets for the atmega328p (https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-7810-Automotive-Microcontrollers-ATmega328P_Datasheet.pdf) and the atmega2560(https://ww1.microchip.com/downloads/en/devicedoc/atmel-2549-8-bit-avr-microcontroller-atmega640-1280-1281-2560-2561_datasheet.pdf) shows: 328p: 8-bit timer (TC0, section 14.9) 16-bit timer ( TC1, section 15.11 ) 8-bit timer w/...

I have created a couple of timer experiments that I hope to turn into examples for the avr-hal project: https://github.com/mutantbob/avr-timer/blob/master/led-pwm/src/megalovania.rs uses PWM and a buzzer to play a chiptune https://github.com/mutantbob/avr-timer/blob/master/led-pwm/src/led-pwm.rs...

Sweet platypus on a unicycle : I forgot to add the new directory to the repo. While I'm fixing that, I'll rename it to avr-portable.