/trunk/libraries/usart/test/usart0__test.c |
---|
55,7 → 55,7 |
usart0__enable_transmitter(); |
// Transmit characters. |
for (;;) |
while (1) |
{ |
usart0__transmit_byte('H'); |
usart0__transmit_byte('e'); |
/trunk/libraries/usart/demo/usart0__demo.c |
---|
55,7 → 55,7 |
usart0__enable_transmitter(); |
// Transmit characters. |
for (;;) |
while (1) |
{ |
usart0__transmit_byte('H'); |
usart0__transmit_byte('e'); |
/trunk/libraries/ds1307/demo/ds1307__demo.c |
---|
77,7 → 77,7 |
// Set date. |
ds1307__set_date(&date); |
for (;;) |
while (1) |
{ |
// Get RTC time. |
ds1307__get_time(&time, &hour_mode); |
/trunk/libraries/digital_io/test/digital_io__test.c |
---|
53,7 → 53,7 |
// Configure pin as output. |
digital_io__configure_pin(pin, DIGITAL_IO__DIRECTION__OUTPUT); |
for (;;) |
while (1) |
{ |
// Set pin level. |
digital_io__set_pin_level(pin, DIGITAL_IO__LEVEL__HIGH); |
/trunk/libraries/digital_io/demo/digital_io__demo.c |
---|
53,7 → 53,7 |
// Configure pin as output. |
digital_io__configure_pin(pin, DIGITAL_IO__DIRECTION__OUTPUT); |
for (;;) |
while (1) |
{ |
// Set pin level. |
digital_io__set_pin_level(pin, DIGITAL_IO__LEVEL__HIGH); |
/trunk/projects/clock/clock.c |
---|
36,7 → 36,6 |
#include <util/delay.h> |
#include <stdio.h> |
#include <stdlib.h> |
#include <string.h> |
/****************************************************************************** |
85,7 → 84,7 |
// Set date. |
//ds1307__set_date(&date); |
for (;;) |
while (1) |
{ |
// Get RTC time. |
ds1307__get_time(&time, &hour_mode); |
/trunk/projects/input_to_output/input_to_output.c |
---|
33,7 → 33,7 |
digital_io__pin_position_t output = DIGITAL_IO__PORT_B | DIGITAL_IO__PIN_5; |
digital_io__configure_pin(output, DIGITAL_IO__DIRECTION__OUTPUT); |
for (;;) |
while (1) |
{ |
// Get input level on PB4. |
digital_io__level_t level = digital_io__get_pin_level(input); |
/trunk/projects/helloworld/helloworld.c |
---|
31,7 → 31,7 |
// Configure pin as output. |
digital_io__configure_pin(pin, DIGITAL_IO__DIRECTION__OUTPUT); |
for (;;) |
while (1) |
{ |
// Set pin level. |
digital_io__set_pin_level(pin, DIGITAL_IO__LEVEL__HIGH); |