code formating changes

This commit is contained in:
2023-04-02 23:55:00 +02:00
parent 25b7258458
commit 99ab8cf36d
3 changed files with 18 additions and 15 deletions

View File

@ -2,7 +2,8 @@
#define WRITEPIN_H
#include <avr/io.h>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
inline void writePin(volatile unsigned char *port, const unsigned char pin, const bool state) //waste 2 cycles
{
*port &= ~(1 << pin);
@ -24,6 +25,6 @@ inline bool readPin( volatile unsigned char *inPort, const unsigned char pin)
{
return (bool) (*inPort & (1 << pin));
}
#pragma GCC diagnostic pop
#endif