You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
484 B
27 lines
484 B
#include <AP_HAL/AP_HAL.h> |
|
#if CONFIG_HAL_BOARD == HAL_BOARD_QURT |
|
#include "Semaphores.h" |
|
#include <stdio.h> |
|
|
|
extern const AP_HAL::HAL& hal; |
|
|
|
#include "Util.h" |
|
|
|
using namespace QURT; |
|
|
|
/* |
|
always report 256k of free memory. I don't know how to query |
|
available memory on QURT |
|
*/ |
|
uint32_t Util::available_memory(void) |
|
{ |
|
return 256*1024; |
|
} |
|
|
|
// create a new semaphore |
|
Semaphore *Util::new_semaphore(void) |
|
{ |
|
return new Semaphore; |
|
} |
|
|
|
#endif // CONFIG_HAL_BOARD == HAL_BOARD_QURT
|
|
|