Eric Micallef
/
541_HW2
finish homework2
Embed:
(wiki syntax)
Show/hide line numbers
signal_wrapper.cpp
00001 #include "mbed.h" 00002 #include <cctype> 00003 00004 EventFlags event_flags; 00005 00006 uint32_t send_signal( uint32_t flags ) 00007 { 00008 return event_flags.set( flags ); 00009 } 00010 00011 uint32_t wait_for_signal( uint32_t flags ) 00012 { 00013 return event_flags.wait_any( flags ); 00014 }
Generated on Thu Jul 14 2022 17:18:57 by 1.7.2