mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 10:46:02 +08:00
arch/: Make sure the up_irq_enable() is available on all architectures. I will not be able to test all of these new versions of this function so this may break things for awhile.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* arch/z16/include/z16f/irq.h
|
||||
*
|
||||
* Copyright (C) 2008, 2012, 2015 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2008, 2012, 2015, 2018 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -198,6 +198,7 @@ struct xcptcontext
|
||||
*
|
||||
* irqstate_t up_irq_save(void);
|
||||
* void up_irq_restore(irqstate_t flags);
|
||||
* void up_irq_enable(void);
|
||||
*
|
||||
* NOTE: These functions should never be called from application code and,
|
||||
* as a general rule unless you really know what you are doing, this
|
||||
@@ -209,6 +210,7 @@ struct xcptcontext
|
||||
#ifdef __ZILOG__
|
||||
# define up_irq_save() TDI()
|
||||
# define up_irq_restore(f) RI(f)
|
||||
# define up_irq_enable() EI()
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user