From 5ca286c1716264d7aa82c9fdf166062cd452601e Mon Sep 17 00:00:00 2001 From: JivaroFAD Date: Tue, 16 Dec 2014 22:29:10 +0100 Subject: [PATCH] mega2560 update Junk pulses on PORTB_4 with SD-Card option --- radio/src/Makefile | 2 +- radio/src/targets/gruvin9x/diskio.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/radio/src/Makefile b/radio/src/Makefile index 85150e3c4..46be4c8ea 100644 --- a/radio/src/Makefile +++ b/radio/src/Makefile @@ -604,7 +604,7 @@ ifeq ($(PCB), MEGA2560) TRGT = avr- MCU = atmega2560 OPT = s - CPPDEFS = -DF_CPU=$(F_CPU)UL -DPCBMEGA2560 -DCPUM2560 -DEEPROM_VARIANT=0 -DAUDIO -DRTCLOCK + CPPDEFS = -DF_CPU=$(F_CPU)UL -DPCBMEGA2560 -DCPUM2560 -DEEPROM_VARIANT=0 -DAUDIO SDCARD = YES BUZZER = YES THR_TRACE = YES diff --git a/radio/src/targets/gruvin9x/diskio.cpp b/radio/src/targets/gruvin9x/diskio.cpp index a75b39eac..02604bff2 100644 --- a/radio/src/targets/gruvin9x/diskio.cpp +++ b/radio/src/targets/gruvin9x/diskio.cpp @@ -72,7 +72,7 @@ /* Port Controls (Platform dependent) */ // GCC optimisation should result in a single CBI/SBI instructions here -#if defined (PCBGRUVIN9X) +#if defined (CPUM2560) # define CS_LOW() PORTB &= ~0x01 /* MMC CS = L */ # define CS_HIGH() PORTB |= 0x01 /* MMC CS = H */ #else