mbed-os

Dependents:   cobaLCDJoyMotor_Thread odometry_omni_3roda_v3 odometry_omni_3roda_v1 odometry_omni_3roda_v2 ... more

Committer:
be_bryan
Date:
Mon Dec 11 17:54:04 2017 +0000
Revision:
0:b74591d5ab33
motor ++

Who changed what in which revision?

UserRevisionLine numberNew contents of line
be_bryan 0:b74591d5ab33 1 /*
be_bryan 0:b74591d5ab33 2 * Copyright (c) 2016 ARM Limited, All Rights Reserved
be_bryan 0:b74591d5ab33 3 */
be_bryan 0:b74591d5ab33 4
be_bryan 0:b74591d5ab33 5 #ifndef NS_HAL_INIT_H_
be_bryan 0:b74591d5ab33 6 #define NS_HAL_INIT_H_
be_bryan 0:b74591d5ab33 7
be_bryan 0:b74591d5ab33 8 #include <stddef.h>
be_bryan 0:b74591d5ab33 9 #include "nsdynmemLIB.h"
be_bryan 0:b74591d5ab33 10
be_bryan 0:b74591d5ab33 11 #ifdef __cplusplus
be_bryan 0:b74591d5ab33 12 extern "C" {
be_bryan 0:b74591d5ab33 13 #endif
be_bryan 0:b74591d5ab33 14
be_bryan 0:b74591d5ab33 15 /**
be_bryan 0:b74591d5ab33 16 * Initialise core Nanostack HAL components.
be_bryan 0:b74591d5ab33 17 *
be_bryan 0:b74591d5ab33 18 * Calls after the first do nothing. So "major" users should make sure
be_bryan 0:b74591d5ab33 19 * they call this first with a "large" heap size, before anyone
be_bryan 0:b74591d5ab33 20 * requests a smaller one.
be_bryan 0:b74591d5ab33 21 *
be_bryan 0:b74591d5ab33 22 * Parameters are as for ns_dyn_mem_init (but note that nsdynmemlib
be_bryan 0:b74591d5ab33 23 * currently limits heap size to 16-bit, so be wary of passing large
be_bryan 0:b74591d5ab33 24 * sizes.
be_bryan 0:b74591d5ab33 25 *
be_bryan 0:b74591d5ab33 26 * If heap is NULL, h_size will be allocated from the malloc() heap,
be_bryan 0:b74591d5ab33 27 * else the passed-in pointer will be used.
be_bryan 0:b74591d5ab33 28 */
be_bryan 0:b74591d5ab33 29 void ns_hal_init(void *heap, size_t h_size, void (*passed_fptr)(heap_fail_t), mem_stat_t *info_ptr);
be_bryan 0:b74591d5ab33 30
be_bryan 0:b74591d5ab33 31 #ifdef __cplusplus
be_bryan 0:b74591d5ab33 32 }
be_bryan 0:b74591d5ab33 33 #endif
be_bryan 0:b74591d5ab33 34
be_bryan 0:b74591d5ab33 35 #endif /* NS_HAL_INIT_H_ */