mirror of
https://github.com/elua/elua.git
synced 2025-01-25 01:02:54 +08:00
baa5d9c76d
Now, to use the HSI clock, specify an internal clock frequency in the "clocks" config section, like this... clocks = { internal = 16000000, cpu = 84000000 } Don't specify an external frequency as well as the internal frequency.
32 lines
791 B
Lua
32 lines
791 B
Lua
-- STM32F4-NUCLEO build configuration
|
|
|
|
return {
|
|
cpu = 'stm32f401re',
|
|
components = {
|
|
sercon = { uart = "1", speed = 115200 },
|
|
romfs = true,
|
|
cdc = false,
|
|
advanced_shell = true,
|
|
term = { lines = 25, cols = 80 },
|
|
linenoise = { shell_lines = 10, lua_lines = 50 },
|
|
stm32f4_enc = true,
|
|
rpc = { uart = "0", speed = 115200 },
|
|
adc = { buf_size = 2 },
|
|
xmodem = true,
|
|
cints = true,
|
|
luaints = true
|
|
},
|
|
config = {
|
|
egc = { mode = "alloc" },
|
|
vtmr = { num = 4, freq = 10 },
|
|
ram = { internal_rams = 1 },
|
|
clocks = { internal = 16000000, cpu = 84000000 },
|
|
stm32f4_uart_pins = { con_rx_port = 0, con_rx_pin = 3, con_tx_port = 0, con_tx_pin = 2 }
|
|
},
|
|
modules = {
|
|
generic = { 'all', "-i2c", "-net" },
|
|
platform = 'all',
|
|
},
|
|
}
|
|
|