Adeeb Shihadeh
6eed036473
(almost) enable cppcheck unusedFunction ( #1875 )
...
* remove some unused
* more
* kinda works
* rest are false positives
* disable for now
* add back exhaustive
2024-02-17 14:16:15 -08:00
Ruben Medina
40671436ee
enable misra-constParameterPointer ( #1826 )
2024-01-20 21:50:42 -08:00
Aryan
a902a19ead
enable misra-c2012-21.2 ( #1819 )
...
* enable misra-c2012-21.2
* Add suppressions on memset and memcpy
* revert that
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2024-01-18 14:29:01 -08:00
Adeeb Shihadeh
666a462450
remove low level LIN support ( #1744 )
2023-11-23 17:18:25 -08:00
Adeeb Shihadeh
c66b98b2a6
finish esp/gps removal ( #1559 )
2023-08-06 12:29:54 -07:00
Robbe Derks
116485443d
UART overwrite mode ( #1457 )
...
* overwrite mode
* typo
2023-06-14 13:33:47 +02:00
Willem Melching
8b513970c3
fix debug uart buffer size ( #1204 )
2023-01-09 17:27:46 -08:00
Adeeb Shihadeh
e6f62a62aa
rename puts to avoid conflict with stdio.h ( #1174 )
...
* rename puts to avoid conflict with stdio.h
* better name
2022-11-29 22:55:10 -08:00
Robbe Derks
5aa5f855e4
setup UART for SOM debugging ( #1151 )
...
* cleanup external debug serial
* wip: bring up uart7
* more wip
* this does something
* this works
* increase fifo size
* fix misra
* cleanup
* fix misra again
* add SOM debug enum
* reduce SOM buffer on F4
Co-authored-by: Comma Device <device@comma.ai >
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2022-11-17 17:59:11 +01:00
Robbe Derks
9db0ae7056
Remove external debug UART support ( #1159 )
...
cleanup external debug serial
2022-11-14 11:46:04 +01:00
Greg Hogan
7e99d5245f
expose DEBUG flag and improve debug console output ( #728 )
...
* expose debug flags and improve debug console output
* puth4
* other flags need to be set more locally
* fix misra violations
* fix misra violation
* fix misra violation
2021-09-25 21:46:19 -07:00
Igor
7157175bd4
uart.h refactor: move uart_send_break to lluart.h ( #693 )
2021-07-14 15:45:10 -07:00
Igor
eab9c9ee4c
HAL refactoring part 2 ( #682 )
...
* Move harness threshold
* Move interrupt handlers
* timers.h refactor
* rtc.h refactor
* pwm.h and fan.h refactor
* clock_source is hw specific
* refactor uart.h
* macro naming
* minor fixes
* redo rtc
2021-07-13 14:12:07 -07:00
Igor
b2d28a7123
Fix MISRA 8.2 violations ( #675 )
...
* Fix violation 8.2
* Update cppcheck
* Remove inline suppressions
* Change source to upstream
2021-06-30 17:47:41 -07:00
Igor
eccafa3712
Fix MISRA 20.x violations ( #668 )
...
* Fix 20.x
* missed one
2021-06-18 17:31:35 -07:00
Igor
1fdc3c98db
Fix MIRSA 7.X violations ( #665 )
2021-06-18 15:11:09 -07:00
Igor
ddc25b0611
Update cppcheck and misra, suppress for now ( #663 )
...
* Update cppcheck and misra, suppress for now
* Add FIXME to suppression tags
* Missed one spot
2021-06-18 14:24:15 -07:00
Adeeb Shihadeh
8b41ed3b81
Deprecate ESP ( #592 )
...
* remove unused wifi tests
* remove that one too
* no bootmode from ESP
* clean that up
* remove two more wifi tests
* remove boardesp and esptool
* esp_gps -> gps
* missed those
* remove esptool refs
* remove esp certs
* no more wifi
* that was old
* cleanup jenkins dockerfile
* fix linter
* remove more wifi refs
* clone panda jungle from github
* no copy
* always default esp to off
2020-08-26 15:37:50 -07:00
Greg Hogan
31f8a0d862
K line fix ( #559 )
...
* enable UART RX interrupts
* update debug prints for python3
* improve kline functions and fix checksum
* k-line wake-up conforming to KWP2000 fast init
* fix timing
* toggle k and l line together by default
* k-line wakeup using timer
* k and l were flipped
* fix misra compliance
2020-06-18 11:17:00 -07:00
Adeeb
20eb68b179
Add pre-commit hooks ( #551 )
...
* add more pre-commit hooks
* revert misra coverage table
* fix coverage table exclusion
2020-06-03 15:08:57 -07:00
robbederks
656f99b080
Interrupt refactor (NVIC_SM_1: #334 ) and Fault handling ( #377 ) (PR #373 )
2019-11-27 18:11:21 -08:00
robbederks
9486836886
UART instability fix with high interrupt load ( #283 )
...
* Fixed UART overrun error
* Added stability test scripts
* Refactored UART code. ESP/GPS now uses DMA in circular mode to directly write into the ring buffer, saving a bunch of interrupts and potential race conditions.
* Changed stability test to use amount of bytes instead of amount of non-zero messages, since the ring buffer pointer is only updated on half or full DMA transfer or on line idle (e.g. no more 1 char messages from the gps)
* Increase data limit. It's too low sometimes in normal operation
* Forgot to set write pointer in ring buffer
* Increased test limit even more
2019-10-04 13:28:56 -07:00
rbiasini
fac0277169
Misra update ( #280 )
...
* Updated cppcheck ref. New rules to be fixed
* changed 2 MACRO names that had more than 31 characters in common
* Fix newly popped 10.4: same type on arithmetic ops
* Fix 18.4: operators should not be applied to an expression
* ensure a NULL pointer isn't dereferenced
2019-09-27 17:18:02 -07:00
robbederks
d68508c79a
Gpio race condition fix ( #263 )
...
* Fixed pedal not initializing
* Interrupt changes
* More changes
2019-08-28 12:53:51 -07:00
Riccardo
190d604a0b
Pedal: 2 minor fixes to Misra 15.7 (else needed) and 17.7 (non-void output must be used)
2019-07-07 22:07:14 -07:00
rbiasini
3c3aba3dbc
Misra 10.4: Both operands of an operator in which the usual arithmetic conversions are performed shall have the same essential type category ( #240 )
...
* Almost done with 10.4, a couple of non-obvious violations remaining
2019-07-04 01:04:58 -07:00
rbiasini
812ace5386
Misra 15_7: if … else if constructs should be terminated with an else clause ( #230 )
...
* Fixed all Misra 15_7 violations
2019-07-03 20:48:02 -07:00
Riccardo
7cd80de23a
typo
2019-07-03 02:07:02 -07:00
Riccardo
385e33b32c
12.1 regression
2019-07-03 02:04:25 -07:00
Riccardo
955842bae6
WIP
2019-07-03 01:59:27 -07:00
rbiasini
ea908cbb75
10_1 violations: Operands shall not be of an inappropriate essential type ( #233 )
...
* 10_1 violations
2019-07-02 23:43:06 -07:00
Riccardo
ecb9b6c01f
Revert "Misra 10 1: Operands shall not be of an inappropriate essential type ( #232 )"
...
This reverts commit 8732e4faf0 .
2019-06-30 13:43:21 -07:00
rbiasini
8732e4faf0
Misra 10 1: Operands shall not be of an inappropriate essential type ( #232 )
...
Fixe Misra 10.1 violations
2019-06-30 15:07:04 -05:00
Riccardo
c27e7848f3
fix conflicts
2019-06-26 16:17:30 -07:00
rbiasini
4886b6b984
Misra 12.1: The precedence of operators within expressions should be made explicit ( #227 )
...
* Fixed all misra 12.1 violations
2019-06-26 16:16:35 -07:00
Riccardo
3fd6b337f9
ops, bug
2019-06-26 15:59:32 -07:00
Riccardo
e3c5e7da8c
Fix Misra 15_5 violations
2019-06-26 15:52:34 -07:00
rbiasini
73ae4f6acf
Misra 14.4: The controlling expression of an if statement and the controlling expression of an iteration‑statement shall have essentially Boolean type ( #225 )
...
* Fixed 14.4 Misra violations
2019-06-26 13:13:16 -07:00
Riccardo
8a45958dfe
Misra 17.7: puts function should have void output
2019-06-26 13:05:31 -07:00
Riccardo
e41b5a4c4f
Fixed Misra 13.3: A full expression containing an increment (++) or decrement (--) operator should have no other potential side effects other than that caused by the increment or decrement operator
2019-06-24 19:23:53 -07:00
rbiasini
e2d781380a
Strict compiler ( #222 )
...
have no Wall warnings from the strict compiler and enforcing it in the regression test.
2019-06-24 10:25:30 -07:00
George Hotz
96dcfb18d4
pull in uart changes from harness branch
2019-06-14 13:26:01 -07:00
George Hotz
59eaec5dd6
add volatiles to the ring buffer pointers
2019-06-14 13:22:33 -07:00
George Hotz
2c1e5f6325
the refactor continues
2019-05-23 12:39:22 -07:00
Greg Hogan
95919b932d
Bounty: panda high quality CAN autobaud ( #96 )
...
* CAN auto-baud
* Disable autobaud when exiting silent mode
2018-04-11 14:31:48 -07:00
George Hotz
fd68f86cad
smallr
2018-01-29 02:03:46 -08:00
George Hotz
be99ffca78
ok that doesn't hurt i think
2018-01-29 01:42:56 -08:00
George Hotz
a9f6bf0595
this
2018-01-29 01:32:37 -08:00
George Hotz
8b7e8495db
working now
2018-01-29 00:59:48 -08:00
George Hotz
7fa4808cf8
froze up, maybe thats the fix
2018-01-28 11:20:28 -08:00