Skip to content

Commit c78bcf7

Browse files
committed
global: Prune trailing whitespace.
Prune trailing whitespace across the whole project*, this is done automatically with: grep -IUrl --color "[[:blank:]]$" --exclude-dir=.git --exclude=*.exp |\ xargs sed -i 's/[[:space:]]*$//' * Skipping third-party code in lib/ and drivers/cc3100/. Signed-off-by: Phil Howard <phil@gadgetoid.com>
1 parent 678707c commit c78bcf7

File tree

54 files changed

+387
-387
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+387
-387
lines changed

.github/workflows/ports_windows.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ jobs:
5656
- uses: actions/setup-python@v5
5757
if: matrix.runner == 'windows-2019'
5858
with:
59-
python-version: '3.9'
59+
python-version: '3.9'
6060
- uses: actions/checkout@v4
6161
- name: Build mpy-cross.exe
6262
run: msbuild mpy-cross\mpy-cross.vcxproj -maxcpucount -property:Configuration=${{ matrix.configuration }} -property:Platform=${{ matrix.platform }}
6363
- name: Update submodules
6464
run: git submodule update --init lib/micropython-lib
6565
- name: Build micropython.exe
66-
run: msbuild ports\windows\micropython.vcxproj -maxcpucount -property:Configuration=${{ matrix.configuration }} -property:Platform=${{ matrix.platform }} -property:PyVariant=${{ matrix.variant }}
66+
run: msbuild ports\windows\micropython.vcxproj -maxcpucount -property:Configuration=${{ matrix.configuration }} -property:Platform=${{ matrix.platform }} -property:PyVariant=${{ matrix.variant }}
6767
- name: Get micropython.exe path
6868
id: get_path
6969
run: |
@@ -123,7 +123,7 @@ jobs:
123123
msystem: ${{ matrix.sys }}
124124
update: true
125125
install: >-
126-
make
126+
make
127127
mingw-w64-${{ matrix.env }}-gcc
128128
pkg-config
129129
python3

docs/develop/gettingstarted.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Check that you have Python available on your system:
112112
.. code-block:: bash
113113
114114
$ python3
115-
Python 3.5.0 (default, Jul 17 2020, 14:04:10)
115+
Python 3.5.0 (default, Jul 17 2020, 14:04:10)
116116
[GCC 5.4.0 20160609] on linux
117117
Type "help", "copyright", "credits" or "license" for more information.
118118
>>>

docs/differences/python_37.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,4 @@ Changes to built-in modules:
105105

106106
.. rubric:: Notes
107107

108-
.. [#ftimenanosec] Only :func:`time.time_ns` is implemented.
108+
.. [#ftimenanosec] Only :func:`time.time_ns` is implemented.

docs/library/machine.ADCBlock.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Constructors
2626

2727
Access the ADC peripheral identified by *id*, which may be an integer
2828
or string.
29-
29+
3030
The *bits* argument, if given, sets the resolution in bits of the
3131
conversion process. If not specified then the previous or default
3232
resolution is used.

docs/library/machine.PWM.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Specific PWM class implementations
8686

8787
The following concrete class(es) implement enhancements to the PWM class.
8888

89-
| :ref:`pyb.Timer for PyBoard <pyb.Timer>`
89+
| :ref:`pyb.Timer for PyBoard <pyb.Timer>`
9090
9191
Limitations of PWM
9292
------------------
@@ -103,7 +103,7 @@ Limitations of PWM
103103
Some ports like the RP2040 one use a fractional divider, which allow a finer
104104
granularity of the frequency at higher frequencies by switching the PWM
105105
pulse duration between two adjacent values, such that the resulting average
106-
frequency is more close to the intended one, at the cost of spectral purity.
106+
frequency is more close to the intended one, at the cost of spectral purity.
107107

108108
* The duty cycle has the same discrete nature and its absolute accuracy is not
109109
achievable. On most hardware platforms the duty will be applied at the next

docs/mimxrt/pinout.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ MIXMXRT1050-EVKB D10/-/D11/D12/D13 (*) - -
319319
MIXMXRT1060-EVK D10/-/D11/D12/D13 (*) - -
320320
MIXMXRT1064-EVK D10/-/D11/D12/D13 (*) - -
321321
MIXMXRT1170-EVK D10/-/D11/D12/D13 D28/-/D25/D24/D26 -/-/D14/D15/D24
322-
Adafruit Metro M7 -/-/MOSI/MISO/SCK - -
322+
Adafruit Metro M7 -/-/MOSI/MISO/SCK - -
323323
Olimex RT1010Py - CS0/-/SDO/SDI/SCK SDCARD with CS1
324324
Seeed ARCH MIX J4_12/-/J4_14/J4_13/J4_15 J3_09/J3_05/J3_08_J3_11
325325
================= ========================= ======================= ===============
@@ -375,7 +375,7 @@ Teensy 4.0 2 33 4 3 2 - - 5
375375
Teensy 4.1 1 23 26 27 7 21 20 8
376376
Teensy 4.1 2 33 4 3 2 - - 5
377377
Seeed Arch MIX 1 J4_09 J4_14 J4_15 J14_13 J4_11 J4_10 J4_10
378-
Adafruit Metro M7 1 D8 D10 D9 D12 D14 D15 D13
378+
Adafruit Metro M7 1 D8 D10 D9 D12 D14 D15 D13
379379
Olimex RT1010Py 1 D8 D6 D7 D4 D1 D2 D3
380380
Olimex RT1010Py 3 - D10 D9 D11 - - -
381381
MIMXRT_DEV 1 "MCK" "SCK_TX" "WS_TX" "SD_TX" "SCK_RX" "WS_RX" "SD_RX"

docs/mimxrt/quickref.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ rates (up to 30Mhz). Hardware SPI is accessed via the
309309
For the assignment of Pins to SPI signals, refer to
310310
:ref:`Hardware SPI pinout <mimxrt_spi_pinout>`.
311311
The keyword option cs=n can be used to enable the cs pin 0 or 1 for an automatic cs signal. The
312-
default is cs=-1. Using cs=-1 the automatic cs signal is not created.
312+
default is cs=-1. Using cs=-1 the automatic cs signal is not created.
313313
In that case, cs has to be set by the script. Clearing that assignment requires a power cycle.
314314

315315
Notes:

docs/samd/pinout.rst

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -17,44 +17,44 @@ Adafruit ItsyBitsy M0 Express pin assignment table
1717
=== ==== ============ ==== ==== ====== ====== ====== ======
1818
Pin GPIO Pin name IRQ ADC Serial Serial TCC/TC TCC/TC
1919
=== ==== ============ ==== ==== ====== ====== ====== ======
20-
2 PA02 A0 2 0 - - - -
21-
40 PB08 A1 8 2 - 4/0 4/0 -
22-
41 PB09 A2 9 3 - 4/1 4/1 -
23-
4 PA04 A3 4 4 - 0/0 0/0 -
24-
5 PA05 A4 5 5 - 0/1 0/1 -
25-
34 PB02 A5 2 10 - 5/0 6/0 -
20+
2 PA02 A0 2 0 - - - -
21+
40 PB08 A1 8 2 - 4/0 4/0 -
22+
41 PB09 A2 9 3 - 4/1 4/1 -
23+
4 PA04 A3 4 4 - 0/0 0/0 -
24+
5 PA05 A4 5 5 - 0/1 0/1 -
25+
34 PB02 A5 2 10 - 5/0 6/0 -
2626
11 PA11 D0 11 19 0/3 2/3 1/1 0/3
2727
10 PA10 D1 10 18 0/2 2/2 1/0 0/2
2828
14 PA14 D2 14 - 2/2 4/2 3/0 0/4
2929
9 PA09 D3 9 17 0/1 2/1 0/1 1/3
3030
8 PA08 D4 - 16 0/0 2/0 0/0 1/2
3131
15 PA15 D5 15 - 2/3 4/3 3/1 0/5
3232
21 PA21 D7 5 - 5/3 3/3 7/1 0/7
33-
7 PA07 D9 7 7 - 0/3 1/1 -
33+
7 PA07 D9 7 7 - 0/3 1/1 -
3434
18 PA18 D10 2 - 1/2 3/2 3/0 0/2
3535
16 PA16 D11 0 - 1/0 3/0 2/0 0/6
3636
19 PA19 D12 3 - 1/3 3/3 3/1 0/3
3737
17 PA17 D13 1 - 1/1 3/1 2/1 0/7
38-
0 PA00 DOTSTAR_CLK 0 - - 1/0 2/0 -
39-
1 PA01 DOTSTAR_DATA 1 - - 1/1 2/1 -
40-
27 PA27 FLASH_CS 15 - - - - -
41-
35 PB03 FLASH_MISO 3 11 - 5/1 6/1 -
42-
54 PB22 FLASH_MOSI 6 - - 5/2 7/0 -
43-
55 PB23 FLASH_SCK 7 - - 5/3 7/1 -
38+
0 PA00 DOTSTAR_CLK 0 - - 1/0 2/0 -
39+
1 PA01 DOTSTAR_DATA 1 - - 1/1 2/1 -
40+
27 PA27 FLASH_CS 15 - - - - -
41+
35 PB03 FLASH_MISO 3 11 - 5/1 6/1 -
42+
54 PB22 FLASH_MOSI 6 - - 5/2 7/0 -
43+
55 PB23 FLASH_SCK 7 - - 5/3 7/1 -
4444
12 PA12 MISO 12 - 2/0 4/0 2/0 0/6
4545
42 PB10 MOSI 10 - - 4/2 5/0 0/4
4646
43 PB11 SCK 11 - - 4/3 5/1 0/5
4747
23 PA23 SCL 7 - 3/1 5/1 4/1 0/5
4848
22 PA22 SDA 6 - 3/0 5/0 4/0 0/4
49-
30 PA30 SWCLK 10 - - 1/2 1/0 -
50-
31 PA31 SWDIO 11 - - 1/3 1/1 -
49+
30 PA30 SWCLK 10 - - 1/2 1/0 -
50+
31 PA31 SWDIO 11 - - 1/3 1/1 -
5151
24 PA24 USB_DM 12 - 3/2 5/2 5/0 1/2
5252
25 PA25 USB_DP 13 - 3/3 5/3 5/1 1/3
53-
3 PA03 3 1 - - - -
54-
6 PA06 6 6 - 0/2 1/0 -
53+
3 PA03 3 1 - - - -
54+
6 PA06 6 6 - 0/2 1/0 -
5555
13 PA13 13 - 2/1 4/1 2/0 0/7
5656
20 PA20 4 - 5/2 3/2 7/0 0/4
57-
28 PA28 8 - - - - -
57+
28 PA28 8 - - - - -
5858
=== ==== ============ ==== ==== ====== ====== ====== ======
5959

6060

@@ -348,12 +348,12 @@ Adafruit Metro M4 Airlift pin assignment table
348348
=== ==== ============ ==== ==== ==== ====== ====== ===== ===== =====
349349
Pin GPIO Pin name IRQ ADC ADC Serial Serial TC PWM PWM
350350
=== ==== ============ ==== ==== ==== ====== ====== ===== ===== =====
351-
2 PA02 A0 2 0 - - - - - -
352-
5 PA05 A1 5 5 - - 0/1 0/1 - -
353-
6 PA06 A2 6 6 - - 0/2 1/0 - -
354-
32 PB00 A3 9 12 - - 5/2 7/0 - -
355-
40 PB08 A4 8 2 0 - 4/0 4/0 - -
356-
41 PB09 A5 9 3 1 - 4/1 4/1 - -
351+
2 PA02 A0 2 0 - - - - - -
352+
5 PA05 A1 5 5 - - 0/1 0/1 - -
353+
6 PA06 A2 6 6 - - 0/2 1/0 - -
354+
32 PB00 A3 9 12 - - 5/2 7/0 - -
355+
40 PB08 A4 8 2 0 - 4/0 4/0 - -
356+
41 PB09 A5 9 3 1 - 4/1 4/1 - -
357357
23 PA23 D0 7 - - 3/1 5/0 4/1 1/7 0/3
358358
22 PA22 D1 6 - - 3/0 5/1 4/0 1/6 0/2
359359
49 PB17 D2 1 - - 5/1 - 6/1 3/1 0/5
@@ -364,17 +364,17 @@ Pin GPIO Pin name IRQ ADC ADC Serial Serial TC PWM PWM
364364
44 PB12 D7 12 - - 4/0 - 4/0 3/0 0/0
365365
21 PA21 D8 5 - - 5/3 3/3 7/1 1/5 0/1
366366
20 PA20 D9 4 - - 5/2 3/2 7/0 1/4 0/0
367-
3 PA03 AREF 3 10 - - - - - -
367+
3 PA03 AREF 3 10 - - - - - -
368368
18 PA18 D10 2 - - 1/2 3/2 3/0 1/2 0/6
369369
19 PA19 D11 3 - - 1/3 3/3 3/1 1/3 0/7
370370
16 PA16 D13 0 - - 1/0 3/1 2/0 1/0 0/4
371-
36 PB04 ESP_BUSY 4 - 6 - - - - -
371+
36 PB04 ESP_BUSY 4 - 6 - - - - -
372372
15 PA15 ESP_CS 15 - - 2/3 4/3 3/1 2/1 1/3
373-
33 PB01 ESP_GPIO0 1 13 - - 5/3 7/1 - -
374-
37 PB05 ESP_RESET 5 - 7 - - - - -
375-
55 PB23 ESP_RTS 7 - - 1/3 5/3 7/1 - -
376-
7 PA07 ESP_RX 7 7 - - 0/3 1/1 - -
377-
4 PA04 ESP_TX 4 4 - - 0/0 0/0 - -
373+
33 PB01 ESP_GPIO0 1 13 - - 5/3 7/1 - -
374+
37 PB05 ESP_RESET 5 - 7 - - - - -
375+
55 PB23 ESP_RTS 7 - - 1/3 5/3 7/1 - -
376+
7 PA07 ESP_RX 7 7 - - 0/3 1/1 - -
377+
4 PA04 ESP_TX 4 4 - - 0/0 0/0 - -
378378
43 PB11 FLASH_CS 12 - - - 4/3 5/1 0/5 1/1
379379
11 PA11 FLASH_HOLD 11 11 - 0/3 2/3 1/1 0/3 1/7
380380
9 PA09 FLASH_MISO 9 9 3 0/1 2/0 0/1 0/1 1/5
@@ -383,21 +383,21 @@ Pin GPIO Pin name IRQ ADC ADC Serial Serial TC PWM PWM
383383
10 PA10 FLASH_WP 10 10 - 0/2 2/2 1/0 0/2 1/6
384384
14 PA14 MISO 14 - - 2/2 4/2 3/0 2/0 1/2
385385
12 PA12 MOSI 12 - - 2/0 4/1 2/0 0/6 1/2
386-
54 PB22 NEOPIXEL 22 - - 1/2 5/2 7/0 - -
387-
38 PB06 RXLED 6 - 8 - - - - -
386+
54 PB22 NEOPIXEL 22 - - 1/2 5/2 7/0 - -
387+
38 PB06 RXLED 6 - 8 - - - - -
388388
13 PA13 SCK 13 - - 2/1 4/0 2/1 0/7 1/3
389-
35 PB03 SCL 9 15 - - 5/1 6/1 - -
390-
34 PB02 SDA 2 14 - - 5/0 6/0 2/2 -
391-
30 PA30 SWCLK 14 - - 7/2 1/2 6/0 2/0 -
392-
31 PA31 SWDIO 15 - - 7/3 1/3 6/1 2/1 -
389+
35 PB03 SCL 9 15 - - 5/1 6/1 - -
390+
34 PB02 SDA 2 14 - - 5/0 6/0 2/2 -
391+
30 PA30 SWCLK 14 - - 7/2 1/2 6/0 2/0 -
392+
31 PA31 SWDIO 15 - - 7/3 1/3 6/1 2/1 -
393393
62 PB30 SWO 14 - - 7/0 5/1 0/0 4/0 0/6
394-
39 PB07 TXLED 7 - 9 - - - - -
395-
24 PA24 USB_DM 8 - - 3/2 5/2 5/0 2/2 -
396-
25 PA25 USB_DP 9 - - 3/3 5/3 5/1 - -
394+
39 PB07 TXLED 7 - 9 - - - - -
395+
24 PA24 USB_DM 8 - - 3/2 5/2 5/0 2/2 -
396+
25 PA25 USB_DP 9 - - 3/3 5/3 5/1 - -
397397
17 PA17 USB_HOSTEN 1 - - 1/1 3/0 2/1 1/1 0/5
398-
0 PA00 - 0 - - - 1/0 2/0 - -
399-
1 PA01 - 1 - - - 1/1 2/1 - -
400-
27 PA27 - 11 - - - - - - -
398+
0 PA00 - 0 - - - 1/0 2/0 - -
399+
1 PA01 - 1 - - - 1/1 2/1 - -
400+
27 PA27 - 11 - - - - - - -
401401
63 PB31 - 15 - - 7/1 5/0 0/1 4/1 0/7
402402
=== ==== ============ ==== ==== ==== ====== ====== ===== ===== =====
403403

docs/wipy/tutorial/repl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Resetting the board
119119
If something goes wrong, you can reset the board in two ways. The first is to press CTRL-D
120120
at the MicroPython prompt, which performs a soft reset. You will see a message something like::
121121

122-
>>>
122+
>>>
123123
MPY: soft reboot
124124
MicroPython v1.4.6-146-g1d8b5e5 on 2015-10-21; WiPy with CC3200
125125
Type "help()" for more information.

extmod/axtls-include/config.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
#define CONFIG_SSL_X509_ORGANIZATION_UNIT_NAME ""
4747
#undef CONFIG_SSL_HAS_PEM
4848
#undef CONFIG_SSL_USE_PKCS12
49-
#define CONFIG_SSL_EXPIRY_TIME
49+
#define CONFIG_SSL_EXPIRY_TIME
5050
#define CONFIG_X509_MAX_CA_CERTS 0
5151
#define CONFIG_SSL_MAX_CERTS 3
5252
#undef CONFIG_SSL_CTX_MUTEXING
@@ -58,11 +58,11 @@
5858
#undef CONFIG_AXTLSWRAP
5959
#undef CONFIG_AXHTTPD
6060
#undef CONFIG_HTTP_STATIC_BUILD
61-
#define CONFIG_HTTP_PORT
62-
#define CONFIG_HTTP_HTTPS_PORT
63-
#define CONFIG_HTTP_SESSION_CACHE_SIZE
61+
#define CONFIG_HTTP_PORT
62+
#define CONFIG_HTTP_HTTPS_PORT
63+
#define CONFIG_HTTP_SESSION_CACHE_SIZE
6464
#define CONFIG_HTTP_WEBROOT ""
65-
#define CONFIG_HTTP_TIMEOUT
65+
#define CONFIG_HTTP_TIMEOUT
6666
#undef CONFIG_HTTP_HAS_CGI
6767
#define CONFIG_HTTP_CGI_EXTENSIONS ""
6868
#undef CONFIG_HTTP_ENABLE_LUA
@@ -107,8 +107,8 @@
107107
#undef CONFIG_BIGINT_BARRETT
108108
#undef CONFIG_BIGINT_CRT
109109
#undef CONFIG_BIGINT_KARATSUBA
110-
#define MUL_KARATSUBA_THRESH
111-
#define SQU_KARATSUBA_THRESH
110+
#define MUL_KARATSUBA_THRESH
111+
#define SQU_KARATSUBA_THRESH
112112
#undef CONFIG_BIGINT_SLIDING_WINDOW
113113
#undef CONFIG_BIGINT_SQUARE
114114
#undef CONFIG_BIGINT_CHECK_ON

0 commit comments

Comments
 (0)