Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mestrode committed Oct 7, 2024
1 parent 02cb224 commit a7459cc
Show file tree
Hide file tree
Showing 14 changed files with 7 additions and 690 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
.pio
.vscode/.browse.c_cpp.db*
.vscode/c_cpp_properties.json
.vscode/launch.json
.vscode/ipch
.vscode
10 changes: 0 additions & 10 deletions .vscode/extensions.json

This file was deleted.

10 changes: 0 additions & 10 deletions example/basic/.vscode/extensions.json

This file was deleted.

8 changes: 1 addition & 7 deletions src/TJA1020.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@

#include "TJA1020.hpp"

#ifdef UNIT_TEST
#include "mock_HardwareSerial.h"
using HardwareSerial = mock_HardwareSerial;
#include "mock_delay.h"
#else
#include <Arduino.h>
#endif
#include <Arduino.h>

/// @brief Provides HAL for UART via TJA1020 Chip
/// @param _uart_nr uart for LIN
Expand Down
12 changes: 5 additions & 7 deletions src/TJA1020.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@

#pragma once

#ifdef UNIT_TEST
#include "mock_Arduino.h"
#include "mock_HardwareSerial.h"
using HardwareSerial = mock_HardwareSerial;
#else
#include <Arduino.h>
#endif
#include <Arduino.h>

class Lin_TJA1020 : public HardwareSerial
{
Expand Down Expand Up @@ -51,4 +45,8 @@ class Lin_TJA1020 : public HardwareSerial
int8_t rxPin;
int8_t txPin;
int8_t nslpPin;

void gotoSleepMode();
void gotoLowSlope();
void gotoNormalSlope();
};
32 changes: 0 additions & 32 deletions test/mock_Arduino.cpp

This file was deleted.

28 changes: 0 additions & 28 deletions test/mock_Arduino.h

This file was deleted.

24 changes: 0 additions & 24 deletions test/mock_DebugStream.hpp

This file was deleted.

148 changes: 0 additions & 148 deletions test/mock_HardwareSerial.h

This file was deleted.

Loading

0 comments on commit a7459cc

Please sign in to comment.