Skip to content

Commit c045c40

Browse files
authored
Merge pull request #838 from MichaelBell/patch-micropython-build
Fix clean Micropython build
2 parents 9124b37 + 34b8ac9 commit c045c40

File tree

13 files changed

+32
-0
lines changed

13 files changed

+32
-0
lines changed

drivers/encoder/encoder.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
#include "hardware/irq.h"
55
#include "hardware/clocks.h"
66
#include "encoder.hpp"
7+
8+
#ifndef NO_QSTR
79
#include "encoder.pio.h"
10+
#endif
811

912
#define LAST_STATE(state) ((state) & 0b0011)
1013
#define CURR_STATE(state) (((state) & 0b1100) >> 2)

drivers/hub75/hub75.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
#include "hardware/dma.h"
66
#include "hardware/irq.h"
77
#include "libraries/pico_graphics/pico_graphics.hpp"
8+
9+
#ifndef NO_QSTR
810
#include "hub75.pio.h"
11+
#endif
912

1013
namespace pimoroni {
1114
const uint DATA_BASE_PIN = 0;

drivers/hub75_legacy/hub75.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
#include "hardware/pio.h"
55
#include "hardware/dma.h"
66
#include "hardware/irq.h"
7+
8+
#ifndef NO_QSTR
79
#include "hub75.pio.h"
10+
#endif
811

912
const uint DATA_BASE_PIN = 0;
1013
const uint DATA_N_PINS = 6;

drivers/plasma/apa102.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ found here: https://github.com/raspberrypi/pico-examples/tree/master/pio/apa102
1414
#include <math.h>
1515
#include <cstdint>
1616

17+
#ifndef NO_QSTR
1718
#include "apa102.pio.h"
19+
#endif
1820

1921
#include "pico/stdlib.h"
2022
#include "hardware/pio.h"

drivers/plasma/ws2812.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ found here: https://github.com/raspberrypi/pico-examples/tree/master/pio/ws2812
1414
#include <math.h>
1515
#include <cstdint>
1616

17+
#ifndef NO_QSTR
1718
#include "ws2812.pio.h"
19+
#endif
1820

1921
#include "pico/stdlib.h"
2022
#include "hardware/pio.h"

drivers/pwm/pwm_cluster.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#include "pwm_cluster.hpp"
22
#include "hardware/gpio.h"
33
#include "hardware/clocks.h"
4+
5+
#ifndef NO_QSTR
46
#include "pwm_cluster.pio.h"
7+
#endif
58

69
// Uncomment the below line to enable debugging
710
//#define DEBUG_MULTI_PWM

drivers/sdcard/pio_spi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
#define _PIO_SPI_H
88

99
#include "hardware/pio.h"
10+
#ifndef NO_QSTR
1011
#include "spi.pio.h"
12+
#endif
1113

1214
typedef struct pio_spi_inst {
1315
PIO pio;

drivers/st7789/st7789.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
#include "libraries/pico_graphics/pico_graphics.hpp"
1212

1313

14+
#ifndef NO_QSTR
1415
#include "st7789_parallel.pio.h"
16+
#endif
1517

1618
#include <algorithm>
1719

examples/pico_explorer_encoder/pico_explorer_encoder.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
#include "pico_explorer.hpp"
44
#include "pico/stdlib.h"
55
#include "encoder.hpp"
6+
7+
#ifndef NO_QSTR
68
#include "quadrature_out.pio.h"
9+
#endif
10+
711
#include "drivers/st7789/st7789.hpp"
812
#include "libraries/pico_graphics/pico_graphics.hpp"
913
#include "button.hpp"

libraries/cosmic_unicorn/cosmic_unicorn.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
#include "hardware/clocks.h"
77

88

9+
#ifndef NO_QSTR
910
#include "cosmic_unicorn.pio.h"
1011
#include "audio_i2s.pio.h"
12+
#endif
1113

1214
#include "cosmic_unicorn.hpp"
1315

0 commit comments

Comments
 (0)