From 92af9d1735aab816bca994f513314cdcc8b9bd66 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Thu, 9 Oct 2008 20:57:51 +0200 Subject: Add pressure_control firmware skeleton. Signed-off-by: Michael Buesch --- pressure_control/firmware/main.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pressure_control/firmware/main.c (limited to 'pressure_control/firmware/main.c') diff --git a/pressure_control/firmware/main.c b/pressure_control/firmware/main.c new file mode 100644 index 0000000..949e5cb --- /dev/null +++ b/pressure_control/firmware/main.c @@ -0,0 +1,32 @@ +/* + * Pneumatic pressure controller. + * + * Copyright (C) 2008 Michael Buesch + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include "util.h" + + +int main(void) +{ + cli(); + //TODO + sei(); + + while (1) { + //TODO + } +} -- cgit v1.2.3