mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Correct name of sporadic scheduler hooks
This commit is contained in:
@@ -89,7 +89,7 @@ void stm32_boardinitialize(void)
|
|||||||
* The following caqll initializes the sporadic scheduler monitor.
|
* The following caqll initializes the sporadic scheduler monitor.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
sporadic_note_initialize();
|
arch_sporadic_initialize();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: sporadic_note_*
|
* Name: arch_sporadic_*
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* This configuration has been used for evaluating the NuttX sporadic
|
* This configuration has been used for evaluating the NuttX sporadic
|
||||||
@@ -64,28 +64,28 @@
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void sporadic_note_initialize(void)
|
void arch_sporadic_initialize(void)
|
||||||
{
|
{
|
||||||
stm32_configgpio(GPIO_SCHED_HIGHPRI);
|
stm32_configgpio(GPIO_SCHED_HIGHPRI);
|
||||||
stm32_configgpio(GPIO_SCHED_RUNNING);
|
stm32_configgpio(GPIO_SCHED_RUNNING);
|
||||||
}
|
}
|
||||||
|
|
||||||
void sporadic_note_start(FAR struct tcb_s *tcb)
|
void arch_sporadic_start(FAR struct tcb_s *tcb)
|
||||||
{
|
{
|
||||||
stm32_gpiowrite(GPIO_SCHED_HIGHPRI, true);
|
stm32_gpiowrite(GPIO_SCHED_HIGHPRI, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void sporadic_note_lowpriority(FAR struct tcb_s *tcb)
|
void arch_sporadic_lowpriority(FAR struct tcb_s *tcb)
|
||||||
{
|
{
|
||||||
stm32_gpiowrite(GPIO_SCHED_HIGHPRI, false);
|
stm32_gpiowrite(GPIO_SCHED_HIGHPRI, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void sporadic_note_suspend(FAR struct tcb_s *tcb)
|
void arch_sporadic_suspend(FAR struct tcb_s *tcb)
|
||||||
{
|
{
|
||||||
stm32_gpiowrite(GPIO_SCHED_RUNNING, false);
|
stm32_gpiowrite(GPIO_SCHED_RUNNING, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void sporadic_note_resume(FAR struct tcb_s *tcb)
|
void arch_sporadic_resume(FAR struct tcb_s *tcb)
|
||||||
{
|
{
|
||||||
stm32_gpiowrite(GPIO_SCHED_RUNNING, true);
|
stm32_gpiowrite(GPIO_SCHED_RUNNING, true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -101,7 +101,7 @@
|
|||||||
void weak_function stm32_spiinitialize(void);
|
void weak_function stm32_spiinitialize(void);
|
||||||
|
|
||||||
/****************************************************************************************************
|
/****************************************************************************************************
|
||||||
* Name: sporadic_note_initialize
|
* Name: arch_sporadic_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* This configuration has been used for evaluating the NuttX sporadic scheduler.
|
* This configuration has been used for evaluating the NuttX sporadic scheduler.
|
||||||
@@ -109,7 +109,7 @@ void weak_function stm32_spiinitialize(void);
|
|||||||
****************************************************************************************************/
|
****************************************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_SPORADIC_INSTRUMENTATION
|
#ifdef CONFIG_SPORADIC_INSTRUMENTATION
|
||||||
void sporadic_note_initialize(void);
|
void arch_sporadic_initialize(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
|
|||||||
Reference in New Issue
Block a user