Committer:
Sergunb
Date:
Mon Sep 04 12:03:42 2017 +0000
Revision:
0:f1834a63f7c1
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Sergunb 0:f1834a63f7c1 1 /******************** (C) COPYRIGHT 2011 STMicroelectronics ********************
Sergunb 0:f1834a63f7c1 2 * File Name : hw_config.h
Sergunb 0:f1834a63f7c1 3 * Author : MCD Application Team
Sergunb 0:f1834a63f7c1 4 * Version : V3.3.0
Sergunb 0:f1834a63f7c1 5 * Date : 21-March-2011
Sergunb 0:f1834a63f7c1 6 * Description : Hardware Configuration & Setup
Sergunb 0:f1834a63f7c1 7 ********************************************************************************
Sergunb 0:f1834a63f7c1 8 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
Sergunb 0:f1834a63f7c1 9 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
Sergunb 0:f1834a63f7c1 10 * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
Sergunb 0:f1834a63f7c1 11 * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
Sergunb 0:f1834a63f7c1 12 * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
Sergunb 0:f1834a63f7c1 13 * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
Sergunb 0:f1834a63f7c1 14 *******************************************************************************/
Sergunb 0:f1834a63f7c1 15
Sergunb 0:f1834a63f7c1 16 /* Define to prevent recursive inclusion -------------------------------------*/
Sergunb 0:f1834a63f7c1 17 #ifndef __HW_CONFIG_H
Sergunb 0:f1834a63f7c1 18 #define __HW_CONFIG_H
Sergunb 0:f1834a63f7c1 19
Sergunb 0:f1834a63f7c1 20 /* Includes ------------------------------------------------------------------*/
Sergunb 0:f1834a63f7c1 21 #include "usb_type.h"
Sergunb 0:f1834a63f7c1 22
Sergunb 0:f1834a63f7c1 23 /* Exported types ------------------------------------------------------------*/
Sergunb 0:f1834a63f7c1 24 /* Exported constants --------------------------------------------------------*/
Sergunb 0:f1834a63f7c1 25 /* Exported macro ------------------------------------------------------------*/
Sergunb 0:f1834a63f7c1 26 /* Exported define -----------------------------------------------------------*/
Sergunb 0:f1834a63f7c1 27 #define MASS_MEMORY_START 0x04002000
Sergunb 0:f1834a63f7c1 28 #define BULK_MAX_PACKET_SIZE 0x00000040
Sergunb 0:f1834a63f7c1 29 #define LED_ON 0xF0
Sergunb 0:f1834a63f7c1 30 #define LED_OFF 0xFF
Sergunb 0:f1834a63f7c1 31
Sergunb 0:f1834a63f7c1 32 #define USART_RX_DATA_SIZE (64)
Sergunb 0:f1834a63f7c1 33 /* Exported functions ------------------------------------------------------- */
Sergunb 0:f1834a63f7c1 34 void Set_System(void);
Sergunb 0:f1834a63f7c1 35 void Set_USBClock(void);
Sergunb 0:f1834a63f7c1 36 void Enter_LowPowerMode(void);
Sergunb 0:f1834a63f7c1 37 void Leave_LowPowerMode(void);
Sergunb 0:f1834a63f7c1 38 void USB_Interrupts_Config(void);
Sergunb 0:f1834a63f7c1 39 void USB_Cable_Config(FunctionalState NewState);
Sergunb 0:f1834a63f7c1 40 void USART_Config_Default(void);
Sergunb 0:f1834a63f7c1 41 bool USART_Config(void);
Sergunb 0:f1834a63f7c1 42 void OnUsbDataRx(uint8_t* data_buffer, uint8_t Nb_bytes);
Sergunb 0:f1834a63f7c1 43 void Get_SerialNum(void);
Sergunb 0:f1834a63f7c1 44
Sergunb 0:f1834a63f7c1 45 /* External variables --------------------------------------------------------*/
Sergunb 0:f1834a63f7c1 46
Sergunb 0:f1834a63f7c1 47 #endif /*__HW_CONFIG_H*/
Sergunb 0:f1834a63f7c1 48 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/