From d43dcbcf8c8b044538da4412c3dca6264a876cca Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Sat, 15 Jan 2022 09:40:31 -0800 Subject: [PATCH] Remove duplicate millis/micros definitions (#419) Fixes #418 --- cores/rp2040/millis.cpp | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 cores/rp2040/millis.cpp diff --git a/cores/rp2040/millis.cpp b/cores/rp2040/millis.cpp deleted file mode 100644 index 194ab4c66..000000000 --- a/cores/rp2040/millis.cpp +++ /dev/null @@ -1,29 +0,0 @@ -/* - Millis() for the Raspberry Pi Pico RP2040 - - Copyright (c) 2021 Earle F. Philhower, III - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ - -#include - -extern "C" unsigned long millis() { - return to_ms_since_boot(get_absolute_time()); -} - -extern "C" unsigned long micros() { - return time_us_32(); -}