diff --git a/firmware/config/boards/hellen/alphax-4K-GDI/compile_alphax-4k-gdi.sh b/firmware/config/boards/hellen/alphax-4K-GDI/compile_alphax-4k-gdi.sh index 94859af782..4ac2dfddbf 100755 --- a/firmware/config/boards/hellen/alphax-4K-GDI/compile_alphax-4k-gdi.sh +++ b/firmware/config/boards/hellen/alphax-4K-GDI/compile_alphax-4k-gdi.sh @@ -1,2 +1,2 @@ #!/usr/bin/env bash -cd ../../../.. && bash bin/compile.sh config/boards/hellen/alphax-4K-GDI/meta-info.env +cd ../../../.. && bash bin/compile.sh config/boards/hellen/alphax-4K-GDI/meta-info-alphax-4k-gdi.env diff --git a/firmware/hw_layer/mc33816.cpp b/firmware/hw_layer/mc33816.cpp index 6a6c8ed917..42f54089a4 100644 --- a/firmware/hw_layer/mc33816.cpp +++ b/firmware/hw_layer/mc33816.cpp @@ -51,6 +51,7 @@ protected: void select() override { // revive MC33816 driver, also support bus sharing #6781 // should be somewhere but not here spiStart(driver, &spiCfg); + efiPrintf("mc select %s", hwOnChipPhysicalPinName(driver->config->ssport, driver->config->sspad)); spiSelect(driver); } diff --git a/firmware/hw_layer/pin_repository.cpp b/firmware/hw_layer/pin_repository.cpp index 4a6657d058..6273ffa9da 100644 --- a/firmware/hw_layer/pin_repository.cpp +++ b/firmware/hw_layer/pin_repository.cpp @@ -194,7 +194,7 @@ __attribute__((weak)) const char * getBoardSpecificPinName(brain_pin_e /*brainPi return nullptr; } -static const char *hwOnChipPhysicalPinName(ioportid_t hwPort, int hwPin) { +const char *hwOnChipPhysicalPinName(ioportid_t hwPort, int hwPin) { portNameStream.eos = 0; // reset if (hwPort == GPIO_NULL) { return "NONE"; diff --git a/firmware/hw_layer/pin_repository.h b/firmware/hw_layer/pin_repository.h index 8604bb98f5..19df3d4d73 100644 --- a/firmware/hw_layer/pin_repository.h +++ b/firmware/hw_layer/pin_repository.h @@ -16,7 +16,7 @@ #include "plain_pin_repository.h" bool isBrainPinValid(Gpio brainPin); - +const char *hwOnChipPhysicalPinName(ioportid_t hwPort, int hwPin); void initPinRepository(); bool brain_pin_is_onchip(Gpio brainPin); bool brain_pin_is_ext(Gpio brainPin);