mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 17:48:33 -04:00
Add FreeRTOS-Plus directory.
This commit is contained in:
parent
7bd5f21ad5
commit
f508a5f653
6798 changed files with 134949 additions and 19 deletions
1307
FreeRTOS/Demo/ARM7_AT91SAM7S64_IAR/USB/USBSample.c
Normal file
1307
FreeRTOS/Demo/ARM7_AT91SAM7S64_IAR/USB/USBSample.c
Normal file
File diff suppressed because it is too large
Load diff
8
FreeRTOS/Demo/ARM7_AT91SAM7S64_IAR/USB/USBSample.h
Normal file
8
FreeRTOS/Demo/ARM7_AT91SAM7S64_IAR/USB/USBSample.h
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#ifndef USB_DEMO_H
|
||||
#define USB_DEMO_H
|
||||
|
||||
void vUSBDemoTask( void *pvParameters );
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
24
FreeRTOS/Demo/ARM7_AT91SAM7S64_IAR/USB/USB_ISR.s79
Normal file
24
FreeRTOS/Demo/ARM7_AT91SAM7S64_IAR/USB/USB_ISR.s79
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
RSEG ICODE:CODE
|
||||
CODE32
|
||||
|
||||
EXTERN vUSB_ISR
|
||||
PUBLIC vUSBISREntry
|
||||
|
||||
; Wrapper for the USB interrupt service routine. This can cause a
|
||||
; context switch so requires an assembly wrapper.
|
||||
|
||||
; Defines the portSAVE_CONTEXT and portRESTORE_CONTEXT macros.
|
||||
#include "ISR_Support.h"
|
||||
|
||||
vUSBISREntry:
|
||||
|
||||
portSAVE_CONTEXT ; Save the context of the current task.
|
||||
|
||||
bl vUSB_ISR ; Call the ISR routine.
|
||||
|
||||
portRESTORE_CONTEXT ; Restore the context of the current task -
|
||||
; which may be different to the task that
|
||||
; was interrupted.
|
||||
|
||||
END
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue