Skip to content

Commit d030765

Browse files
committed
fix whitespaces
1 parent 80c983c commit d030765

File tree

11 files changed

+18
-33
lines changed

11 files changed

+18
-33
lines changed

ext/rp/module.lb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def build(env):
4343

4444
env.copy("pico-sdk/include",'')
4545
env.copy("address_mapped.h",'hardware/address_mapped.h')
46-
46+
4747
env.substitutions = {
4848
'headers': headers,
4949
'defines': defines,

src/modm/board/rp_pico/board.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ struct SystemClock
3333
static constexpr uint32_t UsbPLLMul = 40;
3434
static constexpr uint32_t RefFrequency = 12_MHz;
3535
static constexpr uint32_t UsbFrequency = 48_MHz;
36-
36+
3737
static bool inline
3838
enable()
3939
{
@@ -79,7 +79,7 @@ namespace usb
7979
// using Device = UsbFs;
8080
}
8181

82-
// User LED
82+
// User LED
8383
using LedGreen = GpioOutput25;
8484
using Leds = SoftwareGpioPort< LedGreen >;
8585

src/modm/platform/clock/rp/clocks.cpp.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void ClockControl::enableExternalCrystal(uint32_t freq) {
3030
xosc_hw->ctrl = XOSC_CTRL_FREQ_RANGE_VALUE_1_15MHZ;
3131

3232
uint32_t delay = ((((freq / 1000) + 128) / 256) * PICO_XOSC_STARTUP_DELAY_MULTIPLIER);
33-
33+
3434
// Set xosc startup delay
3535
xosc_hw->startup = delay;
3636

@@ -52,7 +52,7 @@ void ClockControl::disableAux(Clock clk) {
5252
}
5353

5454
void ClockControl::configure(Clock clk,uint32_t src, uint32_t auxsrc, uint32_t div) {
55-
55+
5656
clock_hw_t *clock = &clocks_hw->clk[uint32_t(clk)];
5757
// If increasing divisor, set divisor before source. Otherwise set source
5858
// before divisor. This avoids a momentary overspeed when e.g. switching

src/modm/platform/clock/rp/clocks.hpp.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace modm::platform
3030
public:
3131

3232
enum class
33-
Clock
33+
Clock
3434
{
3535
Ref = clk_ref,
3636
Sys = clk_sys,

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def prepare(module, options):
2626

2727
def build(env):
2828
device = env[":target"]
29-
29+
3030
properties = {}
3131
properties["target"] = target = device.identifier
3232
properties["partname"] = device.partname
@@ -38,5 +38,3 @@ def build(env):
3838

3939
env.template("clocks.cpp.in")
4040
env.template("clocks.hpp.in")
41-
42-

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ def prepare(module, options):
2525
module.depends(":platform:cortex-m")
2626
module.depends(":platform:clockgen")
2727

28-
2928
return True
3029

3130

@@ -57,7 +56,7 @@ def build(env):
5756
env.template("../cortex/delay_ns.cpp.in", "delay_ns.cpp")
5857
env.template("../cortex/delay_ns.hpp.in", "delay_ns.hpp")
5958
env.template("../cortex/delay_impl.hpp.in", "delay_impl.hpp")
60-
59+
6160

6261
def post_build(env):
6362
env.substitutions = env.query("::cortex-m:linkerscript")

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ def build(env):
6565
peripherals = OrderedDict()
6666
for gpio in driver["gpio"]:
6767
gpio["pinname"] = gpio["name"].capitalize()
68-
69-
68+
7069
bprops["target"] = device.identifier
7170

7271
env.substitutions = bprops

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace modm::platform
2121

2222

2323
template< class... Gpios >
24-
class GpioSet
24+
class GpioSet
2525
{
2626
protected:
2727
static constexpr uint32_t inverteds[{{ ports | length }}] = {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public:
7777
static void write(PortType data)
7878
{
7979
%% for port, id in ports.items()
80-
if constexpr (mask({{id}})) { uint32_t ps{0}; uint32_t pr{0};
80+
if constexpr (mask({{id}})) { uint32_t ps{0}; uint32_t pr{0};
8181
%% for pos in range(32)
8282
if constexpr ({{pos}} < width) if constexpr (constexpr auto pos = shift_mask({{id}}, {{pos}}); pos >= 0) { if (data & (1ul << {{pos}})) { ps |= (1ul << pos); } else { pr |= (1ul << pos);}}
8383
%% endfor

tools/build_script_generator/scons/site_tools/elf2uf2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def elf2uf2_action(target, source, env):
2121
str(target[0]),env['CONFIG_DEVICE_NAME'])
2222

2323
def generate(env, **kw):
24-
24+
2525
builder_elf2uf2 = Builder(
2626
action=Action(elf2uf2_action,
2727
cmdstr="$UF2COMSTR"),

0 commit comments

Comments
 (0)