00001 /* 00002 # This file is Copyright 2007, 2009 Dean Hall. 00003 # 00004 # This file is part of the PyMite VM. 00005 # The PyMite VM is free software: you can redistribute it and/or modify 00006 # it under the terms of the GNU GENERAL PUBLIC LICENSE Version 2. 00007 # 00008 # The PyMite VM is distributed in the hope that it will be useful, 00009 # but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00011 # A copy of the GNU GENERAL PUBLIC LICENSE Version 2 00012 # is seen in the file COPYING in this directory. 00013 */ 00014 00015 00016 #ifndef __PLAT_H__ 00017 #define __PLAT_H__ 00018 00019 00030 PmReturn_t plat_init(void); 00031 00033 PmReturn_t plat_deinit(void); 00034 00049 uint8_t plat_memGetByte(PmMemSpace_t memspace, uint8_t const **paddr); 00050 00055 PmReturn_t plat_getByte(uint8_t *b); 00056 00057 00062 PmReturn_t plat_putByte(uint8_t b); 00063 00064 00068 PmReturn_t plat_getMsTicks(uint32_t *r_ticks); 00069 00070 00074 void plat_reportError(PmReturn_t result); 00075 00076 #endif /* __PLAT_H__ */