Skip to content

Commit

Permalink
Merge pull request commaai#194 from commaai/refactor
Browse files Browse the repository at this point in the history
panda code refactor pre MISRA
  • Loading branch information
geohot committed May 24, 2019
2 parents 1114cb1 + b35f6ff commit 0c5b220
Show file tree
Hide file tree
Showing 37 changed files with 524 additions and 1,015 deletions.
4 changes: 0 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ jobs:
name: Build Pedal STM bootstub image
command: |
docker run panda_build /bin/bash -c "cd /panda/board/pedal; make obj/bootstub.bin"
- run:
name: Build NEO STM image
command: |
docker run panda_build /bin/bash -c "cd /panda/board; make clean; make -f Makefile.legacy obj/comma.bin"
- run:
name: Build ESP image
command: |
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.2.1
v1.3.0
9 changes: 0 additions & 9 deletions board/Makefile.legacy

This file was deleted.

6 changes: 0 additions & 6 deletions board/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ Programming
make
```

**NEO**

```
make -f Makefile.legacy
```

Troubleshooting
----

Expand Down
16 changes: 5 additions & 11 deletions board/bootstub.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,21 @@
#include "stm32f2xx_hal_gpio_ex.h"
#endif

// default since there's no serial
int puts(const char *a) { return 0; }
void puth(unsigned int i) {}

#include "libc.h"
#include "provision.h"

#include "drivers/drivers.h"

#include "drivers/clock.h"
#include "drivers/llgpio.h"
#include "gpio.h"

#include "drivers/spi.h"
#include "drivers/usb.h"
//#include "drivers/uart.h"

#ifdef PEDAL
#define CUSTOM_CAN_INTERRUPTS
#include "safety.h"
#include "drivers/can.h"
#endif

int puts(const char *a) { return 0; }
void puth(unsigned int i) {}

#include "crypto/rsa.h"
#include "crypto/sha.h"

Expand Down
Loading

0 comments on commit 0c5b220

Please sign in to comment.