#include "sys/sys.h"
-#include "hal/gpio_tms570_def.h"
-#include "hal/gpio_tms570.h"
-#include "hal/port_def.h"
+#ifdef FREERTOS_POSIX
+#include "hal/_tms570_rpp/gpio_def.h"
+#include "hal/_tms570_rpp/port_def.h"
+#include "hal/gpio.h"
#include "hal/port_gpio.h"
#include "hal/spi_resp_transl.h"
#include "hal/spi_tms570.h"
#include "hal/spi.h"
#include "hal/port_spi.h"
+#endif /* FREERTOS_POSIX */
+
+#ifdef TARGET_TMS570_RPP
+#include "hal/_tms570_rpp/gpio_def.h"
+#include "hal/_tms570_rpp/port_def.h"
+#include "hal/gpio.h"
+#include "hal/port_gpio.h"
+#include "hal/spi_resp_transl.h"
+#include "hal/spi_tms570.h"
+#include "hal/spi.h"
+#include "hal/port_spi.h"
+#endif /* TARGET_TMS570_RPP */
#endif /* __HAL_H */