plat.c File Reference
#include <stdio.h>
#include "stm32f10x.h"
#include "platform_config.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 161 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 196 of file plat.c.
Gets the number of timer ticks that have passed since system start.
Return the number of milliseconds since the system was initialized.
Definition at line 231 of file plat.c.
Initializes the platform as needed by the routines in the platform implementation file.
PyMite platform-specific routines for MoSync target
Definition at line 129 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 172 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 218 of file plat.c.
Reports an exception or other error that caused the thread to quit
Definition at line 241 of file plat.c.
void RTC_Configuration |
( |
void |
|
) |
|
Configures the RTC.
- Return values:
-
Definition at line 75 of file plat.c.