mirror of
https://github.com/elua/elua.git
synced 2025-01-08 20:56:17 +08:00
30 lines
752 B
Lua
30 lines
752 B
Lua
-- Olimex STM32-E407 board configuration
|
|
|
|
return {
|
|
cpu = 'stm32f407zg',
|
|
components = {
|
|
sercon = { uart = 2, speed = 115200 },
|
|
romfs = true,
|
|
advanced_shell = true,
|
|
term = { lines = 25, cols = 80 },
|
|
linenoise = { shell_lines = 10, lua_lines = 50 },
|
|
rpc = { uart = 2, speed = 115200 },
|
|
adc = { buf_size = 2 },
|
|
xmodem = true,
|
|
cints = true,
|
|
luaints = true
|
|
},
|
|
config = {
|
|
egc = { mode = "alloc" },
|
|
vtmr = { num = 4, freq = 10 },
|
|
ram = { internal_rams = 2 },
|
|
clocks = { external = 12000000, cpu = 168000000 },
|
|
stm32f4_uart_pins = { con_rx_port = 1, con_rx_pin = 11, con_tx_port = 1, con_tx_pin = 10 }
|
|
},
|
|
modules = {
|
|
generic = { 'all', "-i2c", "-net" },
|
|
platform = 'all',
|
|
},
|
|
}
|
|
|