Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // main application for testing the black box
- #include <stdio.h>
- #include "process.h"
- void main (void) {
- TStatusAlarm alarma;
- process_init ();
- while(1) {
- alarma = process_ReadAlarmSensor();
- if (alarma == ALARM_YES) {
- printf(" There are an ALAAAAARMMM!\");
- } else {
- printf("All is quiet\n");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement