Skip to content

Commit

Permalink
ports/all: Refactor pendsv headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
iabdalkader committed Jan 20, 2024
1 parent caa6cf3 commit f13c0bc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
7 changes: 3 additions & 4 deletions ports/mimxrt/pendsv.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MICROPY_INCLUDED_STM32_PENDSV_H
#define MICROPY_INCLUDED_STM32_PENDSV_H
#ifndef MICROPY_INCLUDED_MIMXRT_PENDSV_H
#define MICROPY_INCLUDED_MIMXRT_PENDSV_H

enum {
PENDSV_DISPATCH_SOFT_TIMER, // For later & for having at least one entry
Expand All @@ -43,7 +43,6 @@ enum {
typedef void (*pendsv_dispatch_t)(void);

void pendsv_init(void);
void pendsv_nlr_jump(void *val);
void pendsv_schedule_dispatch(size_t slot, pendsv_dispatch_t f);

#endif // MICROPY_INCLUDED_STM32_PENDSV_H
#endif // MICROPY_INCLUDED_MIMXRT_PENDSV_H
1 change: 0 additions & 1 deletion ports/nrf/pendsv.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ enum {
typedef void (*pendsv_dispatch_t)(void);

void pendsv_init(void);
void pendsv_nlr_jump(void *val);
void pendsv_schedule_dispatch(size_t slot, pendsv_dispatch_t f);

#endif // MICROPY_INCLUDED_NRF_PENDSV_H
2 changes: 0 additions & 2 deletions ports/rp2/pendsv.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ enum {

typedef void (*pendsv_dispatch_t)(void);

void pendsv_init(void);
void pendsv_suspend(void);
void pendsv_resume(void);
void pendsv_nlr_jump(void *val);
void pendsv_schedule_dispatch(size_t slot, pendsv_dispatch_t f);

#endif // MICROPY_INCLUDED_RP2_PENDSV_H
1 change: 0 additions & 1 deletion ports/stm32/pendsv.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ typedef void (*pendsv_dispatch_t)(void);

void pendsv_init(void);
void pendsv_kbd_intr(void);
void pendsv_nlr_jump(void *val);
void pendsv_schedule_dispatch(size_t slot, pendsv_dispatch_t f);

#endif // MICROPY_INCLUDED_STM32_PENDSV_H

0 comments on commit f13c0bc

Please sign in to comment.