]> begriffs open source - freertos/commit
Remove hardware dependence in portmacros.h (#1112)
authormayl <192939+mayl@users.noreply.github.com>
Mon, 19 Aug 2024 06:01:30 +0000 (02:01 -0400)
committerGitHub <noreply@github.com>
Mon, 19 Aug 2024 06:01:30 +0000 (11:31 +0530)
commit2faa8bc1541355b20f25ef4d47d1c1e48c81810a
treefee2c3817b076c3e2cbdc0097259e48f7f22e5bf
parent49e88310bec6f54f7cfe9db94edf3fb97e7d4ccc
Remove hardware dependence in portmacros.h (#1112)

* 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`.

* Code review suggestions

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
---------

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com>
portable/CCS/MSP430X/port.c
portable/CCS/MSP430X/portmacro.h
portable/IAR/MSP430X/port.c
portable/IAR/MSP430X/portmacro.h