Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5077

General • Re: Pico2 easy upgrade or nightmare?

$
0
0
When you have a custom board header the file goes where?
In ${CMAKE_BOARD_HEADER_DIRS}

I normally use:

Code:

set(PICO_BOARD_HEADER_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/../boards)
which gives me a /boards subdirectory at the same level as the source subdirectories for the various applications that use it; you may choose to keep your board files somewhere else.
I can just have a boards folder in the project root then, that's awesome. Will changing this cause issues with dependencies for example my folders need pico.h and pico2.h so do I need to copy them to the project as well or will that still work?

Statistics: Posted by DarkElvenAngel — Wed Sep 18, 2024 10:37 pm



Viewing all articles
Browse latest Browse all 5077

Trending Articles