Skip to content

Commit 052a2bd

Browse files
author
Cristian Dragomir
committed
added clrBit() along with setBit() in PF1550_Control
1 parent 1ac803e commit 052a2bd

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/PF1550/PF1550_Control.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ void PF1550_Control::setBit(Register const reg, uint8_t const bit_pos)
5656
_io.setBit(reg, bit_pos);
5757
}
5858

59+
void PF1550_Control::clrBit(Register const reg, uint8_t const bit_pos)
60+
{
61+
_io.clrBit(reg, bit_pos);
62+
}
63+
5964
void PF1550_Control::writeReg(Register const reg_addr, uint8_t const val)
6065
{
6166
if (_debug) {

src/PF1550/PF1550_Control.h

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class PF1550_Control
4949
void debug(Stream& stream);
5050

5151
void setBit (Register const reg, uint8_t const bit_pos);
52+
void clrBit(Register const reg, uint8_t const bit_pos);
5253
void writeReg(Register const reg_addr, uint8_t const val);
5354
void readReg (Register const reg_addr, uint8_t * data);
5455

0 commit comments

Comments
 (0)