Files
Andrzej Kaczmarek f1dba08467 porting: Add FreeRTOS port (based on nRF5 SDK)
This patch adds port of Nimble stack to FreeRTOS based on nRF5 SDK.
It's split into 'common' part which can be used a base for porting to
any other platform and 'freertos_nrf5_sdk' which has FreeRTOS-specific
files and makefile.

Building and flashing is similar to other demo apps from nRF5 SDK:
$ make -C porting/freertos_nrf5_sdk

The resulting image can be flashed on nRF52 DK:
$ make -C porting/freertos_nrf5_sdk flash

Location of nRF5 SDK is set by NRF5_SDK_ROOT variable. By default it is
set to 'nrf5_sdk' subdirectory so a symlink would work just fine:
$ ln -s <x>/nRF5_SDK_12.3.0_d7731ad porting/freertos_nrf5_sdk/nrf5_sdk
2017-12-20 17:46:30 +01:00

27 lines
506 B
C
Executable File

#ifndef _OS_ARCH_H
#define _OS_ARCH_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef int os_sr_t;
typedef int os_stack_t;
#define OS_ALIGNMENT (4)
#define OS_TICKS_PER_SEC (1000)
extern void vPortEnterCritical(void);
extern void vPortExitCritical(void);
#define OS_ENTER_CRITICAL(unused) do { (void)unused; vPortEnterCritical(); } while (0)
#define OS_EXIT_CRITICAL(unused) do { (void)unused; vPortExitCritical(); } while (0)
#ifdef __cplusplus
}
#endif
#endif /* _OS_ARCH_H */