Skip to content

Commit

Permalink
Omnibus F4 SD: fix UART4
Browse files Browse the repository at this point in the history
- do not configure RSSI GPIO pin
- disable serial console on UART4
  • Loading branch information
bkueng authored and LorenzMeier committed Jul 10, 2018
1 parent 93da041 commit 3f0a398
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions platforms/nuttx/nuttx-configs/omnibus-f4sd/nsh/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ CONFIG_DEV_FIFO_SIZE=0
CONFIG_SERIAL=y
# CONFIG_DEV_LOWCONSOLE is not set
CONFIG_SERIAL_REMOVABLE=y
CONFIG_SERIAL_CONSOLE=y
# CONFIG_SERIAL_CONSOLE is not set
# CONFIG_16550_UART is not set
# CONFIG_UART_SERIALDRIVER is not set
# CONFIG_UART0_SERIALDRIVER is not set
Expand Down Expand Up @@ -960,10 +960,10 @@ CONFIG_SERIAL_NPOLLWAITERS=2
# CONFIG_SERIAL_DMA is not set
CONFIG_ARCH_HAVE_SERIAL_TERMIOS=y
# CONFIG_USART1_SERIAL_CONSOLE is not set
CONFIG_UART4_SERIAL_CONSOLE=y
# CONFIG_UART4_SERIAL_CONSOLE is not set
# CONFIG_USART6_SERIAL_CONSOLE is not set
# CONFIG_OTHER_SERIAL_CONSOLE is not set
# CONFIG_NO_SERIAL_CONSOLE is not set
CONFIG_NO_SERIAL_CONSOLE=y

#
# USART1 Configuration
Expand Down Expand Up @@ -1043,8 +1043,8 @@ CONFIG_CDCACM_RXBUFSIZE=600
CONFIG_CDCACM_TXBUFSIZE=2000
CONFIG_CDCACM_VENDORID=0x26ac
CONFIG_CDCACM_PRODUCTID=0x0001
CONFIG_CDCACM_VENDORSTR="3D Robotics"
CONFIG_CDCACM_PRODUCTSTR="OMNIBUSF4SD"
CONFIG_CDCACM_VENDORSTR="Airbot"
CONFIG_CDCACM_PRODUCTSTR="PX4 OMNIBUSF4SD"
# CONFIG_USBMSC is not set
# CONFIG_RNDIS is not set
# CONFIG_USBHOST is not set
Expand All @@ -1062,7 +1062,7 @@ CONFIG_SYSLOG_WRITE=y
# CONFIG_SYSLOG_BUFFER is not set
# CONFIG_SYSLOG_INTBUFFER is not set
# CONFIG_SYSLOG_TIMESTAMP is not set
CONFIG_SYSLOG_SERIAL_CONSOLE=y
# CONFIG_SYSLOG_SERIAL_CONSOLE is not set
# CONFIG_SYSLOG_CHAR is not set
CONFIG_SYSLOG_CONSOLE=y
# CONFIG_SYSLOG_NONE is not set
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/boards/omnibus-f4sd/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ stm32_boardinitialize(void)
/* configure ADC pins */
stm32_configgpio(GPIO_ADC1_IN12); /* BATT_VOLTAGE_SENS */
stm32_configgpio(GPIO_ADC1_IN11); /* BATT_CURRENT_SENS */
stm32_configgpio(GPIO_ADC1_IN0); /* RSSI analog in */
//stm32_configgpio(GPIO_ADC1_IN0); /* RSSI analog in (TX of UART4 instead) */

// TODO: power peripherals
///* configure power supply control/sense pins */
Expand Down

0 comments on commit 3f0a398

Please sign in to comment.