platformio.ini

Mon, 09 Nov 2020 23:05:24 +0100

author
David Douard <david.douard@sdf3.org>
date
Mon, 09 Nov 2020 23:05:24 +0100
changeset 49
c146d19101a3
parent 41
5bed3318e563
child 64
897330ee6e9d
permissions
-rw-r--r--

Refactor HPSerial to get rid of packet collision misbehavior

completely split the key sending code from the irq-based receiveing logic.
When sending keycodes, disable the RxIrq callback and handle send and recv
of bytes synchronously.

The keycode sending routine rus in a dedicated thread.

#
# Project Configuration File
#
# A detailed documentation with the EXAMPLES is located here:
# http://docs.platformio.org/en/latest/projectconf.html
#

# A sign `#` at the beginning of the line indicates a comment
# Comment lines are ignored.

# Simple and base environment
# [env:mybaseenv]
# platform = %INSTALLED_PLATFORM_NAME_HERE%
# framework =
# board =
#
# Automatic targets - enable auto-uploading
# targets = upload

# stay on mbed 5.15 for now
[env:f446re]
platform = ststm32
framework = mbed
#platform_packages =
#    framework-mbed @ ~6.51504.0
board = nucleo_f446re
build_flags = -DHAVE_PC
#build_flags = -DHAVE_PC --verbose
#lib_compat_mode = 0
#build_flags = -DHAVE_PC -DPIO_FRAMEWORK_MBED_RTOS_PRESENT
#-DDEVICE_SPI_ASYNCH=

[env:f303re]
platform = ststm32
framework = mbed
board = nucleo_f303re

[env:fp_dfu]
platform = ststm32
framework = mbed
board = hp34970_fp_f303rd
board_build.mbed.ldscript =
    $PROJECTSRC_DIR/../TARGET_HP34970_FP_F303RD/STM32F303XE.ld
build_flags =
    -DHAVE_PC
    -I$PROJECTSRC_DIR/../TARGET_HP34970_FP_F303RD
debug_tool = stlink
upload_protocol = dfu

[env:fp_stlink]
platform = ststm32
framework = mbed
board = hp34970_fp_f303rd
board_build.mbed.ldscript =
    $PROJECTSRC_DIR/../TARGET_HP34970_FP_F303RD/STM32F303XE.ld
build_flags =
    -DHAVE_PC
    -I$PROJECTSRC_DIR/../TARGET_HP34970_FP_F303RD
debug_tool = stlink
upload_protocol = stlink

mercurial