gpio: tle9104: fix simulator

This commit is contained in:
Andrey Gusakov 2024-06-21 22:53:56 +03:00 committed by rusefillc
parent b7ca018a8c
commit 66db9f6a34
1 changed files with 5 additions and 4 deletions

View File

@ -1,9 +1,12 @@
#pragma once
#if EFI_PROD_CODE && BOARD_TLE9104_COUNT > 0
#include "global.h"
#include <hal.h>
#include "efifeatures.h"
struct tle9104_config {
SPIDriver *spi_bus;
SPIDriver *spi_bus;
SPIConfig spi_config;
struct {
@ -44,5 +47,3 @@ int tle9104_add(Gpio base, int index, const tle9104_config* cfg);
// .resn = Gpio::A3,
// .en = Gpio::C9
// };
#endif // BOARD_TLE9104_COUNT > 0