plat.c File Reference
#include <stdio.h>
#include <mc1322x.h>
#include <board.h>
#include "pm.h"
Go to the source code of this file.
Detailed Description
PyMite - A flyweight Python interpreter for 8-bit and larger microcontrollers. Copyright 2002 Dean Hall. All rights reserved. PyMite is offered through one of two licenses: commercial or open-source. See the LICENSE file at the root of this package for licensing details.
some sections based on code (C) COPYRIGHT 2008 STMicroelectronics
Definition in file plat.c.
Function Documentation
De-initializes the platform after the VM is done running.
Definition at line 79 of file plat.c.
Receives one byte from the default connection, usually UART0 on a target device or stdio on the desktop
Definition at line 120 of file plat.c.
Gets the number of timer ticks that have passed since system start.
Definition at line 138 of file plat.c.
Initializes the platform as needed by the routines in the platform implementation file.
Definition at line 46 of file plat.c.
Returns the byte at the given address in memspace.
Increments the address (just like getc and read(1)) to make image loading work (recursively).
PORT: fill in getByte for each memspace in the system; call sys_error for invalid memspaces.
- Parameters:
-
| memspace | memory space/type |
| paddr | ptr to address |
- Returns:
- byte from memory. paddr - points to the next byte
Definition at line 96 of file plat.c.
Sends one byte out on the default connection, usually UART0 on a target device or stdio on the desktop
Definition at line 129 of file plat.c.
Reports an exception or other error that caused the thread to quit
Definition at line 149 of file plat.c.