Set blackbox file handler to NULL after closing file
[inav.git] / src / main / vcp / hw_config.h
blob4360f49d8c443631d3f0ed1aafe60f4a7f9d62fe
1 /**
2 ******************************************************************************
3 * @file hw_config.h
4 * @author MCD Application Team
5 * @version V4.0.0
6 * @date 21-January-2013
7 * @brief Hardware Configuration & Setup
8 ******************************************************************************
9 * @attention
11 * <h2><center>&copy; COPYRIGHT 2013 STMicroelectronics</center></h2>
13 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 * You may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at:
17 * http://www.st.com/software_license_agreement_liberty_v2
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
25 ******************************************************************************
28 /* Define to prevent recursive inclusion -------------------------------------*/
29 #ifndef __HW_CONFIG_H
30 #define __HW_CONFIG_H
32 /* Includes ------------------------------------------------------------------*/
33 //#include "platform_config.h"
34 #include "usb_type.h"
36 /* Exported types ------------------------------------------------------------*/
37 /* Exported constants --------------------------------------------------------*/
38 /* Exported macro ------------------------------------------------------------*/
39 /* Exported define -----------------------------------------------------------*/
40 #define MASS_MEMORY_START 0x04002000
41 #define BULK_MAX_PACKET_SIZE 0x00000040
43 /* Exported functions ------------------------------------------------------- */
44 void Set_System(void);
45 void Set_USBClock(void);
46 void Enter_LowPowerMode(void);
47 void Leave_LowPowerMode(void);
48 void USB_Interrupts_Config(void);
49 void USB_Cable_Config(FunctionalState NewState);
50 void Get_SerialNum(void);
51 uint32_t CDC_Send_DATA(const uint8_t *ptrBuffer, uint32_t sendLength); // HJI
52 uint32_t CDC_Send_FreeBytes(void);
53 uint32_t CDC_Receive_DATA(uint8_t* recvBuf, uint32_t len); // HJI
54 uint32_t CDC_Receive_BytesAvailable(void);
56 uint8_t usbIsConfigured(void); // HJI
57 uint8_t usbIsConnected(void); // HJI
58 uint32_t CDC_BaudRate(void);
60 /* External variables --------------------------------------------------------*/
61 extern __IO uint32_t packetSent; // HJI
63 #endif /*__HW_CONFIG_H*/
64 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/