#include "myhalclass.h" #include #include "hal.h" #define SERVO_PERIOD 1000000 #define SERVO_THREAD_FP 0 MyHalClass::MyHalClass(QObject *parent) : QObject(parent) { } void MyHalClass::startHal() { hal_init("core"); hal_create_thread("servo-thread", SERVO_PERIOD, SERVO_THREAD_FP); qDebug() << "HAL initialization finished."; }