#include <stdio.h>
#include "stm32f10x.h"
#include "platform_config.h"
#include "pm.h"
Defines | |
#define | __FILE_ID__ 0x52 |
Functions | |
void | RCC_Configuration (void) |
void | GPIO_Configuration (void) |
void | NVIC_Configuration (void) |
void | RTC_Configuration (void) |
Configures the RTC. | |
int | fputc (int ch, FILE *f) |
PmReturn_t | plat_init (void) |
PmReturn_t | plat_deinit (void) |
uint8_t | plat_memGetByte (PmMemSpace_t memspace, uint8_t const **paddr) |
PmReturn_t | plat_getByte (uint8_t *b) |
PmReturn_t | plat_putByte (uint8_t b) |
PmReturn_t | plat_getMsTicks (uint32_t *r_ticks) |
void | plat_reportError (PmReturn_t result) |
some sections based on code (C) COPYRIGHT 2008 STMicroelectronics
PmReturn_t plat_deinit | ( | void | ) |
De-initializes the platform after the VM is done running.
PmReturn_t plat_getByte | ( | uint8_t * | b | ) |
Receives one byte from the default connection, usually UART0 on a target device or stdio on the desktop
PmReturn_t plat_getMsTicks | ( | uint32_t * | r_ticks | ) |
Gets the number of timer ticks that have passed since system start.
PmReturn_t plat_init | ( | void | ) |
Initializes the platform as needed by the routines in the platform implementation file.
uint8_t plat_memGetByte | ( | PmMemSpace_t | memspace, | |
uint8_t const ** | paddr | |||
) |
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.
memspace | memory space/type | |
paddr | ptr to address |
PmReturn_t plat_putByte | ( | uint8_t | b | ) |
Sends one byte out on the default connection, usually UART0 on a target device or stdio on the desktop
void plat_reportError | ( | PmReturn_t | result | ) |
Reports an exception or other error that caused the thread to quit
void RTC_Configuration | ( | void | ) |
Configures the RTC.
None |
None |