Fixed bug #1151.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14113 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
ca416ea711
commit
6ca8874513
|
@ -105,7 +105,7 @@ include $(CHIBIOS)/os/hal/boards/RP_PICO_RP2040/board.mk
|
|||
include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk
|
||||
# RTOS files (optional).
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMv6-M/compilers/GCC/mk/port.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMv6-M-RP2/compilers/GCC/mk/port.mk
|
||||
# Auto-build files in ./source recursively.
|
||||
include $(CHIBIOS)/tools/mk/autobuild.mk
|
||||
# Other files (optional).
|
||||
|
|
|
@ -35,11 +35,43 @@ static THD_FUNCTION(Thread1, arg) {
|
|||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Core 1 OS instance.
|
||||
*/
|
||||
os_instance_t ch1;
|
||||
|
||||
#if (CH_CFG_NO_IDLE_THREAD == FALSE) || defined(__DOXYGEN__)
|
||||
/**
|
||||
* @brief Default instance idle thread working area.
|
||||
*/
|
||||
THD_WORKING_AREA(ch_c1_idle_thread_wa, PORT_IDLE_THREAD_STACK_SIZE);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Core 1 OS instance configuration.
|
||||
*/
|
||||
static const os_instance_config_t core1_cfg = {
|
||||
.name = "c1",
|
||||
#if CH_DBG_ENABLE_STACK_CHECK == TRUE
|
||||
.mainthread_base = &__c1_main_thread_stack_base__,
|
||||
.mainthread_end = &__c1_main_thread_stack_end__,
|
||||
#elif CH_CFG_USE_DYNAMIC == TRUE
|
||||
.mainthread_base = NULL,
|
||||
.mainthread_end = NULL,
|
||||
#endif
|
||||
#if CH_CFG_NO_IDLE_THREAD == FALSE
|
||||
.idlethread_base = THD_WORKING_AREA_BASE(ch_c1_idle_thread_wa),
|
||||
.idlethread_end = THD_WORKING_AREA_END(ch_c1_idle_thread_wa)
|
||||
#endif
|
||||
};
|
||||
|
||||
/**
|
||||
* Core 1 entry point.
|
||||
*/
|
||||
void c1_main(void) {
|
||||
|
||||
(void)core1_cfg;
|
||||
|
||||
while (true) {
|
||||
|
||||
}
|
||||
|
|
|
@ -61,7 +61,7 @@ static bool sdu_start_receive(SerialUSBDriver *sdup) {
|
|||
}
|
||||
|
||||
/* Checking if there is already a transaction ongoing on the endpoint.*/
|
||||
if (usbGetReceiveStatusI(sdup->config->usbp, sdup->config->bulk_in)) {
|
||||
if (usbGetReceiveStatusI(sdup->config->usbp, sdup->config->bulk_out)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -129,6 +129,8 @@
|
|||
MEMS Accelerometers.
|
||||
- NEW: Safer messages mechanism for sandboxes (to be backported to 20.3.1).
|
||||
- NEW: Added latency measurement test application.
|
||||
- FIX: Fixed wrong behavior in Serial-USB driver (bug #1151)
|
||||
(backported to 20.3.4)(backported to 19.1.5).
|
||||
- FIX: Fixed L0x2 series DAC not allocated in registry (bug #1150)
|
||||
(backported to 20.3.4)(backported to 19.1.5).
|
||||
- FIX: Fixed inconsistent naming of SAI DMAMUX defines for STM32H7 (bug #1149)
|
||||
|
|
Loading…
Reference in New Issue