3 * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
4 * @brief PyMite platform definitions for OpenPilot
6 * @see The GNU Public License (GPL) Version 3
8 *****************************************************************************/
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 3 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 * You should have received a copy of the GNU General Public License along
21 * with this program; if not, write to the Free Software Foundation, Inc.,
22 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 #include "openpilot.h"
30 PmReturn_t
plat_init(void)
35 PmReturn_t
plat_deinit(void)
41 * Gets a byte from the address in the designated memory space
42 * Post-increments *paddr.
44 uint8_t plat_memGetByte(PmMemSpace_t memspace
, uint8_t const **paddr
)
56 case MEMSPACE_SEEPROM
:
66 PmReturn_t
plat_getByte(uint8_t *b
)
71 PmReturn_t
plat_putByte(uint8_t b
)
76 PmReturn_t
plat_getMsTicks(uint32_t *r_ticks
)
78 *r_ticks
= xTaskGetTickCount() * portTICK_RATE_MS
;
82 void plat_reportError(PmReturn_t result
)
84 /* TODO: Copy error information to UAVObject */
85 /* gVmGlobal.errVmRelease gVmGlobal.errFileId gVmGlobal.errLineNum */