Remove io_atmega2560.h and some more macros

This commit is contained in:
Alex Voinea 2020-09-11 17:43:38 +03:00
parent eb007c35d2
commit c3abd4ffe6
No known key found for this signature in database
GPG key ID: F5034E7CFCF2F973
12 changed files with 79 additions and 452 deletions
Firmware

View file

@ -6,7 +6,6 @@
#include <avr/pgmspace.h>
#include "pat9125.h"
#include "stepper.h"
#include "io_atmega2560.h"
#include "cmdqueue.h"
#include "ultralcd.h"
#include "mmu.h"
@ -608,9 +607,8 @@ void fsensor_st_block_chunk(int cnt)
if (!fsensor_enabled) return;
fsensor_st_cnt += cnt;
// !!! bit toggling (PINxn <- 1) (for PinChangeInterrupt) does not work for some MCU pins
if (PIN_GET(FSENSOR_INT_PIN)) {PIN_VAL(FSENSOR_INT_PIN, LOW);}
else {PIN_VAL(FSENSOR_INT_PIN, HIGH);}
// !!! bit toggling (PINxn <- 1) (for PinChangeInterrupt) does not work for some MCU pins
WRITE(FSENSOR_INT_PIN, !READ(FSENSOR_INT_PIN));
}
#endif //PAT9125