• AVR Freaks

Hot!uC/OS

Author
rrodrigofranco
New Member
  • Total Posts : 17
  • Reward points : 0
  • Joined: 2021/01/28 16:44:34
  • Location: 0
  • Status: offline
2021/02/25 07:02:47 (permalink)
0

uC/OS

Hello there,
I implemented a code using the uC/OS III, where there are tasks and a interruption, but I had a problem with the interruption. The interrupt I created is a button. The interrupt works pefectly, but when the interruption comes to an end, the tasks return to where they left off and I would like them to return from the beginning, is there any function of uC/OS III that does this?
#1

5 Replies Related Threads

    RISC
    Super Member
    • Total Posts : 6056
    • Reward points : 0
    • Status: offline
    Re: uC/OS 2021/02/25 09:07:11 (permalink)
    0
    Hi,
    Are you using a PIC / AVR / SAM device ?
    If so which exact device do you use ?
    Regards

    For support make sure to check first here : http://microchipdeveloper.com
    There are hundreds of PIC, AVR, SAM...which one do YOU use ?
    #2
    rrodrigofranco
    New Member
    • Total Posts : 17
    • Reward points : 0
    • Joined: 2021/01/28 16:44:34
    • Location: 0
    • Status: offline
    Re: uC/OS 2021/02/25 09:13:16 (permalink)
    0
    I am using Psoc 4 - BLE. I want to just restart a task.
    #3
    RISC
    Super Member
    • Total Posts : 6056
    • Reward points : 0
    • Status: offline
    Re: uC/OS 2021/02/25 09:23:52 (permalink)
    +1 (1)
    Hi,
    This is a forum for users of Microchip devices like (PIC / AVR / SAM).
    PSoc is a Cypress device so I recommend that you look for Cypress users forum...
    Regards

    For support make sure to check first here : http://microchipdeveloper.com
    There are hundreds of PIC, AVR, SAM...which one do YOU use ?
    #4
    crosland
    Super Member
    • Total Posts : 2202
    • Reward points : 0
    • Joined: 2005/05/10 10:55:05
    • Location: Warks, UK
    • Status: offline
    Re: uC/OS 2021/02/25 10:00:51 (permalink)
    0
    Just make the task look for a flag that is set in the interrupt. When it sees it, go back to the beginning.
    #5
    1and0
    Access is Denied
    • Total Posts : 12265
    • Reward points : 0
    • Joined: 2007/05/06 12:03:20
    • Location: Harry's Gray Matter
    • Status: offline
    Re: uC/OS 2021/02/25 10:16:29 (permalink)
    -1 (1)
    Or, if able, change the return address to the beginning in the interrupt.
     
    #6
    Jump to:
    © 2021 APG vNext Commercial Version 4.5