Added a VBUS option to the makefile that is supported by the latest version of ChibiOS

This commit is contained in:
Benjamin Vedder 2014-02-24 08:41:25 +01:00
parent c54438f146
commit 60c3be2b93
3 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,7 @@
# Compiler options here.
ifeq ($(USE_OPT),)
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -std=gnu99
USE_OPT += -DSTM32F40_41xxx
USE_OPT += -DSTM32F40_41xxx -DBOARD_OTG_NOVBUSSENS
endif
# C specific options here (added to USE_OPT).

Binary file not shown.

3
main.c
View File

@ -55,6 +55,9 @@
* to
* otgp->GCCFG = GCCFG_NOVBUSSENS | GCCFG_PWRDWN;
*
* This should be handled automatically with the latest version of
* ChibiOS since I have added an option to the makefile.
*
*/
// Settings