Commit Graph

1641 Commits

Author SHA1 Message Date
Jessy Diamond Exum
daad2dc062 Moved CAN and USART code out of main.c and into more appropriate files. 2017-07-11 16:55:36 -07:00
Jessy Diamond Exum
a0616a2bc2 Large Panda CAN cleanup. Restrict GMLAN to valid baud rates.
Work towards removing/centralizing ifdefs for CAN3 and PANDA
2017-07-11 16:55:36 -07:00
Jessy Diamond Exum
4a8d4e597b Board makefile now automatically calculates header file dependencies. 2017-07-11 16:55:36 -07:00
Vasily Tarasov
62bf4e5756 Fix legacy board build 2017-07-11 16:55:36 -07:00
Vasily Tarasov
c439f43726 Style cop 2017-07-11 16:55:36 -07:00
Vasily Tarasov
41e5eec621 Untabify 2017-07-11 16:55:36 -07:00
Jessy Diamond Exum
5e1e45a4af Fixed disabling gmlan. 2017-07-11 16:55:36 -07:00
Jessy Diamond Exum
b59aeb6d87 Removed dead code, standardized canid in more commands, better erroring behavior. 2017-07-11 16:55:36 -07:00
Jessy Diamond Exum
75970861cf loopback test works with new CAN bus ids. 2017-07-11 16:55:36 -07:00
Jessy Diamond Exum
a1ed7b62ee Large reorganization of code and early integration of can bitrate setting. 2017-07-11 16:55:36 -07:00
George Hotz
311d133288 Merge pull request #17 from commaai/detect_revc
Detect revc
2017-06-28 22:08:04 -07:00
George Hotz
cffe6f3ff1 placeholder 2017-06-28 13:17:04 -07:00
Jessy Diamond Exum
431080403d Panda firmware auto detects REV C hardware. 2017-06-27 19:27:24 -07:00
Jessy Diamond Exum
7694b61617 Cleaned up stray spaces. 2017-06-20 23:54:58 -07:00
Jessy Diamond Exum
bf1b8f6191 Added define to make usb sending logic clearer. 2017-06-20 17:48:08 -07:00
Jessy Diamond Exum
cdd1b18374 Added alt interface setting to panda firmware to support can read via bulk or int EP. 2017-06-20 17:33:48 -07:00
Jessy Diamond Exum
28d2f04853 Changing poll frequency to 5 frames from 10 frames on geohot's request. 2017-06-20 17:33:48 -07:00
Jessy Diamond Exum
3cdf76221d Changed USB EP 1 from bulk to interrupt and made it NAK when do data is in thering buffer. 2017-06-20 17:33:48 -07:00
George Hotz
dd75b6170e Merge pull request #10 from diamondman/python_restructure
Created python package and implemented industry best practices.
2017-06-20 11:31:47 -07:00
Jessy Diamond Exum
c37f87818f Reformatted usb descriptor table for understandability. Removed trailing whitespace in usb.h 2017-06-19 20:46:34 -07:00
Jessy Diamond Exum
bbe0d2217f More consistent make rule for c files in 'board'. 2017-06-19 20:46:07 -07:00
Jessy Diamond Exum
6a25791fea Created python package and implemented industry best practices.
Supports python 2 and 3 (to the best of my testing ability at the time)
2017-06-14 12:00:04 -07:00
Jessy Diamond Exum
0e46ca4a5d Removed remaining inline definitions and split early.h into a header and a c file. 2017-06-14 09:26:04 -07:00
Jessy Diamond Exum
923dc197f0 Initial cleanup for inline issue. 2017-06-14 09:26:04 -07:00
Ted Slesinski
7164a730d8 Add steering safety check for cr-v 2017-06-14 09:25:00 -07:00
Jessy Diamond Exum
f39aaec298 Added dependencies to get_sdk.sh. Cleaned up code in enter_download_mode.py and made compatible with py2 and py3. 2017-06-09 16:48:15 -07:00
Firmware Batman
2fd475d365 support GMLAN multiplexing with CAN3 on rev c panda 2017-06-09 14:11:37 -07:00
George Hotz
cf865bd975 move silent mode code 2017-05-30 09:46:21 -07:00
Firmware Batman
1b81a2e600 flash esp fast like a nascar 2017-05-29 23:03:11 -07:00
Firmware Batman
6a6b69ea78 setting controls allowed disables silent mode 2017-05-29 21:33:05 -07:00
George Hotz
b7b2b97783 CAN forwarding. logically works, but it's too slow to keep up...we need to hire a firmware engineer 2017-05-26 21:38:57 -07:00
George Hotz
6c9c97a4f9 fix issue with ford instrument cluster, default can to silent mode 2017-05-26 11:20:52 -07:00
Firmware Batman
f90b6bb6e4 typo in comment 2017-05-26 11:08:52 -07:00
George Hotz
7b0ebd46da not C4, is B4 2017-05-22 10:41:38 -07:00
Firmware Batman
0205f8de22 oops, forgot a file 2017-05-18 14:18:45 -07:00
Firmware Batman
4175227663 gpio refactor continues 2017-05-17 11:22:48 -07:00
Firmware Batman
c35720fe82 okay fine big gpio refactor, untested on legacy 2017-05-17 11:12:59 -07:00
Firmware Batman
b7bcc2d200 minor refactor of led code 2017-05-17 10:32:38 -07:00
Firmware Batman
5409c51041 just revc things 2017-05-16 22:15:52 -07:00
Firmware Batman
ac162e3aa9 increase the size of the can rx fifo 2017-05-16 21:33:28 -07:00
George Hotz
d42335075c make panda leds more sensible 2017-05-16 10:33:50 -07:00
Vasily Tarasov
dfdd601dae Fix can bus speed calculation 2017-05-08 00:18:16 -07:00
Firmware Batman
be7d2ee397 add usb failure mode to st bootstub 2017-05-03 22:28:22 -07:00
Firmware Batman
57ff14bf15 fix make gitversion 2017-05-03 19:53:04 -07:00
George Hotz
a5df04e444 support get serial request in the flasher 2017-05-03 17:07:06 -07:00
George Hotz
43b64091ef add handshake to flasher 2017-05-03 16:05:05 -07:00
George Hotz
e38cbaae20 spi handshaking take 1 2017-05-03 15:54:47 -07:00
Firmware Batman
4a889828a0 support flash w/o dfu mode entry 2017-05-02 10:07:27 -07:00
George Hotz
6cd08d6022 controls not allowed by default 2017-05-01 23:40:49 -07:00
George Hotz
8f859ceec6 fix warnings in board build 2017-05-01 22:59:10 -07:00