Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-pico
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-pico
Commits
b57ac668
Unverified
Commit
b57ac668
authored
May 16, 2023
by
Earle F. Philhower, III
Committed by
GitHub
May 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup legacy includes (#1452)
parent
a851a928
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
37 additions
and
47 deletions
+37
-47
cores/rp2040/Arduino.h
cores/rp2040/Arduino.h
+1
-1
cores/rp2040/Bootsel.cpp
cores/rp2040/Bootsel.cpp
+5
-5
cores/rp2040/CoreMutex.h
cores/rp2040/CoreMutex.h
+1
-1
cores/rp2040/RP2040USB.cpp
cores/rp2040/RP2040USB.cpp
+10
-11
cores/rp2040/RP2040USB.h
cores/rp2040/RP2040USB.h
+1
-1
cores/rp2040/SerialUSB.cpp
cores/rp2040/SerialUSB.cpp
+10
-10
cores/rp2040/WMath.cpp
cores/rp2040/WMath.cpp
+2
-2
cores/rp2040/_freertos.cpp
cores/rp2040/_freertos.cpp
+1
-1
cores/rp2040/_freertos.h
cores/rp2040/_freertos.h
+1
-10
cores/rp2040/cyw43_wrappers.cpp
cores/rp2040/cyw43_wrappers.cpp
+4
-4
cores/rp2040/lwip_wrap.cpp
cores/rp2040/lwip_wrap.cpp
+1
-1
No files found.
cores/rp2040/Arduino.h
View file @
b57ac668
...
...
@@ -28,7 +28,7 @@
#include "api/ArduinoAPI.h"
#include "api/itoa.h" // ARM toolchain doesn't provide itoa etc, provide them
#include <pins_arduino.h>
#include
"hardware/gpio.h"
// Required for the port*Register macros
#include
<hardware/gpio.h>
// Required for the port*Register macros
#include "debug_internal.h"
#include <RP2040.h> // CMSIS
...
...
cores/rp2040/Bootsel.cpp
View file @
b57ac668
...
...
@@ -4,11 +4,11 @@
SPDX-License-Identifier: BSD-3-Clause
*/
#include <Arduino.h>
#include
"pico/stdlib.h"
#include
"hardware/gpio.h"
#include
"hardware/sync.h"
#include
"hardware/structs/ioqspi.h"
#include
"hardware/structs/sio.h"
#include
<pico/stdlib.h>
#include
<hardware/gpio.h>
#include
<hardware/sync.h>
#include
<hardware/structs/ioqspi.h>
#include
<hardware/structs/sio.h>
// This example blinks the Pico LED when the BOOTSEL button is pressed.
//
...
...
cores/rp2040/CoreMutex.h
View file @
b57ac668
...
...
@@ -23,7 +23,7 @@
#pragma once
#include
"pico/mutex.h"
#include
<pico/mutex.h>
#include "_freertos.h"
enum
{
...
...
cores/rp2040/RP2040USB.cpp
View file @
b57ac668
...
...
@@ -25,17 +25,16 @@
#include "CoreMutex.h"
#include "RP2040USB.h"
#include "tusb.h"
#include "class/hid/hid_device.h"
#include "class/audio/audio.h"
#include "class/midi/midi.h"
#include "pico/time.h"
#include "hardware/irq.h"
#include "pico/mutex.h"
#include "pico/unique_id.h"
#include "pico/usb_reset_interface.h"
#include "hardware/watchdog.h"
#include "pico/bootrom.h"
#include <tusb.h>
#include <class/hid/hid_device.h>
#include <class/audio/audio.h>
#include <pico/time.h>
#include <hardware/irq.h>
#include <pico/mutex.h>
#include <pico/unique_id.h>
#include <pico/usb_reset_interface.h>
#include <hardware/watchdog.h>
#include <pico/bootrom.h>
#include "sdkoverride/tusb_absmouse.h"
#include <device/usbd_pvt.h>
...
...
cores/rp2040/RP2040USB.h
View file @
b57ac668
...
...
@@ -19,7 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include
"pico/mutex.h"
#include
<pico/mutex.h>
// Weak function definitions for each type of endpoint
extern
void
__USBInstallSerial
()
__attribute__
((
weak
));
...
...
cores/rp2040/SerialUSB.cpp
View file @
b57ac668
...
...
@@ -25,15 +25,15 @@
#include <Arduino.h>
#include "CoreMutex.h"
#include
"tusb.h"
#include
"pico/time.h"
#include
"pico/binary_info.h"
#include
"pico/bootrom.h"
#include
"hardware/irq.h"
#include
"pico/mutex.h"
#include
"hardware/watchdog.h"
#include
"pico/unique_id.h"
#include
"hardware/resets.h"
#include
<tusb.h>
#include
<pico/time.h>
#include
<pico/binary_info.h>
#include
<pico/bootrom.h>
#include
<hardware/irq.h>
#include
<pico/mutex.h>
#include
<hardware/watchdog.h>
#include
<pico/unique_id.h>
#include
<hardware/resets.h>
#ifndef DISABLE_USB_SERIAL
// Ensure we are installed in the USB chain
...
...
@@ -179,7 +179,7 @@ static bool _rebooting = false;
static
void
CheckSerialReset
()
{
if
(
!
_rebooting
&&
(
_bps
==
1200
)
&&
(
!
_dtr
))
{
if
(
__isFreeRTOS
)
{
vTaskPreemptionDisable
(
nullptr
);
__freertos_idle_other_core
(
);
}
_rebooting
=
true
;
// Disable NVIC IRQ, so that we don't get bothered anymore
...
...
cores/rp2040/WMath.cpp
View file @
b57ac668
...
...
@@ -16,8 +16,8 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include
"stdlib.h"
#include
"stdint.h"
#include
<stdlib.h>
#include
<stdint.h>
void
randomSeed
(
uint32_t
dwSeed
)
{
if
(
dwSeed
!=
0
)
{
...
...
cores/rp2040/_freertos.cpp
View file @
b57ac668
...
...
@@ -19,7 +19,7 @@
*/
#include "_freertos.h"
#include
"pico/mutex.h"
#include
<pico/mutex.h>
#include <stdlib.h>
#include "Arduino.h"
...
...
cores/rp2040/_freertos.h
View file @
b57ac668
...
...
@@ -19,7 +19,7 @@
*/
#pragma once
#include
"pico/mutex.h"
#include
<pico/mutex.h>
// Cannot include refs to FreeRTOS's actual semaphore calls because they
// are implemented as macros, so we have a wrapper in our variant hook
...
...
@@ -50,15 +50,6 @@ extern "C" {
extern
int
__freertos_recursive_mutex_try_take
(
SemaphoreHandle_t
mtx
)
__attribute__
((
weak
));
extern
void
__freertos_recursive_mutex_give
(
SemaphoreHandle_t
mtx
)
__attribute__
((
weak
));
#ifndef INC_FREERTOS_H
extern
void
vTaskSuspendAll
()
__attribute__
((
weak
));
extern
int32_t
xTaskResumeAll
()
__attribute__
((
weak
));
typedef
struct
tskTaskControlBlock
*
TaskHandle_t
;
extern
void
vTaskPreemptionDisable
(
TaskHandle_t
p
)
__attribute__
((
weak
));
extern
void
vTaskPreemptionEnable
(
TaskHandle_t
p
)
__attribute__
((
weak
));
#endif
extern
void
__freertos_idle_other_core
()
__attribute__
((
weak
));
extern
void
__freertos_resume_other_core
()
__attribute__
((
weak
));
}
...
...
cores/rp2040/cyw43_wrappers.cpp
View file @
b57ac668
...
...
@@ -19,12 +19,12 @@
#if defined(ARDUINO_RASPBERRY_PI_PICO_W)
#include
"lwip/netif.h"
#include
<lwip/netif.h>
extern
"C"
{
#include
"cyw43.h"
#include
"cyw43_stats.h"
#include
<cyw43.h>
#include
<cyw43_stats.h>
}
#include
"pico/cyw43_arch.h"
#include
<pico/cyw43_arch.h>
#include <Arduino.h>
// From cyw43_ctrl.c
...
...
cores/rp2040/lwip_wrap.cpp
View file @
b57ac668
/*
LWIP wrappers to protect against timer-based re-entrancy
Copyright (c) 202
s
Earle F. Philhower, III <earlephilhower@yahoo.com>
Copyright (c) 202
3
Earle F. Philhower, III <earlephilhower@yahoo.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment