Add library.json to the lib/YNF262 to treat it as a library and also modified the platformio.ini to use project folder variable

This commit is contained in:
Gustavo Henrique Santos Souza de Miranda 2026-03-24 21:03:04 -03:00
parent d52562309d
commit 5552975cca
3 changed files with 11 additions and 1 deletions

10
lib/YMF262/library.json Normal file
View File

@ -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"
}
}

View File

@ -13,4 +13,4 @@ platform = ststm32
board = nucleo_g474re board = nucleo_g474re
framework = stm32cube framework = stm32cube
lib_deps = ./lib/YMF262 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