finish homework2

Dependencies:   TextLCD

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers signal_wrapper.h Source File

signal_wrapper.h

00001 #ifndef _SIG_H_
00002 #define _SIG_H_
00003 
00004 #include "mbed.h"
00005 #include <cctype>
00006 
00007 #define ACC_BIT 0
00008 #define CAR_BIT 1
00009 #define ACC_UPDATE_BIT 2
00010 #define CAR_UPDATE_BIT 3
00011 #define SIG_TERM_BIT 4
00012 
00013 #define ACC_SIGNAL (1 << ACC_BIT)
00014 #define CAR_SIGNAL (1 << CAR_BIT)
00015 #define ACC_UPDATE_MAIN_SIGNAL (1 << ACC_UPDATE_BIT)
00016 #define CAR_UPDATE_MAIN_SIGNAL (1 << CAR_UPDATE_BIT)
00017 #define SIG_TERM (1 << SIG_TERM_BIT)
00018 
00019 
00020 
00021 uint32_t send_signal( uint32_t flags );
00022 uint32_t wait_for_signal( uint32_t flags );
00023 
00024 
00025 #endif