/* avr-asm-macros.S */
/*
This file is part of the AVR-Crypto-Lib.
- Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
+ Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
.macro CLEAR_BIT_IO io:req bit:req reg:req
.if _SFR_IO_REG_P(\io)
- cbi _SFR_IO_ADDR(\io), bit
+ cbi _SFR_IO_ADDR(\io), \bit
.else
lds \reg, _SFR_MEM_ADDR(\io)
andi \reg, ~_BV(\bit)
.macro SET_BIT_IO io:req bit:req reg:req
.if _SFR_IO_REG_P(\io)
- sbi _SFR_IO_ADDR(\io),bit
+ sbi _SFR_IO_ADDR(\io), \bit
.else
lds \reg, _SFR_MEM_ADDR(\io)
ori \reg, _BV(\bit)