aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2026-04-12 18:32:41 +0530
committerAkshay Nair <phenax5@gmail.com>2026-04-12 18:32:41 +0530
commit9ed512b6863311ff53f07b76f6b679fa1ec6a9c9 (patch)
treedd5f27857fe106a8d1a6081d2837d4c9fcf87857 /justfile
parent2f23df99bc82ef2d06dd962599f1abb4b48fb556 (diff)
downloadtemperature-sensor-attiny84a-9ed512b6863311ff53f07b76f6b679fa1ec6a9c9.tar.gz
temperature-sensor-attiny84a-9ed512b6863311ff53f07b76f6b679fa1ec6a9c9.zip
Add thermocouple sensor SPI interface
Diffstat (limited to 'justfile')
-rw-r--r--justfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/justfile b/justfile
index 567f3c6..f16fda3 100644
--- a/justfile
+++ b/justfile
@@ -5,16 +5,16 @@ default:
echo -
AVR_LIBC := env("AVR_LIBC", "/usr/lib/avr")
-# F_CPU := "32768"
+F_CPU := "1000000"
MCU := "attiny84a"
MCU_PART := "attiny84"
-SRCS := "src/main.c src/display.c"
+SRCS := "src/main.c src/display.c src/temperature.c"
OUTDIR := "./out"
PROGRAMMER := "arduino"
UPLOAD_SPEED := "19200"
SERIAL_PORT := "/dev/ttyUSB0"
-CFLAGS := f"-g -Os -std=gnu99 -Isrc -mmcu={{MCU}} \
+CFLAGS := f"-g -Os -std=gnu99 -Isrc -mmcu={{MCU}} -DF_CPU={{F_CPU}}L \
-I{{AVR_LIBC}}/avr/include -L{{AVR_LIBC}}/avr/lib \
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall"