mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 07:58:04 +02:00
40 lines
1.2 KiB
ObjectPascal
40 lines
1.2 KiB
ObjectPascal
{
|
|
|
|
This file is part of the Free Pascal run time library.
|
|
Copyright (c) 2016 by the Free Pascal development team.
|
|
|
|
See the file COPYING.FPC, included in this distribution,
|
|
for details about the copyright.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
**********************************************************************}
|
|
{$IFNDEF FPC_DOTTEDUNITS}
|
|
unit intrinsics;
|
|
{$ENDIF FPC_DOTTEDUNITS}
|
|
|
|
interface
|
|
|
|
const
|
|
{$i cpuinnr.inc}
|
|
|
|
procedure avr_cli;[INTERNPROC: in_avr_cli];
|
|
procedure avr_sei;[INTERNPROC: in_avr_sei];
|
|
procedure avr_wdr;[INTERNPROC: in_avr_wdr];
|
|
procedure avr_sleep;[INTERNPROC: in_avr_sleep];
|
|
procedure avr_nop;[INTERNPROC: in_avr_nop];
|
|
|
|
{ Reads SREG and then disables interrupts, returns contents of SREG }
|
|
function avr_save: byte;[INTERNPROC: in_avr_save];
|
|
{ Restores SREG }
|
|
procedure avr_restore(old_sreg: byte); [INTERNPROC: in_avr_restore];
|
|
|
|
procedure avr_des(var data;var key;decrypt: boolean;round: byte);[INTERNPROC: in_avr_des];
|
|
|
|
implementation
|
|
|
|
end.
|
|
|