mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
sim_posix Removed unused files
This commit is contained in:
parent
5fdaccc1fa
commit
d26aaa6f6d
@ -1,46 +0,0 @@
|
|||||||
/**
|
|
||||||
******************************************************************************
|
|
||||||
* @addtogroup PIOS PIOS Core hardware abstraction layer
|
|
||||||
* @{
|
|
||||||
* @addtogroup PIOS_BOOTLOADER Functions
|
|
||||||
* @brief HAL code to interface to the OpenPilot AHRS module
|
|
||||||
* @{
|
|
||||||
*
|
|
||||||
* @file pios_bl_helper.c
|
|
||||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
|
||||||
* @brief Bootloader Helper Functions
|
|
||||||
* @see The GNU Public License (GPL) Version 3
|
|
||||||
*
|
|
||||||
*****************************************************************************/
|
|
||||||
/*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but
|
|
||||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
||||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
* for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef PIOS_BL_HELPER_H_
|
|
||||||
#define PIOS_BL_HELPER_H_
|
|
||||||
|
|
||||||
extern uint8_t *PIOS_BL_HELPER_FLASH_If_Read(uint32_t SectorAddress);
|
|
||||||
|
|
||||||
extern uint8_t PIOS_BL_HELPER_FLASH_Ini();
|
|
||||||
|
|
||||||
extern uint32_t PIOS_BL_HELPER_CRC_Memory_Calc();
|
|
||||||
|
|
||||||
extern void PIOS_BL_HELPER_FLASH_Read_Description(uint8_t * array, uint8_t size);
|
|
||||||
|
|
||||||
extern uint8_t PIOS_BL_HELPER_FLASH_Start();
|
|
||||||
|
|
||||||
extern void PIOS_BL_HELPER_CRC_Ini();
|
|
||||||
|
|
||||||
#endif /* PIOS_BL_HELPER_H_ */
|
|
@ -1,24 +0,0 @@
|
|||||||
#ifndef PIOS_BOARD_INFO_H
|
|
||||||
#define PIOS_BOARD_INFO_H
|
|
||||||
|
|
||||||
#include <stdint.h> /* uint* */
|
|
||||||
|
|
||||||
#define PIOS_BOARD_INFO_BLOB_MAGIC 0xBDBDBDBD
|
|
||||||
|
|
||||||
struct pios_board_info {
|
|
||||||
uint32_t magic;
|
|
||||||
uint8_t board_type;
|
|
||||||
uint8_t board_rev;
|
|
||||||
uint8_t bl_rev;
|
|
||||||
uint8_t hw_type;
|
|
||||||
uint32_t fw_base;
|
|
||||||
uint32_t fw_size;
|
|
||||||
uint32_t desc_base;
|
|
||||||
uint32_t desc_size;
|
|
||||||
uint32_t ee_base;
|
|
||||||
uint32_t ee_size;
|
|
||||||
} __attribute__((packed));
|
|
||||||
|
|
||||||
extern const struct pios_board_info pios_board_info_blob;
|
|
||||||
|
|
||||||
#endif /* PIOS_BOARD_INFO_H */
|
|
@ -1,65 +0,0 @@
|
|||||||
/**
|
|
||||||
******************************************************************************
|
|
||||||
* @addtogroup PIOS PIOS Core hardware abstraction layer
|
|
||||||
* @{
|
|
||||||
* @addtogroup PIOS_COM COM layer functions
|
|
||||||
* @brief Hardware communication layer
|
|
||||||
* @{
|
|
||||||
*
|
|
||||||
* @file pios_com.h
|
|
||||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
|
||||||
* Parts by Thorsten Klose (tk@midibox.org)
|
|
||||||
* @brief COM layer functions header
|
|
||||||
* @see The GNU Public License (GPL) Version 3
|
|
||||||
*
|
|
||||||
*****************************************************************************/
|
|
||||||
/*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but
|
|
||||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
||||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
* for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef PIOS_COM_H
|
|
||||||
#define PIOS_COM_H
|
|
||||||
|
|
||||||
typedef uint16_t (*pios_com_callback)(uint32_t context, uint8_t * buf, uint16_t buf_len, uint16_t * headroom, bool * task_woken);
|
|
||||||
|
|
||||||
struct pios_com_driver {
|
|
||||||
void (*init)(uint32_t id);
|
|
||||||
void (*set_baud)(uint32_t id, uint32_t baud);
|
|
||||||
void (*tx_start)(uint32_t id, uint16_t tx_bytes_avail);
|
|
||||||
void (*rx_start)(uint32_t id, uint16_t rx_bytes_avail);
|
|
||||||
void (*bind_rx_cb)(uint32_t id, pios_com_callback rx_in_cb, uint32_t context);
|
|
||||||
void (*bind_tx_cb)(uint32_t id, pios_com_callback tx_out_cb, uint32_t context);
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Public Functions */
|
|
||||||
extern int32_t PIOS_COM_Init(uint32_t * com_id, const struct pios_com_driver * driver, uint32_t lower_id, uint8_t * rx_buffer, uint16_t rx_buffer_len, uint8_t * tx_buffer, uint16_t tx_buffer_len);
|
|
||||||
extern int32_t PIOS_COM_ChangeBaud(uint32_t com_id, uint32_t baud);
|
|
||||||
extern int32_t PIOS_COM_SendCharNonBlocking(uint32_t com_id, char c);
|
|
||||||
extern int32_t PIOS_COM_SendChar(uint32_t com_id, char c);
|
|
||||||
extern int32_t PIOS_COM_SendBufferNonBlocking(uint32_t com_id, const uint8_t *buffer, uint16_t len);
|
|
||||||
extern int32_t PIOS_COM_SendBuffer(uint32_t com_id, const uint8_t *buffer, uint16_t len);
|
|
||||||
extern int32_t PIOS_COM_SendStringNonBlocking(uint32_t com_id, const char *str);
|
|
||||||
extern int32_t PIOS_COM_SendString(uint32_t com_id, const char *str);
|
|
||||||
extern int32_t PIOS_COM_SendFormattedStringNonBlocking(uint32_t com_id, const char *format, ...);
|
|
||||||
extern int32_t PIOS_COM_SendFormattedString(uint32_t com_id, const char *format, ...);
|
|
||||||
extern uint16_t PIOS_COM_ReceiveBuffer(uint32_t com_id, uint8_t * buf, uint16_t buf_len, uint32_t timeout_ms);
|
|
||||||
extern int32_t PIOS_COM_ReceiveBufferUsed(uint32_t com_id);
|
|
||||||
|
|
||||||
#endif /* PIOS_COM_H */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @}
|
|
||||||
* @}
|
|
||||||
*/
|
|
@ -1,44 +0,0 @@
|
|||||||
/**
|
|
||||||
******************************************************************************
|
|
||||||
* @addtogroup PIOS PIOS Core hardware abstraction layer
|
|
||||||
* @{
|
|
||||||
* @addtogroup PIOS_COM COM layer functions
|
|
||||||
* @brief Hardware communication layer
|
|
||||||
* @{
|
|
||||||
*
|
|
||||||
* @file pios_com_priv.h
|
|
||||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
|
||||||
* Parts by Thorsten Klose (tk@midibox.org)
|
|
||||||
* @brief COM private definitions.
|
|
||||||
* @see The GNU Public License (GPL) Version 3
|
|
||||||
*
|
|
||||||
*****************************************************************************/
|
|
||||||
/*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but
|
|
||||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
||||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
* for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef PIOS_COM_PRIV_H
|
|
||||||
#define PIOS_COM_PRIV_H
|
|
||||||
|
|
||||||
#include <pios.h>
|
|
||||||
|
|
||||||
extern int32_t PIOS_COM_ReceiveHandler(uint32_t com_id);
|
|
||||||
|
|
||||||
#endif /* PIOS_COM_PRIV_H */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @}
|
|
||||||
* @}
|
|
||||||
*/
|
|
@ -1,31 +0,0 @@
|
|||||||
/**
|
|
||||||
******************************************************************************
|
|
||||||
* @addtogroup PIOS PIOS Core hardware abstraction layer
|
|
||||||
* @{
|
|
||||||
* @addtogroup PIOS_CRC CRC Functions
|
|
||||||
* @{
|
|
||||||
*
|
|
||||||
* @file pios_crc.h
|
|
||||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
|
||||||
* @brief CRC functions header.
|
|
||||||
* @see The GNU Public License (GPL) Version 3
|
|
||||||
*
|
|
||||||
*****************************************************************************/
|
|
||||||
/*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but
|
|
||||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
||||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
* for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
uint8_t PIOS_CRC_updateByte(uint8_t crc, const uint8_t data);
|
|
||||||
uint8_t PIOS_CRC_updateCRC(uint8_t crc, const uint8_t* data, int32_t length);
|
|
@ -1,56 +0,0 @@
|
|||||||
/**
|
|
||||||
******************************************************************************
|
|
||||||
* @addtogroup PIOS PIOS Core hardware abstraction layer
|
|
||||||
* @{
|
|
||||||
* @defgroup PIOS_DEBUG Debugging Functions
|
|
||||||
* @brief Debugging functionality
|
|
||||||
* @{
|
|
||||||
*
|
|
||||||
* @file pios_i2c.h
|
|
||||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
|
||||||
* @brief Debug helper functions header.
|
|
||||||
* @see The GNU Public License (GPL) Version 3
|
|
||||||
*
|
|
||||||
*****************************************************************************/
|
|
||||||
/*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but
|
|
||||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
||||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
* for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef PIOS_DEBUG_H
|
|
||||||
#define PIOS_DEBUG_H
|
|
||||||
|
|
||||||
extern const char *PIOS_DEBUG_AssertMsg;
|
|
||||||
|
|
||||||
void PIOS_DEBUG_Init(void);
|
|
||||||
void PIOS_DEBUG_PinHigh(uint8_t pin);
|
|
||||||
void PIOS_DEBUG_PinLow(uint8_t pin);
|
|
||||||
void PIOS_DEBUG_PinValue8Bit(uint8_t value);
|
|
||||||
void PIOS_DEBUG_PinValue4BitL(uint8_t value);
|
|
||||||
void PIOS_DEBUG_Panic(const char *msg);
|
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
#define PIOS_DEBUG_Assert(test) if (!(test)) PIOS_DEBUG_Panic(PIOS_DEBUG_AssertMsg);
|
|
||||||
#define PIOS_Assert(test) PIOS_DEBUG_Assert(test)
|
|
||||||
#else
|
|
||||||
#define PIOS_DEBUG_Assert(test)
|
|
||||||
#define PIOS_Assert(test) if (!(test)) while (1);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* PIOS_DEBUG_H */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @}
|
|
||||||
* @}
|
|
||||||
*/
|
|
@ -1,48 +0,0 @@
|
|||||||
/**
|
|
||||||
******************************************************************************
|
|
||||||
* @addtogroup PIOS PIOS Core hardware abstraction layer
|
|
||||||
* @{
|
|
||||||
* @addtogroup PIOS_DELAY Delay Functions
|
|
||||||
* @brief PiOS Delay functionality
|
|
||||||
* @{
|
|
||||||
*
|
|
||||||
* @file pios_settings.h
|
|
||||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
|
||||||
* @brief Settings functions header
|
|
||||||
* @see The GNU Public License (GPL) Version 3
|
|
||||||
*
|
|
||||||
*****************************************************************************/
|
|
||||||
/*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but
|
|
||||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
||||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
* for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef PIOS_DELAY_H
|
|
||||||
#define PIOS_DELAY_H
|
|
||||||
|
|
||||||
/* Public Functions */
|
|
||||||
extern int32_t PIOS_DELAY_Init(void);
|
|
||||||
extern int32_t PIOS_DELAY_WaituS(uint32_t uS);
|
|
||||||
extern int32_t PIOS_DELAY_WaitmS(uint32_t mS);
|
|
||||||
extern uint32_t PIOS_DELAY_GetuS();
|
|
||||||
extern uint32_t PIOS_DELAY_GetuSSince(uint32_t t);
|
|
||||||
extern uint32_t PIOS_DELAY_GetRaw();
|
|
||||||
extern uint32_t PIOS_DELAY_DiffuS(uint32_t raw);
|
|
||||||
|
|
||||||
#endif /* PIOS_DELAY_H */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @}
|
|
||||||
* @}
|
|
||||||
*/
|
|
@ -1,45 +0,0 @@
|
|||||||
/*!
|
|
||||||
* @File iap.h
|
|
||||||
* @Brief Header file for the In-Application-Programming Module
|
|
||||||
*
|
|
||||||
* Created on: Sep 6, 2010
|
|
||||||
* Author: joe
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef PIOS_IAP_H_
|
|
||||||
#define PIOS_IAP_H_
|
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************************************
|
|
||||||
* Header files
|
|
||||||
****************************************************************************************/
|
|
||||||
|
|
||||||
/*****************************************************************************************
|
|
||||||
* Public Definitions/Macros
|
|
||||||
****************************************************************************************/
|
|
||||||
#if defined(STM32F4XX)
|
|
||||||
#define MAGIC_REG_1 RTC_BKP_DR1
|
|
||||||
#define MAGIC_REG_2 RTC_BKP_DR2
|
|
||||||
#define IAP_BOOTCOUNT RTC_BKP_DR3
|
|
||||||
#else
|
|
||||||
#define MAGIC_REG_1 BKP_DR1
|
|
||||||
#define MAGIC_REG_2 BKP_DR2
|
|
||||||
#define IAP_BOOTCOUNT BKP_DR3
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************************
|
|
||||||
* Public Functions
|
|
||||||
****************************************************************************************/
|
|
||||||
void PIOS_IAP_Init(void);
|
|
||||||
uint32_t PIOS_IAP_CheckRequest( void );
|
|
||||||
void PIOS_IAP_SetRequest1(void);
|
|
||||||
void PIOS_IAP_SetRequest2(void);
|
|
||||||
void PIOS_IAP_ClearRequest(void);
|
|
||||||
uint16_t PIOS_IAP_ReadBootCount(void);
|
|
||||||
void PIOS_IAP_WriteBootCount(uint16_t);
|
|
||||||
|
|
||||||
/****************************************************************************************
|
|
||||||
* Public Data
|
|
||||||
****************************************************************************************/
|
|
||||||
|
|
||||||
#endif /* PIOS_IAP_H_ */
|
|
@ -1,72 +0,0 @@
|
|||||||
/**
|
|
||||||
******************************************************************************
|
|
||||||
* @addtogroup PIOS PIOS Initcall infrastructure
|
|
||||||
* @{
|
|
||||||
* @addtogroup PIOS_INITCALL Generic Initcall Macros
|
|
||||||
* @brief Initcall Macros
|
|
||||||
* @{
|
|
||||||
*
|
|
||||||
* @file pios_initcall.h
|
|
||||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2011.
|
|
||||||
* @brief Initcall header
|
|
||||||
* @see The GNU Public License (GPL) Version 3
|
|
||||||
*
|
|
||||||
*****************************************************************************/
|
|
||||||
/*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but
|
|
||||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
||||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
* for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef PIOS_INITCALL_H
|
|
||||||
#define PIOS_INITCALL_H
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Just a stub define to make things compile.
|
|
||||||
* Automatically link based initialization currently doesn't work
|
|
||||||
* since posix really runs on a multitude of architectures
|
|
||||||
* and we cannot define a linker script for each of them atm
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
typedef int32_t (*initcall_t)(void);
|
|
||||||
typedef struct {
|
|
||||||
initcall_t fn_minit;
|
|
||||||
initcall_t fn_tinit;
|
|
||||||
} initmodule_t;
|
|
||||||
|
|
||||||
/* Init module section */
|
|
||||||
extern initmodule_t __module_initcall_start[], __module_initcall_end[];
|
|
||||||
|
|
||||||
extern void InitModules();
|
|
||||||
extern void StartModules();
|
|
||||||
|
|
||||||
#define MODULE_INITCALL(ifn, sfn)
|
|
||||||
|
|
||||||
#define MODULE_TASKCREATE_ALL { \
|
|
||||||
/* Start all module threads */ \
|
|
||||||
StartModules(); \
|
|
||||||
}
|
|
||||||
|
|
||||||
#define MODULE_INITIALISE_ALL { \
|
|
||||||
/* Initialize modules */ \
|
|
||||||
InitModules(); \
|
|
||||||
/* Initialize the system thread */ \
|
|
||||||
SystemModInitialize();}
|
|
||||||
|
|
||||||
#endif /* PIOS_INITCALL_H */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @}
|
|
||||||
* @}
|
|
||||||
*/
|
|
@ -1,38 +0,0 @@
|
|||||||
/**
|
|
||||||
******************************************************************************
|
|
||||||
* @addtogroup PIOS PIOS Core hardware abstraction layer
|
|
||||||
* @{
|
|
||||||
* @addtogroup PIOS_IRQ IRQ Setup Functions
|
|
||||||
* @{
|
|
||||||
*
|
|
||||||
* @file pios_irq.h
|
|
||||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
|
||||||
* Parts by Thorsten Klose (tk@midibox.org)
|
|
||||||
* @brief IRQ functions header.
|
|
||||||
* @see The GNU Public License (GPL) Version 3
|
|
||||||
*
|
|
||||||
*****************************************************************************/
|
|
||||||
/*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but
|
|
||||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
||||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
* for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef PIOS_IRQ_H
|
|
||||||
#define PIOS_IRQ_H
|
|
||||||
|
|
||||||
/* Public Functions */
|
|
||||||
extern int32_t PIOS_IRQ_Disable(void);
|
|
||||||
extern int32_t PIOS_IRQ_Enable(void);
|
|
||||||
|
|
||||||
#endif /* PIOS_IRQ_H */
|
|
@ -1,39 +0,0 @@
|
|||||||
/**
|
|
||||||
******************************************************************************
|
|
||||||
* @addtogroup PIOS PIOS Core hardware abstraction layer
|
|
||||||
* @{
|
|
||||||
* @addtogroup PIOS_LED LED Functions
|
|
||||||
* @{
|
|
||||||
*
|
|
||||||
* @file pios_led.h
|
|
||||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
|
||||||
* @brief LED functions header.
|
|
||||||
* @see The GNU Public License (GPL) Version 3
|
|
||||||
*
|
|
||||||
*****************************************************************************/
|
|
||||||
/*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but
|
|
||||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
||||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
* for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef PIOS_LED_H
|
|
||||||
#define PIOS_LED_H
|
|
||||||
|
|
||||||
/* Public Functions */
|
|
||||||
extern void PIOS_LED_On(uint32_t led_id);
|
|
||||||
extern void PIOS_LED_Off(uint32_t led_id);
|
|
||||||
extern void PIOS_LED_Toggle(uint32_t led_id);
|
|
||||||
extern void PIOS_LED_Init();
|
|
||||||
|
|
||||||
#endif /* PIOS_LED_H */
|
|
@ -1,57 +0,0 @@
|
|||||||
/**
|
|
||||||
******************************************************************************
|
|
||||||
* @addtogroup PIOS PIOS Core hardware abstraction layer
|
|
||||||
* @{
|
|
||||||
* @addtogroup PIOS_RCVR RCVR layer functions
|
|
||||||
* @brief Hardware communication layer
|
|
||||||
* @{
|
|
||||||
*
|
|
||||||
* @file pios_rcvr.h
|
|
||||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
|
||||||
* @brief RCVR layer functions header
|
|
||||||
* @see The GNU Public License (GPL) Version 3
|
|
||||||
*
|
|
||||||
*****************************************************************************/
|
|
||||||
/*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but
|
|
||||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
||||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
* for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef PIOS_RCVR_H
|
|
||||||
#define PIOS_RCVR_H
|
|
||||||
|
|
||||||
struct pios_rcvr_driver {
|
|
||||||
void (*init)(uint32_t id);
|
|
||||||
int32_t (*read)(uint32_t id, uint8_t channel);
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Public Functions */
|
|
||||||
extern int32_t PIOS_RCVR_Read(uint32_t rcvr_id, uint8_t channel);
|
|
||||||
|
|
||||||
/*! Define error codes for PIOS_RCVR_Get */
|
|
||||||
enum PIOS_RCVR_errors {
|
|
||||||
/*! Indicates that a failsafe condition or missing receiver detected for that channel */
|
|
||||||
PIOS_RCVR_TIMEOUT = 0,
|
|
||||||
/*! Channel is invalid for this driver (usually out of range supported) */
|
|
||||||
PIOS_RCVR_INVALID = -1,
|
|
||||||
/*! Indicates that the driver for this channel has not been initialized */
|
|
||||||
PIOS_RCVR_NODRIVER = -2
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif /* PIOS_RCVR_H */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @}
|
|
||||||
* @}
|
|
||||||
*/
|
|
@ -1,48 +0,0 @@
|
|||||||
/**
|
|
||||||
******************************************************************************
|
|
||||||
* @addtogroup PIOS PIOS Core hardware abstraction layer
|
|
||||||
* @{
|
|
||||||
* @addtogroup PIOS_RCVR RCVR Functions
|
|
||||||
* @brief PIOS interface for RCVR drivers
|
|
||||||
* @{
|
|
||||||
*
|
|
||||||
* @file pios_rcvr_priv.h
|
|
||||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
|
||||||
* Parts by Thorsten Klose (tk@midibox.org)
|
|
||||||
* @brief USART private definitions.
|
|
||||||
* @see The GNU Public License (GPL) Version 3
|
|
||||||
*
|
|
||||||
*****************************************************************************/
|
|
||||||
/*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but
|
|
||||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
||||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
* for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef PIOS_RCVR_PRIV_H
|
|
||||||
#define PIOS_RCVR_PRIV_H
|
|
||||||
|
|
||||||
#include <pios.h>
|
|
||||||
|
|
||||||
extern uint32_t pios_rcvr_max_channel;
|
|
||||||
|
|
||||||
extern int32_t PIOS_RCVR_Init(uint32_t * rcvr_id, const struct pios_rcvr_driver * driver, const uint32_t lower_id);
|
|
||||||
|
|
||||||
extern void PIOS_RCVR_IRQ_Handler(uint32_t rcvr_id);
|
|
||||||
|
|
||||||
#endif /* PIOS_RCVR_PRIV_H */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @}
|
|
||||||
* @}
|
|
||||||
*/
|
|
@ -1,113 +0,0 @@
|
|||||||
/**
|
|
||||||
******************************************************************************
|
|
||||||
*
|
|
||||||
* @file pios_sdcard.h
|
|
||||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
|
||||||
* Parts by Thorsten Klose (tk@midibox.org)
|
|
||||||
* @brief System and hardware Init functions header.
|
|
||||||
* @see The GNU Public License (GPL) Version 3
|
|
||||||
*
|
|
||||||
*****************************************************************************/
|
|
||||||
/*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but
|
|
||||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
||||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
* for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef PIOS_SDCARD_H
|
|
||||||
#define PIOS_SDCARD_H
|
|
||||||
|
|
||||||
#if defined(PIOS_INCLUDE_SDCARD)
|
|
||||||
|
|
||||||
/* Public Functions */
|
|
||||||
typedef struct {
|
|
||||||
uint8_t CSDStruct; /* CSD structure */
|
|
||||||
uint8_t SysSpecVersion; /* System specification version */
|
|
||||||
uint8_t Reserved1; /* Reserved */
|
|
||||||
uint8_t TAAC; /* Data read access-time 1 */
|
|
||||||
uint8_t NSAC; /* Data read access-time 2 in CLK cycles */
|
|
||||||
uint8_t MaxBusClkFrec; /* Max. bus clock frequency */
|
|
||||||
uint16_t CardComdClasses; /* Card command classes */
|
|
||||||
uint8_t RdBlockLen; /* Max. read data block length */
|
|
||||||
uint8_t PartBlockRead; /* Partial blocks for read allowed */
|
|
||||||
uint8_t WrBlockMisalign; /* Write block misalignment */
|
|
||||||
uint8_t RdBlockMisalign; /* Read block misalignment */
|
|
||||||
uint8_t DSRImpl; /* DSR implemented */
|
|
||||||
uint8_t Reserved2; /* Reserved */
|
|
||||||
uint16_t DeviceSize; /* Device Size */
|
|
||||||
uint8_t MaxRdCurrentVDDMin; /* Max. read current @ VDD min */
|
|
||||||
uint8_t MaxRdCurrentVDDMax; /* Max. read current @ VDD max */
|
|
||||||
uint8_t MaxWrCurrentVDDMin; /* Max. write current @ VDD min */
|
|
||||||
uint8_t MaxWrCurrentVDDMax; /* Max. write current @ VDD max */
|
|
||||||
uint8_t DeviceSizeMul; /* Device size multiplier */
|
|
||||||
uint8_t EraseGrSize; /* Erase group size */
|
|
||||||
uint8_t EraseGrMul; /* Erase group size multiplier */
|
|
||||||
uint8_t WrProtectGrSize; /* Write protect group size */
|
|
||||||
uint8_t WrProtectGrEnable; /* Write protect group enable */
|
|
||||||
uint8_t ManDeflECC; /* Manufacturer default ECC */
|
|
||||||
uint8_t WrSpeedFact; /* Write speed factor */
|
|
||||||
uint8_t MaxWrBlockLen; /* Max. write data block length */
|
|
||||||
uint8_t WriteBlockPaPartial; /* Partial blocks for write allowed */
|
|
||||||
uint8_t Reserved3; /* Reserved */
|
|
||||||
uint8_t ContentProtectAppli; /* Content protection application */
|
|
||||||
uint8_t FileFormatGrouop; /* File format group */
|
|
||||||
uint8_t CopyFlag; /* Copy flag (OTP) */
|
|
||||||
uint8_t PermWrProtect; /* Permanent write protection */
|
|
||||||
uint8_t TempWrProtect; /* Temporary write protection */
|
|
||||||
uint8_t FileFormat; /* File Format */
|
|
||||||
uint8_t ECC; /* ECC code */
|
|
||||||
uint8_t msd_CRC; /* CRC */
|
|
||||||
uint8_t Reserved4; /* always 1*/
|
|
||||||
} SDCARDCsdTypeDef;
|
|
||||||
|
|
||||||
/* Structure taken from Mass Storage Driver example provided by STM */
|
|
||||||
typedef struct {
|
|
||||||
uint8_t ManufacturerID; /* ManufacturerID */
|
|
||||||
uint16_t OEM_AppliID; /* OEM/Application ID */
|
|
||||||
char ProdName[6]; /* Product Name */
|
|
||||||
uint8_t ProdRev; /* Product Revision */
|
|
||||||
uint32_t ProdSN; /* Product Serial Number */
|
|
||||||
uint8_t Reserved1; /* Reserved1 */
|
|
||||||
uint16_t ManufactDate; /* Manufacturing Date */
|
|
||||||
uint8_t msd_CRC; /* CRC */
|
|
||||||
uint8_t Reserved2; /* always 1*/
|
|
||||||
} SDCARDCidTypeDef;
|
|
||||||
|
|
||||||
/* Global Variables */
|
|
||||||
//extern VOLINFO PIOS_SDCARD_VolInfo;
|
|
||||||
//extern uint8_t PIOS_SDCARD_Sector[SECTOR_SIZE];
|
|
||||||
|
|
||||||
/* Prototypes */
|
|
||||||
extern int32_t PIOS_SDCARD_Init(void);
|
|
||||||
extern int32_t PIOS_SDCARD_PowerOn(void);
|
|
||||||
extern int32_t PIOS_SDCARD_PowerOff(void);
|
|
||||||
extern int32_t PIOS_SDCARD_CheckAvailable(uint8_t was_available);
|
|
||||||
extern int32_t PIOS_SDCARD_SendSDCCmd(uint8_t cmd, uint32_t addr, uint8_t crc);
|
|
||||||
extern int32_t PIOS_SDCARD_SectorRead(uint32_t sector, uint8_t *buffer);
|
|
||||||
extern int32_t PIOS_SDCARD_SectorWrite(uint32_t sector, uint8_t *buffer);
|
|
||||||
extern int32_t PIOS_SDCARD_CIDRead(SDCARDCidTypeDef *cid);
|
|
||||||
extern int32_t PIOS_SDCARD_CSDRead(SDCARDCsdTypeDef *csd);
|
|
||||||
|
|
||||||
extern int32_t PIOS_SDCARD_StartupLog(void);
|
|
||||||
extern int32_t PIOS_SDCARD_IsMounted();
|
|
||||||
extern int32_t PIOS_SDCARD_MountFS(uint32_t StartupLog);
|
|
||||||
extern int32_t PIOS_SDCARD_GetFree(void);
|
|
||||||
|
|
||||||
//extern int32_t PIOS_SDCARD_ReadBuffer(PFILEINFO fileinfo, uint8_t *buffer, uint32_t len);
|
|
||||||
//extern int32_t PIOS_SDCARD_ReadLine(PFILEINFO fileinfo, uint8_t *buffer, uint32_t max_len);
|
|
||||||
extern int32_t PIOS_SDCARD_FileCopy(char *Source, char *Destination);
|
|
||||||
extern int32_t PIOS_SDCARD_FileDelete(char *Filename);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* PIOS_SDCARD_H */
|
|
@ -1,43 +0,0 @@
|
|||||||
/**
|
|
||||||
******************************************************************************
|
|
||||||
* @addtogroup PIOS PIOS Core hardware abstraction layer
|
|
||||||
* @{
|
|
||||||
* @addtogroup PIOS_SERVO RC Servo Functions
|
|
||||||
* @{
|
|
||||||
*
|
|
||||||
* @file pios_servo.h
|
|
||||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
|
||||||
* @brief RC Servo functions header.
|
|
||||||
* @see The GNU Public License (GPL) Version 3
|
|
||||||
*
|
|
||||||
*****************************************************************************/
|
|
||||||
/*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but
|
|
||||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
||||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
* for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef PIOS_SERVO_H
|
|
||||||
#define PIOS_SERVO_H
|
|
||||||
|
|
||||||
/* Public Functions */
|
|
||||||
extern void PIOS_Servo_Init(void);
|
|
||||||
extern void PIOS_Servo_SetHz(const uint16_t * speeds, uint8_t num_banks);
|
|
||||||
extern void PIOS_Servo_Set(uint8_t Servo, uint16_t Position);
|
|
||||||
|
|
||||||
#endif /* PIOS_SERVO_H */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @}
|
|
||||||
* @}
|
|
||||||
*/
|
|
@ -1,12 +0,0 @@
|
|||||||
/* Taken from include/linux/kernel.h from the Linux kernel tree */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* container_of - cast a member of a structure out to the containing structure
|
|
||||||
* @ptr: the pointer to the member.
|
|
||||||
* @type: the type of the container struct this is embedded in.
|
|
||||||
* @member: the name of the member within the struct.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
#define container_of(ptr, type, member) ({ \
|
|
||||||
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
|
|
||||||
(type *)( (char *)__mptr - offsetof(type,member) );})
|
|
@ -1,50 +0,0 @@
|
|||||||
/**
|
|
||||||
******************************************************************************
|
|
||||||
* @addtogroup PIOS PIOS Core hardware abstraction layer
|
|
||||||
* @{
|
|
||||||
* @addtogroup PIOS_SYS System Functions
|
|
||||||
* @brief PIOS System Initialization code
|
|
||||||
* @{
|
|
||||||
*
|
|
||||||
* @file pios_sys.h
|
|
||||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
|
||||||
* Parts by Thorsten Klose (tk@midibox.org)
|
|
||||||
* @brief System and hardware Init functions header.
|
|
||||||
* @see The GNU Public License (GPL) Version 3
|
|
||||||
*
|
|
||||||
*****************************************************************************/
|
|
||||||
/*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but
|
|
||||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
||||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
* for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef PIOS_SYS_H
|
|
||||||
#define PIOS_SYS_H
|
|
||||||
|
|
||||||
#define PIOS_SYS_SERIAL_NUM_BINARY_LEN 12
|
|
||||||
#define PIOS_SYS_SERIAL_NUM_ASCII_LEN (PIOS_SYS_SERIAL_NUM_BINARY_LEN * 2)
|
|
||||||
|
|
||||||
/* Public Functions */
|
|
||||||
extern void PIOS_SYS_Init(void);
|
|
||||||
extern int32_t PIOS_SYS_Reset(void);
|
|
||||||
extern uint32_t PIOS_SYS_getCPUFlashSize(void);
|
|
||||||
extern int32_t PIOS_SYS_SerialNumberGetBinary(uint8_t array[PIOS_SYS_SERIAL_NUM_BINARY_LEN]);
|
|
||||||
extern int32_t PIOS_SYS_SerialNumberGet(char str[PIOS_SYS_SERIAL_NUM_ASCII_LEN+1]);
|
|
||||||
|
|
||||||
#endif /* PIOS_SYS_H */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @}
|
|
||||||
* @}
|
|
||||||
*/
|
|
@ -1,45 +0,0 @@
|
|||||||
/**
|
|
||||||
******************************************************************************
|
|
||||||
* @addtogroup PIOS PIOS Core hardware abstraction layer
|
|
||||||
* @{
|
|
||||||
* @addtogroup PIOS_WDG Watchdog Functions
|
|
||||||
* @{
|
|
||||||
*
|
|
||||||
* @file pios_wdg.h
|
|
||||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
|
||||||
* Parts by Thorsten Klose (tk@midibox.org)
|
|
||||||
* @brief SPI functions header.
|
|
||||||
* @see The GNU Public License (GPL) Version 3
|
|
||||||
*
|
|
||||||
*****************************************************************************/
|
|
||||||
/*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful, but
|
|
||||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
||||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
* for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef PIOS_WDG
|
|
||||||
#define PIOS_WDG
|
|
||||||
|
|
||||||
void PIOS_WDG_Init();
|
|
||||||
bool PIOS_WDG_RegisterFlag(uint16_t flag_requested);
|
|
||||||
bool PIOS_WDG_UpdateFlag(uint16_t flag);
|
|
||||||
uint16_t PIOS_WDG_GetBootupFlags();
|
|
||||||
uint16_t PIOS_WDG_GetActiveFlags();
|
|
||||||
void PIOS_WDG_Clear(void);
|
|
||||||
|
|
||||||
#define PIOS_WDG_ACTUATOR 0x0001
|
|
||||||
#define PIOS_WDG_STABILIZATION 0x0002
|
|
||||||
#define PIOS_WDG_MANUAL 0x0008
|
|
||||||
|
|
||||||
#endif
|
|
Loading…
x
Reference in New Issue
Block a user