Remove hardware dependence in portmacros.h

The IAR MSP430X port `#include "msp430.h"` which pulls all the hardware
register definitions into anything which `#include "FreeRTOS.h"`.  This
removes that hardware dependency "leak" by removing the header file
and re-defining the `portDISABLE_INTERRUPTS()` and
`portENABLE_INTERRUPTS()` macros in terms of `__asm`.
This commit is contained in:
Larry May 2024-08-06 17:15:28 -04:00
parent 53c7e7c46f
commit 89fe045afa
2 changed files with 6 additions and 6 deletions

View file

@ -30,6 +30,9 @@
#include "FreeRTOS.h"
#include "task.h"
/* Hardware includes. */
#include "msp430.h"
/*-----------------------------------------------------------
* Implementation of functions defined in portable.h for the MSP430X port.
*----------------------------------------------------------*/