Functions | Variables

pxmc_test.c File Reference

#include <stdio.h>
#include <types.h>
#include <cpu_def.h>
#include <mcu_regs.h>
#include <system_def.h>
#include <string.h>
#include <boot_fn.h>
#include <periph/sci_rs232.h>
#include <cmd_proc.h>
#include <stdlib.h>
#include <pxmc.h>
#include <pxmc_h2638.h>
#include <h8s2638h.h>
Include dependency graph for pxmc_test.c:

Functions

void deb_led_out (char val)
void unhandled_exception (void)
 init - shadow registers, outputs.
void isr_rotation_finished (void)
void isr_beacon (void)
void initRotTimer (void)
int main ()

Variables

cmd_des_t const ** cmd_list = cmd_list_default
cmd_des_t const cmd_des_help
cmd_des_t * cmd_stm_default [1]
cmd_des_t const * cmd_list_default []
pxmc_state_t mcs0
pxmc_state_t mcs1
pxmc_state_t * pxmc_main_arr [] = {&mcs0,&mcs1}
pxmc_state_list_t pxmc_main_list
unsigned int led = 0
cmd_io_t cmd_io_rs232_line

Function Documentation

void deb_led_out ( char  val  ) 
void initRotTimer ( void   ) 

Here is the call graph for this function:

Here is the caller graph for this function:

void isr_beacon ( void   ) 

Here is the call graph for this function:

void isr_rotation_finished ( void   ) 

Here is the call graph for this function:

int main ( void   ) 

Here is the call graph for this function:

void unhandled_exception ( void   ) 

init - shadow registers, outputs.

Initializes P1 and P3 shadow registers, sets PJ.1, PJ.2, PJ.3 LED as outputs, initialises interrupt vector.

Here is the call graph for this function:


Variable Documentation

cmd_des_t const cmd_des_help
Initial value:
{0, 0,"HELP","prints help for commands",
                        cmd_do_help,{(char*)&cmd_list}}
cmd_des_t const** cmd_list = cmd_list_default
cmd_des_t const* cmd_list_default[]
Initial value:
{
  
  &cmd_des_help,
  CMD_DES_INCLUDE_SUBLIST(cmd_stm_default),
  NULL
}
cmd_des_t* cmd_stm_default[1]
unsigned int led = 0
pxmc_state_t mcs0
Initial value:
{
  pxms_flg:0,
  pxms_do_inp:0,
  pxms_do_con:0,
  pxms_do_out:0,
  pxms_do_deb:0,
  pxms_do_gen:0,
  pxms_ap:0, pxms_as:0,
  pxms_rp:155l*256,
  pxms_rs:0, 
  pxms_md:8000l<<8, pxms_ms:5000, pxms_ma:10,
  pxms_inp_info:(long)TPU_TCNT1,
  pxms_out_info:(long)PWM_PWBFR1A,                      
  pxms_ene:0, pxms_erc:0,
  pxms_p:40, pxms_i:0, pxms_d:1, pxms_s1:0, pxms_s2:0,
  pxms_me:0x1800, 
  pxms_ptirc:40, 
  pxms_ptper:1,
  pxms_ptptr1:NULL,
  pxms_ptptr2:NULL,
  pxms_cfg:PXMS_CFG_MD2E_m|PXMS_CFG_HLS_m|
      PXMS_CFG_HPS_m|PXMS_CFG_HDIR_m|0x1
}
pxmc_state_t mcs1
Initial value:
{
  pxms_flg:0,
  pxms_do_inp:0,
  pxms_do_con:0,
  pxms_do_out:0,
  pxms_do_deb:0,
  pxms_do_gen:0,
  pxms_ap:0, pxms_as:0,
  pxms_rp:155l*256,
  pxms_rs:0, 
  pxms_md:8000l<<8, pxms_ms:5000, pxms_ma:10,
  pxms_inp_info:(long)TPU_TCNT2,                        
  pxms_out_info:(long)PWM_PWBFR1C,                      
  pxms_ene:0, pxms_erc:0,
  pxms_p:40, pxms_i:0, pxms_d:1, pxms_s1:0, pxms_s2:0,
  pxms_me:0x1800, 
  pxms_ptirc:40, 
  pxms_ptper:1,
  pxms_ptptr1:NULL,
  pxms_ptptr2:NULL,
  pxms_cfg:PXMS_CFG_MD2E_m|PXMS_CFG_HLS_m|      
      PXMS_CFG_HPS_m|PXMS_CFG_HDIR_m|0x1
}
pxmc_state_t* pxmc_main_arr[] = {&mcs0,&mcs1}
pxmc_state_list_t pxmc_main_list
Initial value:
 {
  pxml_arr:pxmc_main_arr,
  pxml_cnt:sizeof(pxmc_main_arr)/sizeof(pxmc_main_arr[0])
}