Technical information
SCI to SPI Peripheral Communication in V850ES Microcontrollers
** **************************************************************************
*/
#include "macrodriver.h"
#include "port.h"
#include "timer.h"
#include "serial.h"
/* include for temperature sensors */
#include "temper.h"
/* includes for M-Station I/O */
#include "sw_vkj1.h" /* switch input */
#include "led_vkj1.h" /* LED output */
/*
** **************************************************************************
** MacroDefine
** **************************************************************************
*/
/*
**---------------------------------------------------------------------------
** Abstract:
** Function to check status for error and report problem
**
** Parameters: MD_STATUS status
** if MD_OK, return; if not, display and loop
** Returns:
** None (does not return)
**---------------------------------------------------------------------------
*/
void CheckStatusError(MD_STATUS status)
{
if (status == MD_OK)
return;
led_dig_left(0xE); /* display "E" for Error */
led_dig_right(status & 0x0F); /* display low four bits of error code */
while (1) {
__nop(); /* endless loop */
__nop();
__nop();
}
}
/*
**---------------------------------------------------------------------------
**
** Abstract:
** main function
**
** Parameters:
** None
**
** Returns:
** None
43