mirror of
https://github.com/elua/elua.git
synced 2025-01-25 01:02:54 +08:00
disable usb for nucleo-f411re, higher frequency cutoff for PLL_P selection
This commit is contained in:
parent
775ffa2dfa
commit
fa282aa344
@ -8,7 +8,7 @@ addi( sf( 'src/platform/%s/FWLib/USB/STM32_USB_Device_Library/Core/inc', platfor
|
|||||||
addi( sf( 'src/platform/%s/FWLib/USB/VCP/inc', platform ) )
|
addi( sf( 'src/platform/%s/FWLib/USB/VCP/inc', platform ) )
|
||||||
|
|
||||||
local fwlib_files = utils.get_files( "src/platform/" .. platform .. "/FWLib/library/src", ".*%.c$" )
|
local fwlib_files = utils.get_files( "src/platform/" .. platform .. "/FWLib/library/src", ".*%.c$" )
|
||||||
if comp.board ~= "stm32f4-nucleo" then
|
if comp.board ~= "stm32f4-nucleo" and comp.board ~= "nucleo-f411re" then
|
||||||
fwlib_files = fwlib_files .. " " .. utils.get_files( "src/platform/" .. platform .. "/FWLib/USB/", "%.c$" )
|
fwlib_files = fwlib_files .. " " .. utils.get_files( "src/platform/" .. platform .. "/FWLib/USB/", "%.c$" )
|
||||||
end
|
end
|
||||||
specific_files = "system_stm32f4xx.c startup_stm32f4xx.s stm32f4xx_it.c platform.c platform_int.c cpu.c stm32_pio.c enc.c"
|
specific_files = "system_stm32f4xx.c startup_stm32f4xx.s stm32f4xx_it.c platform.c platform_int.c cpu.c stm32_pio.c enc.c"
|
||||||
|
@ -41,7 +41,7 @@ Restrictions:
|
|||||||
#error PLL_M out of range, unable to compute PLL parameters
|
#error PLL_M out of range, unable to compute PLL parameters
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if STM32F4_DESIRED_SYSCLK_FREQ_MHZ < 96
|
#if STM32F4_DESIRED_SYSCLK_FREQ_MHZ <= 100
|
||||||
#define PLL_P 4
|
#define PLL_P 4
|
||||||
#else
|
#else
|
||||||
#define PLL_P 2
|
#define PLL_P 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user