FreeRTOS-Kernel/portable
mayl 2faa8bc154
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>
2024-08-19 11:31:30 +05:30
..
ARMClang Normalize line endings and whitespace in source files 2022-11-29 15:38:47 -08:00
ARMv8M Update broken links in readme and comments (#1110) 2024-08-05 16:00:47 +05:30
BCC/16BitDOS Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00
CCRH/F1Kx Add CC-RH port for Renesas F1Kx devices (#1100) 2024-08-09 11:21:21 +05:30
CCS Remove hardware dependence in portmacros.h (#1112) 2024-08-19 11:31:30 +05:30
CodeWarrior Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00
Common Add Stream Batching Buffer (#916) 2024-04-17 20:24:00 +05:30
GCC Fix compilation issue of IA32_flat port (#1122) 2024-08-19 11:07:24 +05:30
IAR Remove hardware dependence in portmacros.h (#1112) 2024-08-19 11:31:30 +05:30
Keil Normalize line endings and whitespace in source files 2022-11-29 15:38:47 -08:00
MemMang fix typo gab -> gap and adjust indentation level (#1097) 2024-06-29 11:37:15 +05:30
MikroC/ARM_CM4F Update broken links in readme and comments (#1110) 2024-08-05 16:00:47 +05:30
MPLAB Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00
MSVC-MingW Add missing Extern "C" to MSVC portmacro.h 2024-05-29 14:03:51 -07:00
oWatcom/16BitDOS Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00
Paradigm/Tern_EE Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00
Renesas Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00
Rowley Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00
RVDS Update broken links in readme and comments (#1110) 2024-08-05 16:00:47 +05:30
SDCC/Cygnal Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00
Softune Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00
Tasking/ARM_CM4F Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00
template Add Noreturn attribute in template port for static analysis (#1060) 2024-05-16 21:11:05 +05:30
ThirdParty Add portMEMORY_BARRIER defination to fix over-optimization in xTaskResumeAll. (#1116) 2024-08-12 17:06:47 +05:30
WizC/PIC18 Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00
CMakeLists.txt Fix wrong source file list in CMake of GCC_ARM_CM0 port. (#1045) 2024-04-29 20:51:35 +05:30
readme.txt Normalize line endings and whitespace in source files 2022-11-29 15:38:47 -08:00

Each real time kernel port consists of three files that contain the core kernel
components and are common to every port, and one or more files that are
specific to a particular microcontroller and/or compiler.


+ The FreeRTOS/Source/Portable/MemMang directory contains the five sample
memory allocators as described on the https://www.FreeRTOS.org WEB site.

+ The other directories each contain files specific to a particular
microcontroller or compiler, where the directory name denotes the compiler
specific files the directory contains.



For example, if you are interested in the [compiler] port for the [architecture]
microcontroller, then the port specific files are contained in
FreeRTOS/Source/Portable/[compiler]/[architecture] directory.  If this is the
only port you are interested in then all the other directories can be
ignored.