HAL_QURT: small cleanups

thanks to Lucas for finding these
This commit is contained in:
Andrew Tridgell 2015-12-28 06:42:11 +11:00
parent e46f23f538
commit fa2a39f6c6
3 changed files with 1 additions and 10 deletions

View File

@ -13,11 +13,6 @@
#define APM_TIMER_PRIORITY 181
#define APM_UART_PRIORITY 60
#define APM_IO_PRIORITY 58
#define APM_SHELL_PRIORITY 57
#define APM_OVERTIME_PRIORITY 10
#define APM_STARTUP_PRIORITY 10
#define APM_MAIN_THREAD_STACK_SIZE 16384
/* Scheduler implementation: */
class QURT::Scheduler : public AP_HAL::Scheduler {

View File

@ -9,9 +9,7 @@
class QURT::Semaphore : public AP_HAL::Semaphore {
public:
Semaphore() {
HAP_PRINTF("%s constructor", __FUNCTION__);
pthread_mutex_init(&_lock, NULL);
HAP_PRINTF("%s constructor2", __FUNCTION__);
}
bool give();
bool take(uint32_t timeout_ms);

View File

@ -20,9 +20,7 @@
class QURT::Util : public AP_HAL::Util {
public:
Util(void) {
HAP_PRINTF("%s constructor", __FUNCTION__);
}
Util(void) {}
bool run_debug_shell(AP_HAL::BetterStream *stream) override { return false; }
uint32_t available_memory(void) override;