2020-04-24 10:03 AM
Hi!
How to set FreeRTOS for 2 tasks and queue 2?
How to add support in main.c and Model.cpp?
Andrzej
2020-04-30 03:00 AM
Several times my program hung up. Can this cause external interrupts?
I work with FreeRTOS.
2020-04-30 05:29 AM
No. External Interrupts works well .
These should work ..
Please check attach working file and ISR Routine ..
extern osMessageQId messageQ ;
void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
{
uint8_t msg = 1;
if(GPIO_Pin == GPIO_PIN_11)
{
if(uxQueueMessagesWaitingFromISR( messageQ ) == 0)
{
// Non-ISR versions of FreeRTOS methods used to put tasks into states.
// This is an interrupt handler. Queues are much busier when used from a task.
// Cannot block on a queue from ISR. Scheduler queues tasks blocked on same queue in prio order.
//
// This method clears the interrupt every time, so we're only sending signals
// to the gui every time we press the button.
HAL_GPIO_TogglePin(LED_GPIO_Port , LED_Pin) ;
xQueueSendFromISR(messageQ, &msg, 0 );
}
}
while(HAL_GPIO_ReadPin(GPIOI, GPIO_PIN_11) != GPIO_PIN_RESET);//Blue pushbutton – PI11
}
--
Karan
2020-04-30 06:49 AM
Thanks!
2020-05-06 04:55 AM
2020-05-07 12:37 AM
Hi,
Please change
Presenter->askForNextNumber();
to
presenter->askForNextNumber();
then yet . It should work.
--
Karan
2020-05-07 02:38 AM
Hello
Thank you. OK.
Andrzej
2020-05-08 08:39 AM
Hi!
How to send the number set on the screen to UI?
How to send to View from Model?
Andrzej
2020-05-08 10:24 AM
You mean array.
2020-05-09 03:33 AM
2020-05-09 04:11 AM
Hi,
You can use FreeRTOS Queue for that as below example .
and this webinar
https://www.youtube.com/watch?v=jQO7zhX0e0Q
--
Karan