Skip to content

Commit 0eebf74

Browse files
committed
[rp2040] ci related fixes
1 parent ae38925 commit 0eebf74

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,11 +565,12 @@ We have out-of-box support for many development boards including documentation.
565565
<td align="center"><a href="https://modm.io/reference/module/modm-board-nucleo-l496zg-p">NUCLEO-L496ZG-P</a></td>
566566
<td align="center"><a href="https://modm.io/reference/module/modm-board-olimexino-stm32">OLIMEXINO-STM32</a></td>
567567
</tr><tr>
568+
<td align="center"><a href="https://modm.io/reference/module/modm-board-rp-pico">RP-PICO</a></td>
568569
<td align="center"><a href="https://modm.io/reference/module/modm-board-raspberrypi">Raspberry Pi</a></td>
569570
<td align="center"><a href="https://modm.io/reference/module/modm-board-samd21-mini">SAMD21-MINI</a></td>
570571
<td align="center"><a href="https://modm.io/reference/module/modm-board-samg55-xplained-pro">SAMG55-XPLAINED-PRO</a></td>
571-
<td align="center"><a href="https://modm.io/reference/module/modm-board-stm32_f4ve">STM32-F4VE</a></td>
572572
</tr><tr>
573+
<td align="center"><a href="https://modm.io/reference/module/modm-board-stm32_f4ve">STM32-F4VE</a></td>
573574
<td align="center"><a href="https://modm.io/reference/module/modm-board-stm32f030_demo">STM32F030-DEMO</a></td>
574575
<td align="center"><a href="https://modm.io/reference/module/modm-board-srxe">Smart Response XE</a></td>
575576
</tr>

src/modm/platform/gpio/rp/config.hpp.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ enum class PeripheralPin
3737
Mosi,
3838
Sclk,
3939
/* pwm */
40-
A,
40+
A,
4141
B,
4242
/* usb */
4343
Muxing_overcurr_detect,
@@ -118,9 +118,9 @@ struct PinAf<PinConfig{{ gpio["pinname"] }},Peripheral::{{ signal["peripheral"]
118118

119119
struct Pin{{ gpio["pinname"] }} : PinConfig{{ gpio["pinname"] }} {
120120
%% for signal in gpio["signals"]
121-
struct {{ signal }} {
122-
using Data = Pin{{ gpio["pinname"] }};
123-
static constexpr PeripheralPin signal = PeripheralPin::{{ signal }};
121+
struct {{ signal }} {
122+
using Data = Pin{{ gpio["pinname"] }};
123+
static constexpr PeripheralPin signal = PeripheralPin::{{ signal }};
124124
};
125125
%% endfor
126126
};

src/modm/platform/gpio/rp/connector.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include "pin.hpp"
1515
#include "unused.hpp"
1616

17-
namespace modm::platform
17+
namespace modm::platform
1818
{
1919

2020
namespace detail
@@ -44,7 +44,7 @@ struct GpioGetSignal<signal>
4444
template<Peripheral c, class... Signals>
4545
struct GpioConnector
4646
{
47-
47+
4848
template< class GpioQuery >
4949
static constexpr bool Contains = (
5050
std::is_same_v<typename Signals::Data, typename GpioQuery::Data> or ...);

src/modm/platform/gpio/rp/module.lb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def build(env):
7878
for gpio in driver["gpio"]:
7979
gpio["pinname"] = gpio["name"].capitalize()
8080
gpio["signals"] = set([(s["name"].capitalize()) for s in gpio["signal"]])
81-
for sig in gpio["signal"]:
81+
for sig in gpio["signal"]:
8282
if "instance" in sig:
8383
sig["peripheral"] = sig["driver"].capitalize() + sig['instance']
8484
else:

src/modm/platform/gpio/sam/config.hpp.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
#include <stdint.h>
1515
#include <tuple>
16-
#include <modm/platform/core/peripherals.hpp>
1716

1817
namespace modm::platform
1918
{

src/modm/platform/uart/rp/uart.hpp.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public:
130130
%% if options["buffer.rx"] > fifo_size
131131
/* If RX buffering with more than {{ fifo_size }} bytes is requested a software queue
132132
* must be used for receiving. This involves the Rx Interrupt only. */
133-
uart{{ id }}_hw->imsc = UART_UARTIMSC_RXIM_BITS;
133+
uart{{ id }}_hw->imsc = UART_UARTIMSC_RXIM_BITS;
134134
%% endif
135135

136136
%% if options["buffer.tx"] > fifo_size or options["buffer.rx"] > fifo_size

tools/modm_tools/elf2uf2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def convert_data(source_bytes,target):
249249
page_num += 1
250250
file_content += block
251251
return file_content
252-
252+
253253
def convert(source, output, target):
254254
source_bytes = Path(source).read_bytes()
255255
uf2 = convert_data(source_bytes,target)

0 commit comments

Comments
 (0)