Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • src-vorago-common src-vorago-common
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • source
  • src-vorago-commonsrc-vorago-common
  • Merge requests
  • !7

Vorago UART Bugfixes and functions to disable and enable interrupts

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Robin Mueller requested to merge mueller/vorago-uart-bugfixes into develop Apr 22, 2021
  • Overview 0
  • Commits 6
  • Changes 4
  • Add functions to enable or disable interrupts. Important for critical sections when there is no RTOS present

  • Some important fixes in the Vorago UART interrupt handler and some minor tweaks

  • The interrupt handler was not able to process a simple string "Hello World!\n\r" received each 5 seconds. This was fixed by the following chages:

    1. RX status register is re-read after reading data from the FIFO because it might have changed (e.g. timeout has occured)
    2. If a timeout has occured, the remaining data in the FIFO is read
  • I tested these changes with the aforementioned string and a larger string which exceeds the FIFO size (about 40 bytes size) and I was able to receive those properly

  • Adds option to disable or enable the periodic printout from the test task, which can be set from configuration file with VOR_TEST_TASK_PERIODIC_OUTPUT

  • The issue might also be related to the use of the RS485 transceiver. I have not tested communication without the transceiver (at least thats a long time ago). But communication via RS485 is our use-case anyway

Edited Apr 27, 2021 by Robin Mueller
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: mueller/vorago-uart-bugfixes