mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user