mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-08-06 06:02:39 +03:00
small pioasm improvements (#2224)
- fix disassembly of `wait jmppin` - fix incorrect error message - make python output emit `word(x)` for all unsupported instructions
This commit is contained in:
@@ -63,7 +63,7 @@ void program::set_pio_version(const yy::location &l, int version) {
|
||||
|
||||
void program::set_clock_div(const yy::location &l, float clock_div) {
|
||||
if (clock_div < 1.0f || clock_div >= 65536.0f) {
|
||||
throw syntax_error(l, "clock divider must be between 1 and 65546");
|
||||
throw syntax_error(l, "clock divider must be between 1 and 65535");
|
||||
}
|
||||
clock_div_int = (uint16_t)clock_div;
|
||||
if (clock_div_int == 0) {
|
||||
|
Reference in New Issue
Block a user