Update AVR for emu
authorJoseph Coffland <joseph@cauldrondevelopment.com>
Sun, 31 Jan 2021 06:42:59 +0000 (22:42 -0800)
committerJoseph Coffland <joseph@cauldrondevelopment.com>
Sun, 31 Jan 2021 06:42:59 +0000 (22:42 -0800)
src/avr/src/drv8711.c
src/avr/src/hardware.c

index 770b506f7299cf3bf7f129066a1bab3751e4b823..a24661cceb6e1c4c31fdaf7d6a1c9fe1feabbb6f 100644 (file)
@@ -35,6 +35,7 @@
 
 #include <avr/interrupt.h>
 #include <util/delay.h>
+#include <math.h>
 
 
 #define DRIVERS MOTORS
index 3a3f08b5b4c5e507852355f7c09d0615077e7b34..43bda529d0894b606b8afe7b2003eb95e9ad6992 100644 (file)
@@ -148,7 +148,7 @@ static void _hard_reset() {
   RST.CTRL = RST_SWRST_bm;
 
 #else // __AVR__
-  exit(0);
+  _exit(0);
 #endif
 }