Threading Implemented.Memory Size Problem09_Mar2017

Fork of rtos_queue by mbed official

Committer:
NarendraSingh
Date:
Thu Mar 09 15:00:37 2017 +0000
Revision:
7:22c4d2681cc9
Threading Implemented(Memory Size Problem

Who changed what in which revision?

UserRevisionLine numberNew contents of line
NarendraSingh 7:22c4d2681cc9 1 #include "mbed.h"
NarendraSingh 7:22c4d2681cc9 2 #include "Common_Defs.h"
NarendraSingh 7:22c4d2681cc9 3
NarendraSingh 7:22c4d2681cc9 4 //Macro Definitions
NarendraSingh 7:22c4d2681cc9 5 #define SET_BEACON_UUID_CMD0 0x01
NarendraSingh 7:22c4d2681cc9 6 #define SET_BEACON_UUID_CMD1 0x01
NarendraSingh 7:22c4d2681cc9 7 #define SET_SET_MAJOR_CMD0 0x01
NarendraSingh 7:22c4d2681cc9 8 #define SET_SET_MAJOR_CMD1 0x02
NarendraSingh 7:22c4d2681cc9 9 #define SET_SET_MINOR_CMD0 0x01
NarendraSingh 7:22c4d2681cc9 10 #define SET_SET_MINOR_CMD1 0x03
NarendraSingh 7:22c4d2681cc9 11 #define SET_SET_MEASURED_POWER_CMD0 0x01
NarendraSingh 7:22c4d2681cc9 12 #define SET_SET_MEASURED_POWER_CMD1 0x04
NarendraSingh 7:22c4d2681cc9 13 #define SET_TRANSMISSION_POWER_CMD0 0x01
NarendraSingh 7:22c4d2681cc9 14 #define SET_TRANSMISSION_POWER_CMD1 0x05
NarendraSingh 7:22c4d2681cc9 15 #define SET_PAIRING_PASSWORD_CMD0 0x01
NarendraSingh 7:22c4d2681cc9 16 #define SET_PAIRING_PASSWORD_CMD1 0x06
NarendraSingh 7:22c4d2681cc9 17 #define SET_BROADCAST_INTERVAL_CMD0 0x01
NarendraSingh 7:22c4d2681cc9 18 #define SET_BROADCAST_INTERVAL_CMD1 0x07
NarendraSingh 7:22c4d2681cc9 19 #define SET_IBEACON_NAME_CMD0 0x01
NarendraSingh 7:22c4d2681cc9 20 #define SET_IBEACON_NAME_CMD1 0x08
NarendraSingh 7:22c4d2681cc9 21 #define SET_START_BEACON_CMD0 0x01 //Open Beacon
NarendraSingh 7:22c4d2681cc9 22 #define SET_START_BEACON_CMD1 0x09
NarendraSingh 7:22c4d2681cc9 23 #define SET_STOP_BEACON_CMD0 0x01 //Close Beacon
NarendraSingh 7:22c4d2681cc9 24 #define SET_STOP_BEACON_CMD1 0x0A
NarendraSingh 7:22c4d2681cc9 25 #define SET_SOFT_REBOOT_CMD0 0x01
NarendraSingh 7:22c4d2681cc9 26 #define SET_SOFT_REBOOT_CMD1 0x0B
NarendraSingh 7:22c4d2681cc9 27
NarendraSingh 7:22c4d2681cc9 28 extern unsigned char SOFT_REBOOT1[15];
NarendraSingh 7:22c4d2681cc9 29 extern unsigned char SET_VIRTUAL_PACKET_UUID[23];
NarendraSingh 7:22c4d2681cc9 30 extern unsigned char SET_VIRTUAL_PACKET_UUID2[23];
NarendraSingh 7:22c4d2681cc9 31
NarendraSingh 7:22c4d2681cc9 32 extern unsigned char SET_UUID[21];
NarendraSingh 7:22c4d2681cc9 33 extern unsigned char SET_MAJOR[7];
NarendraSingh 7:22c4d2681cc9 34 extern unsigned char SET_MINOR[7];
NarendraSingh 7:22c4d2681cc9 35 extern unsigned char SET_MEASURED_POWER[6];
NarendraSingh 7:22c4d2681cc9 36 extern unsigned char SET_TRANSMISSION_POWER[6];
NarendraSingh 7:22c4d2681cc9 37 extern unsigned char SET_PAIRING_PASSWORD[13];
NarendraSingh 7:22c4d2681cc9 38 extern unsigned char SET_BROADCAST_INTERVAL[6];
NarendraSingh 7:22c4d2681cc9 39 extern unsigned char SET_IBEACON_NAME[17];
NarendraSingh 7:22c4d2681cc9 40 extern unsigned char SOFT_REBOOT[13];
NarendraSingh 7:22c4d2681cc9 41 extern unsigned char SET_OPEN_BEACON[7];
NarendraSingh 7:22c4d2681cc9 42 extern unsigned char SET_CLOSE_BEACON[8];
NarendraSingh 7:22c4d2681cc9 43 extern uint8 BLE_Adv_Module_Beacon_ID[6];
NarendraSingh 7:22c4d2681cc9 44
NarendraSingh 7:22c4d2681cc9 45 extern uint8 Beacon_RxBuffer_Crnt_Pos,Beacon_RxBuffer_End_Pos; // must be volatile or the compiler may over-optimise.
NarendraSingh 7:22c4d2681cc9 46 extern uint8 Beacon_RX_Buffer[50];
NarendraSingh 7:22c4d2681cc9 47
NarendraSingh 7:22c4d2681cc9 48 extern void Process_Beacon_Command_Received(unsigned char* Command_Received);
NarendraSingh 7:22c4d2681cc9 49 extern void Change_Beacon_Parameter(unsigned char* Beacon_Parameter_To_Set);
NarendraSingh 7:22c4d2681cc9 50 extern void Initialize_Beacon_Module(void);