2019-11-17 14:47:04 -05:00
|
|
|
#pragma once
|
2021-10-13 16:08:35 -04:00
|
|
|
#include "logging/Logger.h"
|
2019-11-17 14:47:04 -05:00
|
|
|
|
2020-11-15 09:05:51 -05:00
|
|
|
#include <FreeRTOS.h>
|
|
|
|
#include <task.h>
|
|
|
|
|
2019-11-17 14:47:04 -05:00
|
|
|
namespace Pinetime {
|
2021-04-18 13:28:14 -04:00
|
|
|
namespace Logging {
|
2019-11-17 14:47:04 -05:00
|
|
|
class NrfLogger : public Logger {
|
2021-04-18 13:28:14 -04:00
|
|
|
public:
|
|
|
|
void Init() override;
|
|
|
|
void Resume() override;
|
2019-11-17 14:47:04 -05:00
|
|
|
|
2021-04-18 13:28:14 -04:00
|
|
|
private:
|
|
|
|
static void Process(void*);
|
|
|
|
TaskHandle_t m_logger_thread;
|
2019-11-17 14:47:04 -05:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|