summaryrefslogtreecommitdiffstats
path: root/pressure_control/firmware/util.c
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2019-06-11 20:25:17 +0200
committerMichael Buesch <m@bues.ch>2019-06-11 20:25:17 +0200
commit50ca54f0eb62dcb23a3436a4352a2f486682b26e (patch)
tree46c17f82a79d0520551bfb6cb7d0aa6e064dc2d6 /pressure_control/firmware/util.c
parent6f635ee3da1a1244d5225f699cb4d63b48ad7136 (diff)
downloadcnc-50ca54f0eb62dcb23a3436a4352a2f486682b26e.tar.xz
cnc-50ca54f0eb62dcb23a3436a4352a2f486682b26e.zip
pctl: Port firmware to recent avr-gcc
Signed-off-by: Michael Buesch <m@bues.ch>
Diffstat (limited to 'pressure_control/firmware/util.c')
-rw-r--r--pressure_control/firmware/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pressure_control/firmware/util.c b/pressure_control/firmware/util.c
index 3ed33f3..e5b2778 100644
--- a/pressure_control/firmware/util.c
+++ b/pressure_control/firmware/util.c
@@ -26,7 +26,7 @@
#include <avr/sleep.h>
-const prog_uint8_t bit2mask_lt[] = {
+const uint8_t __flash bit2mask_lt[] = {
0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80,
};
@@ -73,7 +73,7 @@ void udelay(uint16_t usecs)
);
}
-void panic(const prog_char *msg)
+void panic(const char __flash *msg)
{
print("Panic!");
infinite_sleep();
bues.ch cgit interface