From 147f6547cfe8ed050d0ce82114ffbe53256d6827 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Thu, 5 Jan 2023 20:26:47 -0500 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E5=AE=9E=E7=8E=B0interrupts(?= =?UTF-8?q?)/noInterrupts()=20=E5=8E=9F=E6=9D=A5=E7=9A=84=E6=96=B9?= =?UTF-8?q?=E6=A1=88=E4=B8=AD=E6=9C=89=E4=BB=A5=E4=B8=8B=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=9A=201.=E5=90=84=E7=A7=8DCPU=E6=9E=B6=E6=9E=84=E9=83=BD?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E5=9C=A8Arduino.h=E4=B8=AD=E5=AE=9E=E7=8E=B0?= =?UTF-8?q?=E4=B8=80=E9=81=8D=EF=BC=8C=E8=BF=99=E4=B8=AA=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=9C=AC=E6=9D=A5=E6=98=AF=E7=94=B1RT-Thread=E5=BA=95=E5=B1=82?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=9A=84=EF=BC=8CRTduino=E4=B8=8D=E5=BA=94?= =?UTF-8?q?=E8=AF=A5=E6=91=B8=E5=88=B0=E5=BA=95=E5=B1=82=202.rt=5Fhw=5Fint?= =?UTF-8?q?errupt=5Fdisable/enable()=E5=B7=B2=E7=BB=8F=E5=AE=9E=E7=8E=B0?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E5=8A=9F=E8=83=BD=EF=BC=8C=E4=BD=86=E6=98=AF?= =?UTF-8?q?=E5=9B=A0=E4=B8=BA=E6=8E=A5=E5=8F=A3=E9=97=AE=E9=A2=98=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E7=94=A8=E4=B8=8A=203.=E6=97=A0=E5=B5=8C=E5=A5=97?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E5=85=B3=E9=97=AD/=E5=BC=80=E5=90=AF?= =?UTF-8?q?=E4=B8=AD=E6=96=AD=E9=80=82=E5=90=88=E8=A3=B8=E6=9C=BA=EF=BC=8C?= =?UTF-8?q?=E4=BD=86=E6=98=AF=E5=9C=A8RTOS=E5=8A=A0=E6=8C=81=E4=B8=8B?= =?UTF-8?q?=EF=BC=8C=E8=BF=99=E4=B9=88=E5=81=9A=E5=8F=AF=E8=83=BD=E4=BC=9A?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/Arduino.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/core/Arduino.h b/core/Arduino.h index f2337de..5da3521 100644 --- a/core/Arduino.h +++ b/core/Arduino.h @@ -103,21 +103,8 @@ typedef uint8_t byte; #define sq(x) ((x)*(x)) /* x^2 */ /* define interrupts and noInterrupts */ -#if defined(__CM_CMSIS_VERSION) /* CMSIS for all ARM Cortex CPU */ -#define interrupts() __enable_irq() -#define noInterrupts() __disable_irq() -#ifndef F_CPU -extern uint32_t SystemCoreClock; -#define F_CPU SystemCoreClock -#ifndef RTDUINO_TINY_MODE -#warning "This is just a backup solution. Please define F_CPU in pins_arduino.h" -#endif /* RTDUINO_TINY_MODE */ -#endif /* F_CPU */ -#elif !defined(interrupts) || !defined(noInterrupts) #define interrupts() #define noInterrupts() -#warning "Please define interrupts for this architecture in Arduino.h" -#endif /* interrupts and noInterrupts */ #ifdef F_CPU #define clockCyclesPerMicrosecond() (F_CPU / 1000000L)