Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding 9-bit support to the hardware serial UART #379

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Oct 5, 2024

  1. Update Serial.h for 9-bit support

    Added to write function declarations for functions being added to the serial.cpp to support the 9-bit functionality of the processor. 
    
    The "bool wake" allows turning on the 9-bit, also known as the wake bit.
    vashadow authored Oct 5, 2024
    Configuration menu
    Copy the full SHA
    90e4f56 View commit details
    Browse the repository at this point in the history
  2. Update Serial.cpp to support 9-bit functionality on UART

    Add two functions and the supporting 9N1 case logic to allow for turning on 9-bit support and sending commands. The second argument, bool, allows for turning on or off the 9th bit, also known as the wake bit. 
    
    Serial1.begin(19200, SERIAL_9N1);
    Serial1.write_9bit(0x81, true);
    Serial1.write_9bit(&temp[1], false, len - 1);
    vashadow authored Oct 5, 2024
    Configuration menu
    Copy the full SHA
    39c72ad View commit details
    Browse the repository at this point in the history