aboutsummaryrefslogtreecommitdiff
path: root/hsm-ina226/hsm-ina226.cabal
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2025-12-17 02:26:07 +0000
committerPaul Oliver <contact@pauloliver.dev>2025-12-20 23:35:27 +0000
commit7d7fa4816a1744d860c74a45003eda6cd71ec42a (patch)
tree45142351d64b68985c0394bf16c8ea8ba29ef979 /hsm-ina226/hsm-ina226.cabal
parent459d2c5630e1296807bbf23fd4360fb4d4f5bbe7 (diff)
Adds battery monitoring service via INA226/I2CHEADmaster
Diffstat (limited to 'hsm-ina226/hsm-ina226.cabal')
-rw-r--r--hsm-ina226/hsm-ina226.cabal40
1 files changed, 40 insertions, 0 deletions
diff --git a/hsm-ina226/hsm-ina226.cabal b/hsm-ina226/hsm-ina226.cabal
new file mode 100644
index 0000000..3b25b29
--- /dev/null
+++ b/hsm-ina226/hsm-ina226.cabal
@@ -0,0 +1,40 @@
+cabal-version: 3.8
+author: Paul Oliver <contact@pauloliver.dev>
+name: hsm-ina226
+version: 0.1.0.0
+
+library
+ build-depends:
+ , base
+ , effectful-core
+ , effectful-plugin
+ , hsm-core
+ , hsm-i2c
+ , hsm-log
+
+ default-language: GHC2024
+ exposed-modules: Hsm.INA226
+ ghc-options:
+ -O2 -Wall -Werror -Wno-star-is-type -Wunused-packages
+ -fplugin=Effectful.Plugin
+
+executable test-ina226
+ build-depends:
+ , base
+ , effectful-core
+ , effectful-plugin
+ , hsm-core
+ , hsm-i2c
+ , hsm-log
+ , optparse-applicative
+
+ default-language: GHC2024
+ ghc-options:
+ -O2 -Wall -Werror -Wno-star-is-type -Wunused-packages
+ -Wno-unused-imports -fplugin=Effectful.Plugin
+
+ if !arch(x86_64)
+ ghc-options: -optl=-mno-fix-cortex-a53-835769
+
+ main-is: Test/INA226.hs
+ other-modules: Hsm.INA226