Compare commits

..

No commits in common. "446dad024263b310264f0c29808c79f2212c8f25" and "5010e84e0672ef2e9cc93f264433d63b1edd208e" have entirely different histories.

3 changed files with 3 additions and 21 deletions

View file

@ -5,11 +5,7 @@
// MPU-6050 register addresses
#define MPU6050_REG_ACCEL_XOUT_H 0x3B
#define MPU6050_REG_ACCEL_XOUT_L 0x3C
#define MPU6050_REG_GYRO_XOUT_H 0x43
#define MPU6050_REG_GYRO_XOUT_L 0x44
#define MPU6050_TEMP_OUT_H 0x41
#define MPU6050_TEMP_OUT_L 0x42
#define MPU6050_REG_PWR_MGMT_1 0x6B
#include <stdint.h>

View file

@ -1,11 +1,8 @@
# AVR Playground
See:
See [AVR i2c library](https://github.com/Sovichea/avr-i2c-library).
- [AVR i2c library](https://github.com/Sovichea/avr-i2c-library).
- [MPU-6000/6050 Datasheet](https://www.invensense.com/wp-content/uploads/2015/02/MPU-6000-Datasheet1.pdf)
- [MPU-6000/6050 Register Map](https://www.invensense.com/wp-content/uploads/2015/02/MPU-6000-Register-Map1.pdf)
- [QEMU AVR Docs](https://www.qemu.org/docs/master/system/target-avr.html)
[QEMU AVR Docs](https://www.qemu.org/docs/master/system/target-avr.html)
```bash
sudo dnf install avr-binutils avr-libc avr-gcc avr-gcc-c++ avrdude qemu-system-avr

View file

@ -71,14 +71,3 @@ size: $(TARGET).hex
# Reset target
reset:
avrdude -p $(MCU) -c $(PROGRAMMER) -E reset
read-flash:
avrdude -p $(MCU) -c $(PROGRAMMER) -U flash:r:flash.hex:i
read-eeprom:
avrdude -p $(MCU) -c $(PROGRAMMER) -U eeprom:r:eeprom.hex:i
read-fuses:
avrdude -p $(MCU) -c $(PROGRAMMER) -U lfuse:r:-:h -U hfuse:r:-:h -U efuse:r:-:h
.PHONY: all clean flash qemu asm serial reset read-flash read-eeprom size