Select one of the symbols to view example projects that use it.
 
Outline
Includes
#include "main.h"
Menu_Init()
DS_MenuProcess()
Files
loading...
CodeScopeSTM32 Libraries and SamplesDynamicSwitch_StandaloneSrc/menu.c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file USB_Host/DynamicSwitch_Standalone/Src/menu.c * @author MCD Application Team * @brief This file implements Menu Functions ****************************************************************************** * @attention * * Copyright (c) 2017 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ /* Includes ------------------------------------------------------------------*/ #include "main.h" Includes /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private function prototypes -----------------------------------------------*/ /* Private functions ---------------------------------------------------------*/ /** * @brief Demo state machine. * @param None * @retval None *//* ... */ void Menu_Init(void) { msc_demo.state = MSC_DEMO_START; hid_demo.state = HID_DEMO_START; }{ ... } /** * @brief Manages DS Menu Process. * @param None * @retval None *//* ... */ void DS_MenuProcess(void) { switch(Appli_state) { case APPLICATION_IDLE: break; case APPLICATION_IDLE: case APPLICATION_MSC: MSC_MenuProcess(); break; case APPLICATION_MSC: case APPLICATION_HID: HID_MenuProcess(); break; case APPLICATION_HID: default: break;default }switch (Appli_state) { ... } if(Appli_state == APPLICATION_DISCONNECT) { Appli_state = APPLICATION_IDLE; LCD_ErrLog("USB device disconnected!\n"); Menu_Init(); LCD_UsrLog("Plug your device To Continue...\n"); }if (Appli_state == APPLICATION_DISCONNECT) { ... } }{ ... }