10000 fix pioasm python output (#694) (#695) · schkovich/arduino-pico@d831eff · GitHub
[go: up one dir, main page]

Skip to content

Commit d831eff

Browse files
author
Michael Olson
authored
fix pioasm python output (earlephilhower#694) (earlephilhower#695)
Issue: irq wait 0 irq 0 are translated as: irq(wait, 0) # 0 irq(nowait, 0) # 1 wait/nowait are incorrect, should be block or ommited (alt: noblock). After change: irq(block, 0) # 0 irq(0) # 1
1 parent 215f77b commit d831eff
8000

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tools/pioasm/python_output.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
2+
* Copyright (c) 2021 Raspberry Pi (Trading) Ltd.
33
*
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
@@ -283,9 +283,7 @@ struct python_output : public output_format {
283283
if (arg1 & 0x2u) {
284284
guts += "clear, ";
285285
} else if (arg1 & 0x1u) {
286-
guts += "wait, ";
287-
} else {
288-
guts += "nowait, ";
286+
guts += "block, ";
289287
}
290288
auto irq = std::to_string(arg2 & 7u);
291289
if (arg2 & 0x10u) {

0 commit comments

Comments
 (0)
0