Formula Student Electronics & Software
The code for the embedded software
|
#include "unity.h"
#include "embedded/digitalSettings.hpp"
#include "metro.h"
#include "embedded/digitalSender.hpp"
Go to the source code of this file.
Macros | |
#define | SDC_LOGIC_CLOSE_SDC_PIN 2 |
#define | MASTER_SDC_OUT_PIN 3 |
#define | EBS_VALVE_1_PIN 4 |
#define | EBS_VALVE_2_PIN 5 |
#define | SDC_LOGIC_WATCHDOG_OUT_PIN 6 |
#define | UNALLOWED_PIN 0 |
Functions | |
void | setUp (void) |
void | tearDown (void) |
void | test_openSDC_then_closeSDC (void) |
Test the SDC Functions PROTOCOL: | |
void | test_enterEmergencyState_and_turn_off_LEDS (void) |
Test the enterEmergency state function PROTOCOL: | |
void | test_blinkLED (void) |
Test the blinkLED function The toggle watchdog is the same function as blink LED so we can afirm that passing this test implies that the toggleWatchdog function works PROTOCOL: | |
int | main () |
#define EBS_VALVE_1_PIN 4 |
Definition at line 13 of file test_digitalSender.cpp.
#define EBS_VALVE_2_PIN 5 |
Definition at line 14 of file test_digitalSender.cpp.
#define MASTER_SDC_OUT_PIN 3 |
Definition at line 12 of file test_digitalSender.cpp.
#define SDC_LOGIC_CLOSE_SDC_PIN 2 |
Definition at line 11 of file test_digitalSender.cpp.
#define SDC_LOGIC_WATCHDOG_OUT_PIN 6 |
Definition at line 15 of file test_digitalSender.cpp.
#define UNALLOWED_PIN 0 |
Definition at line 17 of file test_digitalSender.cpp.
int main | ( | void | ) |
void setUp | ( | void | ) |
Definition at line 22 of file test_digitalSender.cpp.
void tearDown | ( | void | ) |
Definition at line 29 of file test_digitalSender.cpp.
void test_blinkLED | ( | void | ) |
Test the blinkLED function The toggle watchdog is the same function as blink LED so we can afirm that passing this test implies that the toggleWatchdog function works PROTOCOL:
Definition at line 74 of file test_digitalSender.cpp.
void test_enterEmergencyState_and_turn_off_LEDS | ( | void | ) |
Test the enterEmergency state function PROTOCOL:
Definition at line 57 of file test_digitalSender.cpp.
void test_openSDC_then_closeSDC | ( | void | ) |
Test the SDC Functions PROTOCOL:
Definition at line 40 of file test_digitalSender.cpp.