diff Discovery/Inc/tComm.h @ 970:3123aa8723fd Evo_2_23

Old / new BT module communication: The old / new BT module do have a sligthly different command set. To keep them compatible a function has been added which returns, based on the HW identification, the command string which matches to the module. In case a command is not supported the value 0 is returned and the calling function may react. E.g. with skipping of configuration steps like it is done now for the new module.
author Ideenmodellierer
date Sun, 19 Jan 2025 20:55:30 +0100 (2 months ago)
parents fe955104901c
children
line wrap: on
line diff
--- a/Discovery/Inc/tComm.h	Sun Jan 19 12:02:59 2025 +0100
+++ b/Discovery/Inc/tComm.h	Sun Jan 19 20:55:30 2025 +0100
@@ -43,7 +43,6 @@
 		BM_CONFIG_SILENCE,
 		BM_CONFIG_DONE,
 		BM_CONFIG_RETRY,
-#ifdef BOOTLOADER_STANDALONE
 		BM_INIT_TRIGGER_ON = 100,
 		BM_INIT_TRIGGER_OFF,
 		BM_INIT_ECHO,
@@ -58,9 +57,20 @@
 		BM_INIT_STORE,
 		BM_INIT_RESTART,
 		BM_INIT_DONE
-#endif
 } BlueModTmpConfig_t;
 
+
+typedef enum
+{
+	BT_CMD_ECHO,
+	BT_CMD_ESCAPE_DELAY,
+	BT_CMD_SIGNAL_POLL,
+	BT_CMD_BAUDRATE_115,
+	BT_CMD_BAUDRATE_460,
+	BT_CMD_SILENCE,
+	BT_CMD_NAME,
+	BT_CMD_EXIT_CMD
+} BTCmd;
 /* Exported functions --------------------------------------------------------*/
 
 void tComm_init(void);