Advertisement
aperles

Untitled

Nov 19th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // main application for testing the black box
  2.  
  3. #include <stdio.h>
  4. #include "process.h"
  5.  
  6. void main (void) {
  7.  
  8.     TStatusAlarm alarma;
  9.  
  10.     process_init ();
  11.    
  12.     while(1) {
  13.         alarma = process_ReadAlarmSensor();
  14.         if (alarma == ALARM_YES) {
  15.             printf(" There are an ALAAAAARMMM!\");
  16.         } else {
  17.             printf("All is quiet\n");
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement