Skip to content

Commit a7459cc

Browse files
committed
clean up
1 parent 02cb224 commit a7459cc

File tree

14 files changed

+7
-690
lines changed

14 files changed

+7
-690
lines changed

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
.pio
2-
.vscode/.browse.c_cpp.db*
3-
.vscode/c_cpp_properties.json
4-
.vscode/launch.json
5-
.vscode/ipch
2+
.vscode

.vscode/extensions.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

example/basic/.vscode/extensions.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/TJA1020.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@
88

99
#include "TJA1020.hpp"
1010

11-
#ifdef UNIT_TEST
12-
#include "mock_HardwareSerial.h"
13-
using HardwareSerial = mock_HardwareSerial;
14-
#include "mock_delay.h"
15-
#else
16-
#include <Arduino.h>
17-
#endif
11+
#include <Arduino.h>
1812

1913
/// @brief Provides HAL for UART via TJA1020 Chip
2014
/// @param _uart_nr uart for LIN

src/TJA1020.hpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@
88

99
#pragma once
1010

11-
#ifdef UNIT_TEST
12-
#include "mock_Arduino.h"
13-
#include "mock_HardwareSerial.h"
14-
using HardwareSerial = mock_HardwareSerial;
15-
#else
16-
#include <Arduino.h>
17-
#endif
11+
#include <Arduino.h>
1812

1913
class Lin_TJA1020 : public HardwareSerial
2014
{
@@ -51,4 +45,8 @@ class Lin_TJA1020 : public HardwareSerial
5145
int8_t rxPin;
5246
int8_t txPin;
5347
int8_t nslpPin;
48+
49+
void gotoSleepMode();
50+
void gotoLowSlope();
51+
void gotoNormalSlope();
5452
};

test/mock_Arduino.cpp

Lines changed: 0 additions & 32 deletions
This file was deleted.

test/mock_Arduino.h

Lines changed: 0 additions & 28 deletions
This file was deleted.

test/mock_DebugStream.hpp

Lines changed: 0 additions & 24 deletions
This file was deleted.

test/mock_HardwareSerial.h

Lines changed: 0 additions & 148 deletions
This file was deleted.

0 commit comments

Comments
 (0)