move safe_irq_disable and irq_restore to isr.h
This commit is contained in:
parent
e0da07ae95
commit
1460eac9cd
2 changed files with 2 additions and 3 deletions
|
@ -98,9 +98,6 @@ enum posts {
|
|||
};
|
||||
static volatile uint8_t last_post = NO_POST;
|
||||
|
||||
#define safe_irq_disable(x) volatile uint32_t saved_irq; saved_irq = *INTENABLE; disable_irq(x)
|
||||
#define irq_restore() *INTENABLE = saved_irq
|
||||
|
||||
volatile uint8_t fcs_mode = USE_FCS;
|
||||
|
||||
/* call periodically to */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue