Saved work

This commit is contained in:
2024-08-20 16:44:35 +03:00
parent 657915fa01
commit e199a2c2be
30 changed files with 993 additions and 94 deletions

View File

@@ -12,6 +12,7 @@ using namespace bsp;
/**** Public function definitions ****/
bsp::DigitalOut::DigitalOut(void)
{
this->is_init_done = 0;
return;
}
@@ -22,6 +23,8 @@ bsp::DigitalOut::~DigitalOut(void)
void bsp::DigitalOut::write(int8_t level)
{
if(this->is_init_done==0) return;
if(this->is_inverted)
{
if(level==0) level = 1;