mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-05 13:53:50 -04:00
Replace asm wrappers to interrupt handlers with functions that use the interrupt attribute.
This commit is contained in:
parent
eea2ab0385
commit
c92128869d
20 changed files with 221 additions and 282 deletions
|
@ -70,6 +70,9 @@
|
|||
#include "task.h"
|
||||
#include "queue.h"
|
||||
|
||||
/* Demo includes. */
|
||||
#include "ParTest.h"
|
||||
|
||||
/* Priorities at which the tasks are created. */
|
||||
#define configQUEUE_RECEIVE_TASK_PRIORITY ( tskIDLE_PRIORITY + 2 )
|
||||
#define configQUEUE_SEND_TASK_PRIORITY ( tskIDLE_PRIORITY + 1 )
|
||||
|
@ -93,7 +96,7 @@ static xQueueHandle xQueue = NULL;
|
|||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
void main(void)
|
||||
int main(void)
|
||||
{
|
||||
extern void HardwareSetup( void );
|
||||
|
||||
|
@ -110,8 +113,8 @@ extern void HardwareSetup( void );
|
|||
if( xQueue != NULL )
|
||||
{
|
||||
/* Start the two tasks as described at the top of this file. */
|
||||
xTaskCreate( prvQueueReceiveTask, "Rx", configMINIMAL_STACK_SIZE, NULL, configQUEUE_RECEIVE_TASK_PRIORITY, NULL );
|
||||
xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, NULL, configQUEUE_SEND_TASK_PRIORITY, NULL );
|
||||
xTaskCreate( prvQueueReceiveTask, ( signed char * ) "Rx", configMINIMAL_STACK_SIZE, NULL, configQUEUE_RECEIVE_TASK_PRIORITY, NULL );
|
||||
xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, NULL, configQUEUE_SEND_TASK_PRIORITY, NULL );
|
||||
|
||||
/* Start the tasks running. */
|
||||
vTaskStartScheduler();
|
||||
|
@ -220,8 +223,8 @@ void vApplicationIdleHook( void )
|
|||
configurations to use the same vector table. They are not used in this
|
||||
demo, but linker errors will result if they are not defined. They can
|
||||
be ignored. */
|
||||
void vT0_1_ISR_Wrapper( void ) {}
|
||||
void vT2_3_ISR_Wrapper( void ) {}
|
||||
void vEMAC_ISR_Wrapper( void ) {}
|
||||
void vTimer2_ISR_Wrapper( void ) {}
|
||||
void vT0_1_ISR_Handler( void ) {}
|
||||
void vT2_3_ISR_Handler( void ) {}
|
||||
void vEMAC_ISR_Handler( void ) {}
|
||||
void vTimer2_ISR_Handler( void ) {}
|
||||
volatile unsigned long ulHighFrequencyTickCount = 0;
|
Loading…
Add table
Add a link
Reference in a new issue