avrinput/avr_tests/io_test.c

20 lines
285 B
C
Raw Normal View History

2019-04-10 09:52:35 +00:00
#include <avr/io.h>
#define F_CPU 18000000UL
#include <util/delay.h>
int main(void)
{
// CLKPR |= _BV(CLKPCE);
// CLKPR &= ~(_BV(CLKPS0)
// | _BV(CLKPS1)
// | _BV(CLKPS2)
// | _BV(CLKPS3));
DDRC |= _BV(PC5);
while(1)
{
PORTC ^= _BV(PC5);
_delay_ms(4000);
}
return 0;
}