summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/dev/app.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2025-02-16 20:17:07 +0100
committerUros Majstorovic <majstor@majstor.org>2025-02-16 20:17:07 +0100
commit2e17dd17ee9777084b2f211f08c4231dd5f8b906 (patch)
treef50ad99c62d81906082cbb28eb84d857ef7311c9 /fw/fe310/eos/dev/app.c
parent064631db87182694459056ceeb331506b553d0f0 (diff)
extended gpio implemented
Diffstat (limited to 'fw/fe310/eos/dev/app.c')
-rw-r--r--fw/fe310/eos/dev/app.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/fw/fe310/eos/dev/app.c b/fw/fe310/eos/dev/app.c
new file mode 100644
index 0000000..3c215f4
--- /dev/null
+++ b/fw/fe310/eos/dev/app.c
@@ -0,0 +1,25 @@
+#include <stdlib.h>
+#include <stdint.h>
+
+#include "eos.h"
+
+#include "hpamp.h"
+#include "app.h"
+
+#ifdef EOS_DEBUG
+#include <stdio.h>
+#endif
+
+void eos_app_hp_change(int hp_det) {
+ if (hp_det) {
+ int rv;
+
+ rv = eos_hpamp_init();
+ if (rv) {
+#ifdef EOS_DEBUG
+ printf("I2S HP CHANGE: PCM1770 INIT ERR:%d\n", rv);
+#endif
+ return;
+ }
+ }
+}