From 842c2c74c02d5ad0b409cda2fd6e64f339b45ba9 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 28 Jun 2016 11:25:50 +0100 Subject: [PATCH] cc3200: Allow to compile bootloader with threading enabled. Threading is not used in the bootloader but the config optios are still enabled so we must exclude including FreeRTOS.h. --- cc3200/mpthreadport.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cc3200/mpthreadport.h b/cc3200/mpthreadport.h index 299802a6f3..2b49232ddf 100644 --- a/cc3200/mpthreadport.h +++ b/cc3200/mpthreadport.h @@ -26,11 +26,15 @@ #ifndef __MICROPY_INCLUDED_CC3200_MPTHREADPORT_H__ #define __MICROPY_INCLUDED_CC3200_MPTHREADPORT_H__ +#ifndef BOOTLOADER #include "FreeRTOS.h" +#endif typedef struct _mp_thread_mutex_t { + #ifndef BOOTLOADER SemaphoreHandle_t handle; StaticSemaphore_t buffer; + #endif } mp_thread_mutex_t; void mp_thread_init(void);