arduino / arduino/ArduinoCore-sam

SAM HardwareSerial.h missing availableForWrite

Open
#73 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
91
Forks
112
PR merge metrics
No merged PRs in 30d

Description

I noticed that SAM UARTClass.h contains availableForWrite, but HardwareSerial.h does not. So could you add
virtual int availableForWrite(void) = 0; to SAM HardwareSerial.h
so I can use it as
HardwareSerial *port;
...
port=&Serial3
...
if ( port->availableForWrite()>0 ) ...

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in the SAM HardwareSerial.h interface and compare it with the availableForWrite implementation already present in SAM UARTClass.h. Confirm that the HardwareSerial interface exposes the capability needed by HardwareSerial pointers, then verify the SAM core still builds and the example call through Serial3 is supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.