Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cores/rp2040/RP2040Support.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class _MFIFO {

class RP2040;
extern RP2040 rp2040;
extern "C" void main1();
extern void main1();
extern "C" char __StackLimit;
extern "C" char __bss_end__;
extern "C" void setup1() __attribute__((weak));
Expand Down
2 changes: 1 addition & 1 deletion cores/rp2040/Tone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static inline bool pio_sm_get_enabled(PIO pio, uint sm) {
return (pio->ctrl & ~(1u << sm)) & (1 << sm);
}

int64_t _stopTonePIO(alarm_id_t id, void *user_data) {
static int64_t _stopTonePIO(alarm_id_t id, void *user_data) {
(void) id;
Tone *tone = (Tone *)user_data;
tone->alarm = 0;
Expand Down
1 change: 1 addition & 0 deletions cores/rp2040/WMath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include <stdlib.h>
#include <stdint.h>
#include <Arduino.h>

void randomSeed(uint32_t dwSeed) {
if (dwSeed != 0) {
Expand Down
1 change: 1 addition & 0 deletions cores/rp2040/delay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include <Arduino.h>
#include <pico.h>
#include <pico/time.h>

Expand Down
1 change: 1 addition & 0 deletions cores/rp2040/lwip_wrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,7 @@ extern "C" {
return;
}
#endif
(void) buffer;
cb(cbData);
return;
}
Expand Down
4 changes: 2 additions & 2 deletions cores/rp2040/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include <Arduino.h>
#include "Arduino.h"
#include "RP2040USB.h"
#include <pico/stdlib.h>
#include <pico/multicore.h>
Expand Down Expand Up @@ -55,7 +55,7 @@ bool core1_separate_stack __attribute__((weak)) = false;
bool core1_disable_systick __attribute__((weak)) = false;
extern void setup1() __attribute__((weak));
extern void loop1() __attribute__((weak));
extern "C" void main1() {
void __attribute__((__noreturn__)) main1() {
if (!core1_disable_systick) {
// Don't install the SYSTICK exception handler. rp2040.getCycleCount will not work properly on core1
rp2040.begin(1);
Expand Down
2 changes: 1 addition & 1 deletion cores/rp2040/wiring_private.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void *_gpioIrqCBParam[__GPIOCNT];

// Only 1 GPIO IRQ callback for all pins, so we need to look at the pin it's for and
// dispatch to the real callback manually
void _gpioInterruptDispatcher(uint gpio, uint32_t events) {
static void _gpioInterruptDispatcher(uint gpio, uint32_t events) {
(void) events;
uint64_t mask = 1LL << gpio;
if (_gpioIrqEnabled & mask) {
Expand Down
2 changes: 1 addition & 1 deletion libraries/LittleFS/src/LittleFS.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class LittleFSImpl : public FSImpl {
if ((rc == 0) && _timeCallback) {
time_t now = _timeCallback();
// Add metadata with creation time to the directory marker
int rc = lfs_setattr(&_lfs, path, 'c', (const void *)&now, sizeof(now));
rc = lfs_setattr(&_lfs, path, 'c', (const void *)&now, sizeof(now));
if (rc < 0) {
DEBUGV("Unable to set creation time on '%s' to %ld\n", path, (long)now);
}
Expand Down
1 change: 1 addition & 0 deletions libraries/SingleFileDrive/src/SingleFileDrive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <SingleFileDrive.h>
#include <LittleFS.h>
#include <class/msc/msc.h>
#include <class/msc/msc_device.h>
#include <device/usbd.h>
#include <RP2040USB.h>

Expand Down
Loading