summaryrefslogtreecommitdiff
path: root/led.c
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2019-12-09 19:53:04 -0800
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2019-12-09 19:53:04 -0800
commitc5047bb9952655dc8d0fabf6a54b9e278b243d8b (patch)
treec3b3909eefcbf8399be9cfde5bd92d790f4f5cd5 /led.c
parentd100c4e0afdab9a880648a1185106e6962f56f1a (diff)
downloadchristmas_lights-c5047bb9952655dc8d0fabf6a54b9e278b243d8b.tar.gz
christmas_lights-c5047bb9952655dc8d0fabf6a54b9e278b243d8b.tar.xz
reduce end delay for each bit
Diffstat (limited to 'led.c')
-rw-r--r--led.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/led.c b/led.c
index b0f9c1c..5ea9923 100644
--- a/led.c
+++ b/led.c
@@ -10,7 +10,6 @@ void signal_bit_0() {
"rjmp .+0\n\t"
"rjmp .+0\n\t"
"rjmp .+0\n\t"
- "nop\n\t"
:
: "I" (_SFR_IO_ADDR(PORTB)), "I" (PIN_LED)
);
@@ -23,7 +22,7 @@ void signal_bit_1() {
"nop\n\t"
"cbi %0, %1\n\t"
"rjmp .+0\n\t"
- "rjmp .+0\n\t"
+ "nop\n\t"
:
: "I" (_SFR_IO_ADDR(PORTB)), "I" (PIN_LED)
);