Compare commits
3 commits
ca4f8764be
...
fb9903f97d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fb9903f97d | ||
|
|
282920f9ce | ||
|
|
267d78d6cf |
1 changed files with 8 additions and 2 deletions
|
|
@ -26,7 +26,8 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if defined(ARDUINO_ARCH_RP2040) || defined(PICO_BOARD) || defined(__RP2040__)
|
#if defined(ARDUINO_ARCH_RP2040) || defined(PICO_BOARD) || \
|
||||||
|
defined(__RP2040__) || defined(__RP2350__)
|
||||||
|
|
||||||
#include "../../hardware_pwm/include/hardware/pwm.h"
|
#include "../../hardware_pwm/include/hardware/pwm.h"
|
||||||
#include "hardware/irq.h"
|
#include "hardware/irq.h"
|
||||||
|
|
@ -104,9 +105,14 @@ void _PM_timerInit(Protomatter_core *core) {
|
||||||
|
|
||||||
#elif defined(CIRCUITPY) // COMPILING FOR CIRCUITPYTHON --------------------
|
#elif defined(CIRCUITPY) // COMPILING FOR CIRCUITPYTHON --------------------
|
||||||
|
|
||||||
#if !defined(F_CPU) // Not sure if CircuitPython build defines this
|
#if !defined(F_CPU) // Not sure if CircuitPython build defines this
|
||||||
|
#ifdef __RP2040__
|
||||||
#define F_CPU 125000000 // Standard RP2040 clock speed
|
#define F_CPU 125000000 // Standard RP2040 clock speed
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __RP2350__
|
||||||
|
#define F_CPU 150000000 // Standard RP2350 clock speed
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
// 'pin' here is GPXX #
|
// 'pin' here is GPXX #
|
||||||
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue