aboutsummaryrefslogtreecommitdiffstats
path: root/binding/radio_impl_null.h
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2020-09-08 18:38:10 -0400
committerScott Murray <scott.murray@konsulko.com>2020-09-08 18:43:20 -0400
commit8afc720a98e4fdf4f5c1f10492e465927b8ffd86 (patch)
tree4f88905908c9cd67b2177652f1ce0a00486f610e /binding/radio_impl_null.h
parent4cdb281367813ffc12face0bbcba300fe6e7e2d3 (diff)
Changes: - Add null radio implementation that acts as the fallthrough default when the hardware implementations are not detected. - Tweaked the probing in the tef665x implementation to not return an error if the I2C node is not even present. This cleans up the logs on start up on most platforms. These changes include some minor whitespace consistency clean ups. - Added the run-by-default widget permission now that the binding should always work. This will ease testing, and potentially decrease app start up time. Bug-AGL: SPEC-3570 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I3c2e60ce7272d248ab87e3b79d6a334e17fe5531
Diffstat (limited to 'binding/radio_impl_null.h')
-rw-r--r--binding/radio_impl_null.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/binding/radio_impl_null.h b/binding/radio_impl_null.h
new file mode 100644
index 0000000..16bd5e6
--- /dev/null
+++ b/binding/radio_impl_null.h
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2020 Konsulko Group
+ *
+ * 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 _RADIO_IMPL_NULL_H
+#define _RADIO_IMPL_NULL_H
+
+#include "radio_impl.h"
+
+extern radio_impl_ops_t null_impl_ops;
+
+#endif /* _RADIO_IMPL_NULL_H */
+