-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
21 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
#pragma once | ||
#include "hw_gpio.h" | ||
|
||
#ifdef TARGET_EMBEDDED | ||
#include "hw_gpio.h" | ||
|
||
typedef struct | ||
{ | ||
const Gpio *src; | ||
} Fans; | ||
#else | ||
#include "app_utils.h" | ||
EMPTY_STRUCT(Fans); | ||
#endif | ||
|
||
void io_fan_set(const Fans *fans, bool on); | ||
|
||
// extern const Fans acc_fan; | ||
extern const Fans rad_fan; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#include "io_leds.h" | ||
#include "hw_gpios.h" | ||
|
||
const BinaryLed brake_light = { .gpio = &brake_light_en_pin }; | ||
const BinaryLed led = { .gpio = &led_pin }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#pragma once | ||
#include "io_led.h" | ||
#include "hw_gpios.h" | ||
|
||
extern const BinaryLed brake_light; | ||
extern const BinaryLed led; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters