rusefi-1/firmware/hw_layer/pin_repository.h

37 lines
625 B
C++

/**
* @file pin_repository.h
* @brief I/O pin registry header
*
*
*
* @date Jan 15, 2013
* @author Andrey Belomutskiy, (c) 2012-2017
*/
#ifndef PIN_REPOSITORY_H_
#define PIN_REPOSITORY_H_
#include "ch.h"
#include "hal.h"
#include "io_pins.h"
#ifdef __cplusplus
#include "efiGpio.h"
class PinRepository {
public:
PinRepository();
};
#endif /* __cplusplus */
#define PORT_SIZE 16
void initPinRepository(void);
bool markUsed(ioportid_t port, ioportmask_t pin, const char *msg);
const char * getPinFunction(brain_input_pin_e brainPin);
void unmarkPin(brain_pin_e brainPin);
#endif /* PIN_REPOSITORY_H_ */