Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
M
Meh-sla Automotive
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
Karthigai Amutha Ezhilarasu
Meh-sla Automotive
Commits
f08da7f4
Commit
f08da7f4
authored
2 years ago
by
Karthigai Amutha Ezhilarasu
Browse files
Options
Downloads
Patches
Plain Diff
fixed a silly mistake in the test code
parent
2979d599
No related branches found
No related tags found
2 merge requests
!16
Bridge board bluetooth
,
!4
lab7 sensor board
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
projects/bridge_controller/l4_io/sonar/test_sonar.c
+7
-9
7 additions, 9 deletions
projects/bridge_controller/l4_io/sonar/test_sonar.c
with
7 additions
and
9 deletions
projects/bridge_controller/l4_io/sonar/test_sonar.c
+
7
−
9
View file @
f08da7f4
...
...
@@ -19,15 +19,13 @@ void setUp() {
}
void
tearDown
()
{}
// test_sonar.c:24:test_sonar__send_trigger_for_10us:FAIL: CMock has run out of memory. Please allocate more.
// void test_sonar__send_trigger_for_10us(void) {
// gpio_s test_trigger = {};
// gpio__set_ExpectAny(test_trigger);
// delay__us_Expect(10);
// gpio__reset_Expect(test_trigger);
// test_sonar__send_trigger_for_10us();
// }
void
test_sonar__send_trigger_for_10us
(
void
)
{
gpio_s
test_trigger
=
{};
gpio__set_Expect
(
test_trigger
);
delay__us_Expect
(
10
);
gpio__reset_Expect
(
test_trigger
);
sonar__send_trigger_for_10us
();
}
void
test_sonar__get_echo_and_trigger_pins
(
void
)
{
sonar__get_echo_and_trigger_pins
(
FRONT_SONAR
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment