mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-25 11:23:54 +08:00
* Replace ifdefs with hardware abstraction layer (#20801) * add type to class hadwareXXX * replace ifdefs with hardware layer * continue * continue * new function get_driver_view_transform * full path to hw.h * fix build error setup.cc * apply review * fix typo * fix deprecated error:replace deprecated fromPath with new * fix build error * Fixes after ifdef clenaup (#20842) * inheritance doesnt work with static * fix debayer * small cleanup * Update selfdrive/camerad/cameras/camera_common.cc * Update selfdrive/ui/qt/offroad/settings.cc * Update selfdrive/common/modeldata.h * flip conditions * fix comment Co-authored-by: Dean Lee <deanlee3@gmail.com>
19 lines
424 B
C++
19 lines
424 B
C++
#pragma once
|
|
|
|
#include "selfdrive/hardware/base.h"
|
|
|
|
#ifdef QCOM
|
|
#include "selfdrive/hardware/eon/hardware.h"
|
|
#define Hardware HardwareEon
|
|
#elif QCOM2
|
|
#include "selfdrive/hardware/tici/hardware.h"
|
|
#define Hardware HardwareTici
|
|
#else
|
|
class HardwarePC : public HardwareNone {
|
|
public:
|
|
static std::string get_os_version() { return "openpilot for PC"; }
|
|
static bool PC() { return true; }
|
|
};
|
|
#define Hardware HardwarePC
|
|
#endif
|