mirror of
https://github.com/elua/elua.git
synced 2025-01-25 01:02:54 +08:00
788f4e3fd1
It is now possible to configure each individual command that will be compiled in the shell: ``` shell = { commands = {'ls', 'ver', 'type' } } ``` If not specified, all the available commands will be compiled (which is backwards compatible). Also, the `advanced_shell` attribute is gone, replaced with an `advanced` key in the shell configuration. So write this: ``` shell = { advanced = true } ``` instead of this: ``` advanced_shell = true ```
32 lines
822 B
Lua
32 lines
822 B
Lua
-- STM32F4-NUCLEO build configuration
|
|
|
|
return {
|
|
cpu = 'stm32f411re',
|
|
components = {
|
|
sercon = { uart = "1", speed = 115200, buf_size = 128 },
|
|
romfs = true,
|
|
cdc = false,
|
|
shell = { advanced = 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 = 100000000 },
|
|
stm32f4_uart_pins = { con_rx_port = 0, con_rx_pin = 3, con_tx_port = 0, con_tx_pin = 2 }
|
|
},
|
|
modules = {
|
|
generic = { 'all', "-i2c", "-net", "-can" },
|
|
platform = 'all',
|
|
},
|
|
}
|
|
|