Merge pull request #11345 from yogpan01/fix-bare-metal-pdmc

Fix bare-metal configuration to support Pelion Device Management Client
pull/11369/head
Martin Kojtal 2019-08-28 13:07:36 +02:00 committed by GitHub
commit a6372e521c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 35 additions and 3 deletions

View File

@ -15,6 +15,8 @@
* limitations under the License.
*/
#ifdef MBED_CONF_NANOSTACK_CONFIGURATION
#include "ns_types.h"
#include "fhss_api.h"
#include "fhss_config.h"
@ -179,3 +181,4 @@ fhss_timer_t fhss_functions = {
.fhss_resolution_divider = 1
};
#endif

View File

@ -15,6 +15,8 @@
* limitations under the License.
*/
#ifdef MBED_CONF_RTOS_PRESENT
#include "mbed_assert.h"
#include "cmsis.h"
#include "cmsis_os2.h"
@ -130,3 +132,5 @@ void ns_event_loop_thread_start(void)
#endif
#endif // !MBED_CONF_NANOSTACK_HAL_EVENT_LOOP_USE_MBED_EVENTS
#endif //MBED_CONF_RTOS_PRESENT

View File

@ -17,9 +17,11 @@
#include "mbed_assert.h"
#include "platform/arm_hal_interrupt.h"
#ifdef MBED_CONF_RTOS_PRESENT
#include "cmsis.h"
#include "cmsis_os2.h"
#include "mbed_rtos_storage.h"
#endif
#include "ns_trace.h"
#include "eventOS_scheduler.h"

View File

@ -15,15 +15,17 @@
* limitations under the License.
*/
#include "eventOS_scheduler.h"
#include "ns_event_loop_mutex.h"
#ifdef MBED_CONF_RTOS_PRESENT
#include "mbed_assert.h"
#include "cmsis.h"
#include "cmsis_os2.h"
#include "mbed_rtos_storage.h"
#include "ns_trace.h"
#include "eventOS_scheduler.h"
#include "ns_event_loop_mutex.h"
#define TRACE_GROUP "evlm"
@ -67,3 +69,23 @@ void ns_event_loop_mutex_init(void)
MBED_ASSERT(event_mutex_id != NULL);
}
#else
void eventOS_scheduler_mutex_wait(void)
{
}
void eventOS_scheduler_mutex_release(void)
{
}
uint8_t eventOS_scheduler_mutex_is_owner(void)
{
return 1;
}
void ns_event_loop_mutex_init(void)
{
}
#endif // MBED_CONF_RTOS_PRESENT

View File

@ -22,6 +22,7 @@
#ifndef EVENT_FLAG_H
#define EVENT_FLAG_H
#include <cstddef>
#include <stdint.h>
#include "rtos/mbed_rtos_types.h"
#include "rtos/mbed_rtos1_types.h"