You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by vi...@apache.org on 2021/02/08 02:53:35 UTC

[mynewt-core] branch master updated: Licence is missing to INA226 files

This is an automated email from the ASF dual-hosted git repository.

vipulrahane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new cac8d8a  Licence is missing to INA226 files
     new feed6b8  Merge pull request #2474 from jipanienko/rama2474
cac8d8a is described below

commit cac8d8a6b38151f92319219d143ed7a882409a6a
Author: Jerzy Kasenberg <je...@gmail.com>
AuthorDate: Sat Feb 6 13:58:10 2021 +0100

    Licence is missing to INA226 files
---
 hw/drivers/sensors/ina226/include/ina226/ina226.h | 18 +++++++++++++++++-
 hw/drivers/sensors/ina226/pkg.yml                 | 16 ++++++++++++++++
 hw/drivers/sensors/ina226/src/ina226.c            | 16 ++++++++++++++++
 hw/drivers/sensors/ina226/src/ina226_shell.c      | 16 ++++++++++++++++
 hw/drivers/sensors/ina226/syscfg.yml              | 16 ++++++++++++++++
 5 files changed, 81 insertions(+), 1 deletion(-)

diff --git a/hw/drivers/sensors/ina226/include/ina226/ina226.h b/hw/drivers/sensors/ina226/include/ina226/ina226.h
index c9eb7b1..1cb8f7e 100644
--- a/hw/drivers/sensors/ina226/include/ina226/ina226.h
+++ b/hw/drivers/sensors/ina226/include/ina226/ina226.h
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2020 Jesus Ipanienko
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #ifndef __INA226_H__
 #define __INA226_H__
 
@@ -181,7 +197,7 @@ int ina226_read_bus_voltage(struct ina226_dev *ina226, uint32_t *voltage);
  * Reads shunt voltage and returns current.
  *
  * @param ina226    Pointer to ina226 device.
- * @param voltage   Pointer to output current in uA.
+ * @param current   Pointer to output current in uA.
  *
  * @return 0 on success, non-zero on failure.
  */
diff --git a/hw/drivers/sensors/ina226/pkg.yml b/hw/drivers/sensors/ina226/pkg.yml
index 2bee384..595b16e 100644
--- a/hw/drivers/sensors/ina226/pkg.yml
+++ b/hw/drivers/sensors/ina226/pkg.yml
@@ -1,3 +1,19 @@
+#
+# Copyright 2020 Jesus Ipanienko
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
 pkg.name: hw/drivers/sensors/ina226
 pkg.description: Driver for the INA226 current sensor
 pkg.author:
diff --git a/hw/drivers/sensors/ina226/src/ina226.c b/hw/drivers/sensors/ina226/src/ina226.c
index 596f5b8..6777d1c 100644
--- a/hw/drivers/sensors/ina226/src/ina226.c
+++ b/hw/drivers/sensors/ina226/src/ina226.c
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2020 Jesus Ipanienko
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #include <string.h>
 #include <errno.h>
 #include <assert.h>
diff --git a/hw/drivers/sensors/ina226/src/ina226_shell.c b/hw/drivers/sensors/ina226/src/ina226_shell.c
index cf3723f..72ff909 100644
--- a/hw/drivers/sensors/ina226/src/ina226_shell.c
+++ b/hw/drivers/sensors/ina226/src/ina226_shell.c
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2020 Jesus Ipanienko
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #include <string.h>
 #include <errno.h>
 #include "os/mynewt.h"
diff --git a/hw/drivers/sensors/ina226/syscfg.yml b/hw/drivers/sensors/ina226/syscfg.yml
index 7c3116d..ec71cd0 100644
--- a/hw/drivers/sensors/ina226/syscfg.yml
+++ b/hw/drivers/sensors/ina226/syscfg.yml
@@ -1,3 +1,19 @@
+#
+# Copyright 2020 Jesus Ipanienko
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
 syscfg.defs:
     INA226_CLI:
         description: 'Enable shell support for the INA226'