diff options
Diffstat (limited to 'src/drivers/boards/px4cannode-v1/bootloader/src/ostubs.c')
-rw-r--r-- | src/drivers/boards/px4cannode-v1/bootloader/src/ostubs.c | 121 |
1 files changed, 0 insertions, 121 deletions
diff --git a/src/drivers/boards/px4cannode-v1/bootloader/src/ostubs.c b/src/drivers/boards/px4cannode-v1/bootloader/src/ostubs.c deleted file mode 100644 index 0ce747101..000000000 --- a/src/drivers/boards/px4cannode-v1/bootloader/src/ostubs.c +++ /dev/null @@ -1,121 +0,0 @@ - -/************************************************************************************ - * configs/olimexino-stm32/src/stm32_nss.c - * - * Copyright (C) 2015 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt <gnutt@nuttx.org> - * David Sidrane <david_s5@nscdg.com> - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * 3. Neither the name NuttX nor the names of its contributors may be - * used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS - * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED - * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - ****************************************************************************/ - -/**************************************************************************** - * Included Files - ****************************************************************************/ - -#include <nuttx/config.h> - -#include <nuttx/init.h> -#include <nuttx/arch.h> - -#include <stdbool.h> -#include <stdio.h> -#include <syslog.h> -#include <errno.h> - -#include <nuttx/board.h> - -#include "up_internal.h" - -#include "timer.h" - -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - -/**************************************************************************** - * Public Functions - ****************************************************************************/ - -FAR void *malloc(size_t size); -void exit(int status); -void sched_ufree(FAR void *address); -int __wrap_up_svcall(int irq, FAR void *context); -void os_start(void); - - -__EXPORT void os_start(void) -{ - - timer_init(); - - /* Initialize the interrupt subsystem */ - - up_irqinitialize(); - - -#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS) && \ - !defined(CONFIG_SYSTEMTICK_EXTCLK) - up_timer_initialize(); -#endif - - while (1) - { - main(0, 0); - } -} - -FAR void *malloc(size_t size) -{ - return NULL; -} - -void exit(int status) -{ - while (1); -} - -void sched_ufree(FAR void *address) -{ - -} - -int __wrap_up_svcall(int irq, FAR void *context) -{ - return 0; -} -volatile dq_queue_t g_readytorun; |