2023-08-05 03:46:13 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "AP_Networking_Config.h"
|
|
|
|
|
2023-11-12 18:09:58 -04:00
|
|
|
#if AP_NETWORKING_BACKEND_CHIBIOS
|
2023-11-12 16:38:26 -04:00
|
|
|
#include "AP_Networking_Backend.h"
|
2023-08-05 03:46:13 -03:00
|
|
|
|
2023-11-12 16:38:26 -04:00
|
|
|
class AP_Networking_ChibiOS : public AP_Networking_Backend
|
2023-08-05 03:46:13 -03:00
|
|
|
{
|
|
|
|
public:
|
2023-11-12 16:38:26 -04:00
|
|
|
using AP_Networking_Backend::AP_Networking_Backend;
|
2023-08-05 03:46:13 -03:00
|
|
|
|
|
|
|
/* Do not allow copies */
|
|
|
|
CLASS_NO_COPY(AP_Networking_ChibiOS);
|
|
|
|
|
|
|
|
bool init() override;
|
|
|
|
void update() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool allocate_buffers(void);
|
|
|
|
|
|
|
|
private:
|
|
|
|
struct lwipthread_opts *lwip_options;
|
|
|
|
uint8_t macaddr[6];
|
|
|
|
};
|
|
|
|
|
2023-11-12 18:09:58 -04:00
|
|
|
#endif // AP_NETWORKING_BACKEND_CHIBIOS
|
2023-08-05 03:46:13 -03:00
|
|
|
|