gnuk/boards/common/hw_config.c

34 lines
640 B
C
Raw Normal View History

2010-08-30 02:39:10 +00:00
/* Hardware specific USB functions */
/*
* For detail, please see the documentation of
* STM32F10x USB Full Speed Device Library (USB-FS-Device_Lib)
* by STMicroelectronics' MCD Application Team
*/
2010-08-18 03:57:45 +00:00
#include "ch.h"
#include "hal.h"
2010-09-09 00:51:09 +00:00
#include "board.h"
2010-08-18 03:57:45 +00:00
#include "usb_lib.h"
#include "usb_prop.h"
#include "usb_desc.h"
#include "hw_config.h"
#include "platform_config.h"
#include "usb_pwr.h"
void
Enter_LowPowerMode (void)
{
bDeviceState = SUSPENDED;
}
void
Leave_LowPowerMode (void)
{
DEVICE_INFO *pInfo = &Device_Info;
if (pInfo->Current_Configuration != 0)
bDeviceState = CONFIGURED;
else
bDeviceState = ATTACHED;
}