Skip to content

Commit a6c65b4

Browse files
authored
Small kitchen-sink fixes (raspberrypi#1707)
- tweak CMakeLists.txt and kitchen_sink.c to be in a more similar order - add some "missing" headers to kitchen_sink.c
1 parent dcc2241 commit a6c65b4

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

test/kitchen_sink/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ target_link_libraries(kitchen_sink_libs INTERFACE
33
hardware_adc
44
hardware_clocks
55
hardware_divider
6-
hardware_exception
76
hardware_dma
7+
hardware_exception
88
hardware_flash
99
hardware_gpio
1010
hardware_i2c
@@ -15,7 +15,6 @@ target_link_libraries(kitchen_sink_libs INTERFACE
1515
hardware_pwm
1616
hardware_resets
1717
hardware_rtc
18-
hardware_uart
1918
hardware_spi
2019
hardware_sync
2120
hardware_timer

test/kitchen_sink/kitchen_sink.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@
4141
#include "pico/fix/rp2040_usb_device_enumeration.h"
4242
#include "pico/flash.h"
4343
#include "pico/float.h"
44-
#include "pico/int64_ops.h"
4544
#include "pico/i2c_slave.h"
45+
#include "pico/int64_ops.h"
4646
#include "pico/malloc.h"
47+
#include "pico/mem_ops.h"
4748
#include "pico/multicore.h"
49+
#include "pico/platform.h"
4850
#include "pico/printf.h"
4951
#include "pico/rand.h"
5052
#include "pico/runtime.h"
@@ -53,6 +55,9 @@
5355
#include "pico/sync.h"
5456
#include "pico/time.h"
5557
#include "pico/unique_id.h"
58+
#include "pico/util/datetime.h"
59+
#include "pico/util/pheap.h"
60+
#include "pico/util/queue.h"
5661

5762
#include "hardware/structs/adc.h"
5863
#include "hardware/structs/bus_ctrl.h"
@@ -63,6 +68,7 @@
6368
#include "hardware/structs/iobank0.h"
6469
#include "hardware/structs/ioqspi.h"
6570
#include "hardware/structs/mpu.h"
71+
#include "hardware/structs/nvic.h"
6672
#include "hardware/structs/padsbank0.h"
6773
#include "hardware/structs/pads_qspi.h"
6874
#include "hardware/structs/pio.h"

tools/build_all_headers.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@
2020
IGNORE_DIRS = set(['host', 'boards'])
2121
IGNORE_DIRS.add('common/boot_picoboot')
2222
IGNORE_DIRS.add('common/boot_uf2')
23-
IGNORE_DIRS.add('rp2_common/pico_mem_ops')
23+
IGNORE_DIRS.add('common/pico_usb_reset_interface')
24+
IGNORE_DIRS.add('rp2_common/cmsis')
25+
IGNORE_DIRS.add('rp2_common/pico_async_context')
26+
IGNORE_DIRS.add('rp2_common/pico_btstack')
27+
IGNORE_DIRS.add('rp2_common/pico_cyw43_arch')
28+
IGNORE_DIRS.add('rp2_common/pico_cyw43_driver')
29+
IGNORE_DIRS.add('rp2_common/pico_lwip')
2430
IGNORE_DIRS.add('rp2_common/pico_stdio_semihosting')
2531
IGNORE_DIRS.add('rp2_common/pico_stdio_usb')
2632

0 commit comments

Comments
 (0)