RTEMS 6.1-rc6
Loading...
Searching...
No Matches
tms570_selftest_parity.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
11/*
12 * Copyright (C) 2016 Pavel Pisa <pisa@cmp.felk.cvut.cz>
13 *
14 * Czech Technical University in Prague
15 * Zikova 1903/4
16 * 166 36 Praha 6
17 * Czech Republic
18 *
19 * Redistribution and use in source and binary forms, with or without
20 * modification, are permitted provided that the following conditions
21 * are met:
22 * 1. Redistributions of source code must retain the above copyright
23 * notice, this list of conditions and the following disclaimer.
24 * 2. Redistributions in binary form must reproduce the above copyright
25 * notice, this list of conditions and the following disclaimer in the
26 * documentation and/or other materials provided with the distribution.
27 *
28 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
29 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
30 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
31 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
32 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
33 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
34 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
35 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
36 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
37 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
38 * POSSIBILITY OF SUCH DAMAGE.
39 */
40
41#ifndef LIBBSP_ARM_TMS570_SELFTEST_PARITY_H
42#define LIBBSP_ARM_TMS570_SELFTEST_PARITY_H
43
44#include <stdint.h>
45
50#define TMS570_SELFTEST_PAR_CR_KEY 0xA
51
53
54typedef void tms570_selftest_par_fnc_t( const tms570_selftest_par_desc_t *desc );
55
62 unsigned char esm_prim_grp;
63 unsigned char esm_prim_chan;
64 unsigned char esm_sec_grp;
65 unsigned char esm_sec_chan;
68 volatile uint32_t *ram_loc;
69 volatile uint32_t *par_loc;
71 uint32_t par_xor;
73 volatile uint32_t *par_cr_reg;
74 uint32_t par_cr_test;
75 volatile uint32_t *par_st_reg;
76 uint32_t par_st_clear;
78 tms570_selftest_par_fnc_t *partest_fnc;
80 volatile void *fnc_data;
82};
83
85 tms570_selftest_par_het1_desc;
87 tms570_selftest_par_htu1_desc;
89 tms570_selftest_par_het2_desc;
91 tms570_selftest_par_htu2_desc;
93 tms570_selftest_par_adc1_desc;
95 tms570_selftest_par_adc2_desc;
97 tms570_selftest_par_can1_desc;
99 tms570_selftest_par_can2_desc;
101 tms570_selftest_par_can3_desc;
103 tms570_selftest_par_vim_desc;
105 tms570_selftest_par_dma_desc;
107 tms570_selftest_par_spi1_desc;
109 tms570_selftest_par_spi3_desc;
111 tms570_selftest_par_spi5_desc;
112
113extern const tms570_selftest_par_desc_t *const
114tms570_selftest_par_list[];
115
116extern const int tms570_selftest_par_list_size;
117
119
121
123
126 const *desc_arr,
127 int desc_cnt
128);
129
130#endif /* LIBBSP_ARM_TMS570_SELFTEST_PARITY_H */
Definition: tms570_selftest_parity.h:61
unsigned char esm_prim_grp
Definition: tms570_selftest_parity.h:62
unsigned char esm_sec_chan
Definition: tms570_selftest_parity.h:65
int fail_code
Definition: tms570_selftest_parity.h:66
volatile uint32_t * ram_loc
Definition: tms570_selftest_parity.h:68
volatile uint32_t * par_cr_reg
Definition: tms570_selftest_parity.h:73
uint32_t par_xor
Definition: tms570_selftest_parity.h:71
uint32_t par_cr_test
Definition: tms570_selftest_parity.h:74
uint32_t par_st_clear
Definition: tms570_selftest_parity.h:76
volatile void * fnc_data
Definition: tms570_selftest_parity.h:80
unsigned char esm_sec_grp
Definition: tms570_selftest_parity.h:64
volatile uint32_t * par_st_reg
Definition: tms570_selftest_parity.h:75
unsigned char esm_prim_chan
Definition: tms570_selftest_parity.h:63
volatile uint32_t * par_loc
Definition: tms570_selftest_parity.h:69
tms570_selftest_par_fnc_t * partest_fnc
Definition: tms570_selftest_parity.h:78
void tms570_selftest_par_check_std(const tms570_selftest_par_desc_t *desc)
run test to check that parity protection works for modules with common setup structure.
Definition: tms570_selftest_par_std.c:63
void tms570_selftest_par_run(const tms570_selftest_par_desc_t *const *desc_arr, int desc_cnt)
run parity protection mechanism check for set of modules described by list.
Definition: tms570_selftest_parity.c:324
void tms570_selftest_par_check_can(const tms570_selftest_par_desc_t *desc)
run test to check that parity protection works for CAN modules RAM
Definition: tms570_selftest_par_can.c:61
void tms570_selftest_par_check_mibspi(const tms570_selftest_par_desc_t *desc)
run test to check that parity protection works for MibSPI modules RAM
Definition: tms570_selftest_par_mibspi.c:61