Nut/OS  5.0.5
API Reference
hw_config.h
Go to the documentation of this file.
00001 /******************** (C) COPYRIGHT 2010 STMicroelectronics ********************
00002 * File Name          : hw_config.h
00003 * Author             : MCD Application Team
00004 * Version            : V3.1.1
00005 * Date               : 04/07/2010
00006 * Description        : Hardware Configuration & Setup
00007 ********************************************************************************
00008 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
00009 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
00010 * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
00011 * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
00012 * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
00013 * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
00014 *******************************************************************************/
00015 
00016 /* Define to prevent recursive inclusion -------------------------------------*/
00017 #ifndef __HW_CONFIG_H
00018 #define __HW_CONFIG_H
00019 
00020 /* Includes ------------------------------------------------------------------*/
00021 #include "usb_type.h"
00022 
00023 /* Exported types ------------------------------------------------------------*/
00024 /* Exported constants --------------------------------------------------------*/
00025 /* Exported macro ------------------------------------------------------------*/
00026 /* Exported define -----------------------------------------------------------*/
00027 #define MASS_MEMORY_START     0x04002000
00028 #define BULK_MAX_PACKET_SIZE  0x00000040
00029 #define LED_ON                0xF0
00030 #define LED_OFF               0xFF
00031 
00032 /* Exported functions ------------------------------------------------------- */
00033 void Set_System(void);
00034 void Set_USBClock(void);
00035 void Enter_LowPowerMode(void);
00036 void Leave_LowPowerMode(void);
00037 void USB_Interrupts_Config(void);
00038 void USB_Cable_Config (FunctionalState NewState);
00039 void USART_Config_Default(void);
00040 bool USART_Config(void);
00041 void USB_To_USART_Send_Data(uint8_t* data_buffer, uint8_t Nb_bytes);
00042 void USART_To_USB_Send_Data(void);
00043 void Get_SerialNum(void);
00044 
00045 /* External variables --------------------------------------------------------*/
00046 
00047 #endif  /*__HW_CONFIG_H*/
00048 /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/