2 ******************************************************************************
4 * @author MCD Application Team
6 * @date 21-January-2013
7 * @brief Hardware Configuration & Setup
8 ******************************************************************************
11 * <h2><center>© 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 -------------------------------------*/
32 /* Includes ------------------------------------------------------------------*/
33 //#include "platform_config.h"
36 #include "stm32f30x.h"
40 #include "stm32f10x.h"
43 /* Exported types ------------------------------------------------------------*/
44 /* Exported constants --------------------------------------------------------*/
45 /* Exported macro ------------------------------------------------------------*/
46 /* Exported define -----------------------------------------------------------*/
47 #define MASS_MEMORY_START 0x04002000
48 #define BULK_MAX_PACKET_SIZE 0x00000040
50 /* Exported functions ------------------------------------------------------- */
51 void Set_System(void);
52 void Set_USBClock(void);
53 void Enter_LowPowerMode(void);
54 void Leave_LowPowerMode(void);
55 void USB_Interrupts_Config(void);
56 void USB_Cable_Config(FunctionalState NewState
);
57 void Get_SerialNum(void);
58 uint32_t CDC_Send_DATA(uint8_t *ptrBuffer
, uint8_t sendLength
); // HJI
59 uint32_t CDC_Receive_DATA(uint8_t* recvBuf
, uint32_t len
); // HJI
60 uint8_t usbIsConfigured(void); // HJI
61 uint8_t usbIsConnected(void); // HJI
62 /* External variables --------------------------------------------------------*/
64 extern __IO
uint32_t receiveLength
; // HJI
65 extern __IO
uint32_t packetSent
; // HJI
67 #endif /*__HW_CONFIG_H*/
68 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/