1
0
mirror of https://git.code.sf.net/p/openocd/code synced 2024-11-26 02:16:26 +00:00
openocd/contrib/loaders/flash/at91sam7x/platform.h
Antonio Borneo a126229dff contrib: replace the GPLv2-or-later license tag
Replace the GPLv2-or-later boilerplate with the SPDX tag.

The SPDX tag on files *.c is incorrect, as it should use the C99
single line comment using '//'. But current checkpatch doesn't
allow C99 comments, so keep using standard C comments, by now.

Change-Id: I380d552940f1c405309a3346454251c0e80b5a45
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7159
Tested-by: jenkins
2022-09-13 22:06:14 +00:00

34 lines
1.0 KiB
C

/* SPDX-License-Identifier: GPL-2.0-or-later */
/***************************************************************************
* Copyright (C) 2007 by Pavel Chromy *
* chromy@asix.cz *
***************************************************************************/
#ifndef platformH
#define platformH
#include "samregs.h"
#define outb(_reg, _val) (*((volatile unsigned char *)(_reg)) = (_val))
#define outw(_reg, _val) (*((volatile unsigned short *)(_reg)) = (_val))
#define outr(_reg, _val) (*((volatile unsigned int *)(_reg)) = (_val))
#define inb(_reg) (*((volatile unsigned char *)(_reg)))
#define inw(_reg) (*((volatile unsigned short *)(_reg)))
#define inr(_reg) (*((volatile unsigned int *)(_reg)))
#define _BV(bit) (1 << (bit))
typedef signed char int8;
typedef unsigned char uint8;
typedef signed short int16;
typedef unsigned short uint16;
typedef signed int int32;
typedef unsigned int uint32;
#endif