APP Team
/
app3
led example with 2 timers
Embed:
(wiki syntax)
Show/hide line numbers
main.h
00001 #ifndef MAIN_H 00002 #define MAIN_H 00003 00004 #include "mbed.h" 00005 #include "rtos.h" 00006 #include "lib_crc.h" 00007 #include <stdlib.h> /* atoi */ 00008 #include <string> 00009 #include <bitset> 00010 00011 #define OCTET 8 00012 #define MAX_POOL_SIZE 696 00013 #define PREAMBLE 0x55 00014 #define START 0x3C 00015 #define TYPE 0x00 00016 #define STOP 0x3E 00017 00018 #define TIME 600000 // 100 ms 00019 00020 typedef struct { 00021 string trame; 00022 char size; 00023 } message_t; 00024 00025 00026 void Writer_thread(void const *args); 00027 void Reader_thread(void const *args); 00028 void Modulator_thread(void const *args); 00029 void Demodulator_thread(void const *args); 00030 void Sender_thread(void const *args); 00031 void Receiver_thread(void const *args); 00032 00033 extern "C" void TIMER3_IRQHandler (void); 00034 extern "C" void TIMER2_IRQHandler (void); 00035 00036 00037 #endif // MAIN_H
Generated on Wed Jul 27 2022 13:56:09 by 1.7.2