summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2021-01-17 16:33:45 +0100
committerJean-François Milants <jf@codingfield.com>2021-01-17 16:33:45 +0100
commit3a3a14115a81b9dd2c6f839c0ad1b14d04367642 (patch)
tree1d3572d42e872a0f6151a2d2c5acfdcb19c96643 /src/drivers
parent04063cf0af29e09946bf3d1fa77ae91235cd8b84 (diff)
Add License/copyright info in HR related files.
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/Hrs3300.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/drivers/Hrs3300.cpp b/src/drivers/Hrs3300.cpp
index 31956575..2aded7d3 100644
--- a/src/drivers/Hrs3300.cpp
+++ b/src/drivers/Hrs3300.cpp
@@ -1,3 +1,9 @@
+/*
+ SPDX-License-Identifier: LGPL-3.0-or-later
+ Original work Copyright (C) 2020 Daniel Thompson
+ C++ port Copyright (C) 2021 Jean-François Milants
+*/
+
#include <algorithm>
#include <nrf_gpio.h>
#include "Hrs3300.h"
@@ -7,7 +13,9 @@
#include <nrf_log.h>
using namespace Pinetime::Drivers;
-
+/** Driver for the HRS3300 heart rate sensor.
+ * Original implementation from wasp-os : https://github.com/daniel-thompson/wasp-os/blob/master/wasp/drivers/hrs3300.py
+ */
Hrs3300::Hrs3300(TwiMaster &twiMaster, uint8_t twiAddress) : twiMaster{twiMaster}, twiAddress{twiAddress} {
}