Skip to content

Commit 28cabb3

Browse files
committed
wip
1 parent 3a2cfb1 commit 28cabb3

File tree

21 files changed

+126
-389
lines changed

21 files changed

+126
-389
lines changed

Diff for: boards/com.hex.here_pro_2.0/board.c

-38
This file was deleted.

Diff for: boards/com.hex.here_pro_2.0/board.h

-50
This file was deleted.

Diff for: boards/com.hex.here_pro_2.0/board.mk

-4
This file was deleted.

Diff for: boards/com.hex.here_pro_2.0/mcuconf.h

-190
This file was deleted.

Diff for: bootloader/Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ can \
2121
can_autobaud \
2222
uavcan \
2323
uavcan_nodestatus_publisher \
24-
uavcan_allocatee \
25-
usb_slcan
24+
uavcan_allocatee
2625

2726
MESSAGES_ENABLED = \
2827
uavcan.protocol.GetNodeInfo \

Diff for: bootloader/include/framework_conf.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#define UAVCAN_BEGINFIRMWAREUPDATE_SERVER_WORKER_THREAD lpwork_thread
1414
#define UAVCAN_ALLOCATEE_WORKER_THREAD lpwork_thread
1515
#define BOOTLOADER_APP_THREAD lpwork_thread
16+
#define LOGGER_WORKER_THREAD lpwork_thread
1617
#define USB_SLCAN_WORKER_THREAD can_thread
1718

1819
#define CAN_TRX_WORKER_THREAD can_thread
@@ -29,9 +30,9 @@
2930
// Configure debug checks
3031
//
3132

32-
#define CH_DBG_SYSTEM_STATE_CHECK FALSE
33-
#define CH_DBG_ENABLE_CHECKS FALSE
34-
#define CH_DBG_ENABLE_ASSERTS FALSE
35-
#define CH_DBG_ENABLE_STACK_CHECK FALSE
33+
#define CH_DBG_SYSTEM_STATE_CHECK TRUE
34+
#define CH_DBG_ENABLE_CHECKS TRUE
35+
#define CH_DBG_ENABLE_ASSERTS TRUE
36+
#define CH_DBG_ENABLE_STACK_CHECK TRUE
3637

3738
#define CAN_TX_QUEUE_LEN 256

Diff for: bootloader/openocd.cfg

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
source [find interface/stlink-v2-1.cfg]
2-
source [find target/stm32f4x.cfg]
1+
source [find interface/stlink.cfg]
2+
source [find target/stm32h7x.cfg]
3+
reset_config srst_only separate connect_assert_srst
34
$_TARGETNAME configure -rtos ChibiOS
5+
$_TARGETNAME configure -event gdb-attach {
6+
halt
7+
}
8+
$_TARGETNAME configure -event gdb-attach {
9+
reset init
10+
}
411
init
12+
reset halt

Diff for: examples/basic_uavcan_functionality/Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ uavcan_beginfirmwareupdate_server \
2222
uavcan_allocatee \
2323
uavcan_restart \
2424
freemem_check \
25-
uavcan_timesync \
26-
logger
25+
uavcan_timesync
2726

2827
MESSAGES_ENABLED = \
2928
uavcan.protocol.debug.LogMessage

Diff for: examples/basic_uavcan_functionality/openocd.cfg

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
source [find interface/stlink-v2-1.cfg]
2-
source [find target/stm32f3x.cfg]
2+
source [find target/stm32h7x.cfg]
3+
reset_config srst_only separate connect_assert_srst
4+
$_TARGETNAME configure
5+
# -rtos ChibiOS
36
init
4-
reset run
5-
$_TARGETNAME configure -rtos ChibiOS
7+
#reset run

Diff for: include/chconf.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@
559559
* @note The default is @p CH_DBG_TRACE_MASK_DISABLED.
560560
*/
561561
#if !defined(CH_DBG_TRACE_MASK)
562-
#define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED
562+
#define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_USER
563563
#endif
564564

565565
/**
@@ -689,19 +689,23 @@
689689
* should be invoked from here.
690690
* @note This macro can be used to activate a power saving mode.
691691
*/
692+
#ifndef CH_CFG_IDLE_ENTER_HOOK
692693
#define CH_CFG_IDLE_ENTER_HOOK() { \
693694
/* Idle-enter code here.*/ \
694695
}
696+
#endif //CH_CFG_IDLE_ENTER_HOOK
695697

696698
/**
697699
* @brief Idle thread leave hook.
698700
* @note This hook is invoked within a critical zone, no OS functions
699701
* should be invoked from here.
700702
* @note This macro can be used to deactivate a power saving mode.
701703
*/
704+
#ifndef CH_CFG_IDLE_LEAVE_HOOK
702705
#define CH_CFG_IDLE_LEAVE_HOOK() { \
703706
/* Idle-leave code here.*/ \
704707
}
708+
#endif //CH_CFG_IDLE_LEAVE_HOOK
705709

706710
/**
707711
* @brief Idle Loop hook.

0 commit comments

Comments
 (0)