From 955b7901377d4bda1d45af12a9e5a8de54c427b6 Mon Sep 17 00:00:00 2001 From: barthess Date: Tue, 28 Apr 2015 10:10:09 +0300 Subject: Improved metest. Added copyright notes. --- testhal/STM32/STM32F4xx/FSMC_SRAM/memtest.hpp | 32 ++++++++++++++++++++------- 1 file changed, 24 insertions(+), 8 deletions(-) (limited to 'testhal/STM32/STM32F4xx/FSMC_SRAM/memtest.hpp') diff --git a/testhal/STM32/STM32F4xx/FSMC_SRAM/memtest.hpp b/testhal/STM32/STM32F4xx/FSMC_SRAM/memtest.hpp index 4a9e4e3..200db1f 100644 --- a/testhal/STM32/STM32F4xx/FSMC_SRAM/memtest.hpp +++ b/testhal/STM32/STM32F4xx/FSMC_SRAM/memtest.hpp @@ -1,3 +1,19 @@ +/* + ChibiOS/RT - Copyright (C) 2013-2014 Uladzimir Pylinsky aka barthess + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + #ifndef MEMTEST_HPP_ #define MEMTEST_HPP_ @@ -8,20 +24,20 @@ #define MEMTEST_MOVING_INVERSION_55AA (1 << 4) #define MEMTEST_MOVING_INVERSION_RAND (1 << 5) -#define MEMTEST_RUN_ALL (MEMTEST_WALKING_ONE | \ - MEMTEST_WALKING_ZERO | \ - MEMTEST_OWN_ADDRESS | \ - MEMTEST_MOVING_INVERSION_ZERO | \ - MEMTEST_MOVING_INVERSION_55AA | \ +#define MEMTEST_RUN_ALL (MEMTEST_WALKING_ONE | \ + MEMTEST_WALKING_ZERO | \ + MEMTEST_OWN_ADDRESS | \ + MEMTEST_MOVING_INVERSION_ZERO | \ + MEMTEST_MOVING_INVERSION_55AA | \ MEMTEST_MOVING_INVERSION_RAND) typedef struct memtest_t memtest_t; -typedef uint32_t testtype_t; +typedef uint32_t testtype; /* * Error call back. */ -typedef void (*memtestecb_t)(memtest_t *memp, testtype_t e, size_t address); +typedef void (*memtestecb_t)(memtest_t *testp, testtype type, size_t address); /* * @@ -49,7 +65,7 @@ struct memtest_t { #ifdef __cplusplus extern "C" { #endif - void memtest_run(memtest_t *memp, uint32_t testmask); + void memtest_run(memtest_t *testp, uint32_t testmask); #ifdef __cplusplus } #endif -- cgit v1.2.3