[stock] 48bytes flash saved, 32bytes RAM saved

This commit is contained in:
bsongis
2013-03-13 10:26:56 +00:00
parent caaf6db7ad
commit 36e6751f73
11 changed files with 61 additions and 75 deletions
+2 -8
View File
@@ -128,14 +128,7 @@ void start_ppm_capture()
{
}
void usbBootloader()
{
}
void usbMassStorage()
{
}
#if !defined(SIMU)
extern "C" {
USB_OTG_CORE_HANDLE USB_OTG_dev;
@@ -149,6 +142,7 @@ void usbInit()
{
USBD_Init(&USB_OTG_dev, USB_OTG_FS_CORE_ID, &USR_desc, &USBD_MSC_cb, &USR_cb);
}
#endif
void watchdogInit()
{
+2 -2
View File
@@ -50,10 +50,10 @@ uint32_t pwrCheck()
return e_power_on;
#if !defined(REV3)
else if (GPIO_ReadInputDataBit(GPIOTRNDET, PIN_TRNDET) == Bit_RESET)
return e_power_trainer;
return e_power_trainer;
#endif
else if (usbPlugged())
return e_power_usb;
return e_power_usb;
else
return e_power_off;
#endif