From 5552975cca1cfdc70e0692a7ed849398276c8c0e Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Santos Souza de Miranda Date: Tue, 24 Mar 2026 21:03:04 -0300 Subject: [PATCH] Add library.json to the lib/YNF262 to treat it as a library and also modified the platformio.ini to use project folder variable --- lib/YMF262/include/.placeholder | 0 lib/YMF262/library.json | 10 ++++++++++ platformio.ini | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) delete mode 100644 lib/YMF262/include/.placeholder create mode 100644 lib/YMF262/library.json diff --git a/lib/YMF262/include/.placeholder b/lib/YMF262/include/.placeholder deleted file mode 100644 index e69de29..0000000 diff --git a/lib/YMF262/library.json b/lib/YMF262/library.json new file mode 100644 index 0000000..0383f5e --- /dev/null +++ b/lib/YMF262/library.json @@ -0,0 +1,10 @@ +{ + "name": "YMF262", + "version": "0.1.0", + "description": "Bare-metal driver for Yamaha YMF262 OPL3", + "frameworks": "stm32cube", + "platforms": "ststm32", + "build": { + "includeDir": "include" + } +} \ No newline at end of file diff --git a/platformio.ini b/platformio.ini index 4af5eab..b6e756e 100644 --- a/platformio.ini +++ b/platformio.ini @@ -13,4 +13,4 @@ platform = ststm32 board = nucleo_g474re framework = stm32cube lib_deps = ./lib/YMF262 -build_flags = -DUSE_HAL_DRIVER -DSTM32G474xx -I lib/YMF262/include +build_flags = -DUSE_HAL_DRIVER -DSTM32G474xx -I${PROJECT_DIR}/lib/YMF262/include \ No newline at end of file