forked from commaai/panda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup + prep for more tests! (commaai#1172)
* panda for pc! * little more * fake panda * move some more stuff * increase timeout * move that * print helpers * cleanup * just move it for now * revert jenkins changes
- Loading branch information
1 parent
e8bd1df
commit 2750463
Showing
6 changed files
with
80 additions
and
104 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// minimal code to fake a panda for tests | ||
#include <stdio.h> | ||
#include <stdint.h> | ||
#include <stdlib.h> | ||
|
||
#include "utils.h" | ||
|
||
#define CANFD | ||
#define ALLOW_DEBUG | ||
#define PANDA | ||
|
||
void print(const char *a) { | ||
printf(a); | ||
} | ||
|
||
void puth(unsigned int i) { | ||
printf("%u", i); | ||
} | ||
|
||
typedef struct { | ||
uint32_t CNT; | ||
} TIM_TypeDef; | ||
|
||
TIM_TypeDef timer; | ||
TIM_TypeDef *MICROSECOND_TIMER = &timer; | ||
uint32_t microsecond_timer_get(void); | ||
|
||
uint32_t microsecond_timer_get(void) { | ||
return MICROSECOND_TIMER->CNT; | ||
} |
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.