SMART_COMPONENTS_GpioPins/Gpios.h

40 lines
767 B
C

//
// Created by ilya on 22.03.24.
//
#ifndef SMART_COMPONENTS_GPIOS_H
#define SMART_COMPONENTS_GPIOS_H
#include <SerialPorts.h>
//#include "PowerManagement.h"
#include "UserInput.h"
#include "UserIndication.h"
#include "SpiPorts.h"
#include "PowerManagment.h"
//#include "PowerManagment.h"
typedef struct {
tBipLed led;
tUserInputPins buttons;
tGpioPin Backlight;
tGpioPin Power;
tGpioPin Diagnost;
uint16_t lastTestTime;
} tBipPins;
typedef struct {
tAccelPins accel;
tFlashPins flash;
tOnBoardLed onBoardLed;
tBipPins bip;
tRs485DirectionPins comIntDir;
tPowerSusystem powerSusystem;
} tGpios;
extern tGpios GPIOS;
void Gpios_Init();
void Gpios_CanStandby(tCanStandby *env);
#endif //SMART_COMPONENTS_GPIOS_H