hwdef: use a common PPPGW include

and fixed missing RTC bindings in web server
This commit is contained in:
Andrew Tridgell 2024-01-17 19:38:42 +11:00
parent 1bf1689f2f
commit 855a5d28c0
4 changed files with 24 additions and 64 deletions

View File

@ -14,22 +14,4 @@ PD14 UART8_CTS UART8
SERIAL_ORDER OTG1 UART8
undef AP_RC_CHANNEL_ENABLED
define AP_RC_CHANNEL_ENABLED 0
define HAL_PERIPH_ENABLE_SERIAL_OPTIONS
define AP_NETWORKING_BACKEND_PPP 1
define AP_PERIPH_NET_PPP_PORT_DEFAULT 1
define AP_PERIPH_NET_PPP_BAUD_DEFAULT 12500000
// add scripting for web interface
define AP_SCRIPTING_ENABLED 1
// ROMFS filesystem only
define AP_FILESYSTEM_ROMFS_ENABLED 1
// allow scripts to add parameters
define AP_PARAM_DYNAMIC_ENABLED 1
ROMFS_DIRECTORY Tools/AP_Periph/Web
include ../include/network_PPPGW.inc

View File

@ -35,31 +35,9 @@ define HAL_NO_RCIN_THREAD
define HAL_GPIO_PIN_LED HAL_GPIO_PIN_FMU_LED_AMBER
undef HAL_OS_FATFS_IO
undef SDMMC1
MAIN_STACK 0x2000
PROCESS_STACK 0x6000
define HAL_CAN_DRIVER_DEFAULT 1
# listen for reboot command from uploader.py script
# undefine to disable. Use -1 to allow on all ports, otherwise serial number index defined in SERIAL_ORDER starting at 0
define HAL_PERIPH_LISTEN_FOR_SERIAL_UART_REBOOT_CMD_PORT 0
// use main fw bootloader
define AP_BOOTLOADER_FLASHING_ENABLED 0
define AP_PERIPH_NET_PPP_PORT_DEFAULT 1
define AP_PERIPH_NET_PPP_BAUD_DEFAULT 12500000
// add scripting for web interface
define AP_SCRIPTING_ENABLED 1
// ROMFS filesystem only
define AP_FILESYSTEM_ROMFS_ENABLED 1
// allow scripts to add parameters
define AP_PARAM_DYNAMIC_ENABLED 1
ROMFS_DIRECTORY Tools/AP_Periph/Web
include ../include/network_PPPGW.inc

View File

@ -42,25 +42,4 @@ undef SDMMC1
MAIN_STACK 0x2000
PROCESS_STACK 0x6000
define HAL_CAN_DRIVER_DEFAULT 1
# listen for reboot command from uploader.py script
# undefine to disable. Use -1 to allow on all ports, otherwise serial number index defined in SERIAL_ORDER starting at 0
define HAL_PERIPH_LISTEN_FOR_SERIAL_UART_REBOOT_CMD_PORT 0
// use main fw bootloader
define AP_BOOTLOADER_FLASHING_ENABLED 0
define AP_PERIPH_NET_PPP_PORT_DEFAULT 1
define AP_PERIPH_NET_PPP_BAUD_DEFAULT 12500000
// add scripting for web interface
define AP_SCRIPTING_ENABLED 1
// ROMFS filesystem only
define AP_FILESYSTEM_ROMFS_ENABLED 1
// allow scripts to add parameters
define AP_PARAM_DYNAMIC_ENABLED 1
ROMFS_DIRECTORY Tools/AP_Periph/Web
include ../include/network_PPPGW.inc

View File

@ -0,0 +1,21 @@
undef AP_RC_CHANNEL_ENABLED
define AP_RC_CHANNEL_ENABLED 0
define HAL_PERIPH_ENABLE_RTC
define HAL_PERIPH_ENABLE_SERIAL_OPTIONS
define AP_NETWORKING_BACKEND_PPP 1
define AP_PERIPH_NET_PPP_PORT_DEFAULT 1
define AP_PERIPH_NET_PPP_BAUD_DEFAULT 12500000
// add scripting for web interface
define AP_SCRIPTING_ENABLED 1
// ROMFS filesystem only
define AP_FILESYSTEM_ROMFS_ENABLED 1
// allow scripts to add parameters
define AP_PARAM_DYNAMIC_ENABLED 1
ROMFS_DIRECTORY Tools/AP_Periph/Web