mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-12-02 05:43:40 +08:00
check comma four id strap (#2513)
This commit is contained in:
committed by
firestar5683
parent
0fe8ff5368
commit
3f35a6928a
@@ -35,7 +35,8 @@ void detect_board_type(void) {
|
||||
if (id2 == 3U) {
|
||||
hw_type = HW_TYPE_CUATRO;
|
||||
current_board = &board_cuatro;
|
||||
} else if (id1 == 0U) {
|
||||
} else if ((get_package_smps_type() == PACKAGE_WITH_SMPS) && (id1 == 0U)) {
|
||||
// id1 also reads 0 on cuatro, the package tells them apart
|
||||
hw_type = HW_TYPE_RED_PANDA;
|
||||
current_board = &board_red;
|
||||
} else if (id1 == 1U) {
|
||||
|
||||
@@ -72,12 +72,12 @@ separate IRQs for RX and TX.
|
||||
#include "board/stm32h7/llmpu.h"
|
||||
#endif
|
||||
|
||||
#include "board/stm32h7/clock.h"
|
||||
#ifdef PANDA_BODY
|
||||
#include "board/body/stm32h7/board.h"
|
||||
#else
|
||||
#include "board/stm32h7/board.h"
|
||||
#endif
|
||||
#include "board/stm32h7/clock.h"
|
||||
|
||||
#ifdef BOOTSTUB
|
||||
#include "board/stm32h7/llflash.h"
|
||||
|
||||
Reference in New Issue
Block a user