striscia led

Dependencies:   X_NUCLEO_LED61A1 mbed

Fork of HelloWorld_LED61A1 by ST

Files at this revision

API Documentation at this revision

Comitter:
Davidroid
Date:
Thu Jul 13 16:15:24 2017 +0000
Parent:
17:a338619c7cab
Child:
19:4b259f97c1e3
Commit message:
Aligning to ARM mbed coding style.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon May 08 16:17:18 2017 +0000
+++ b/main.cpp	Thu Jul 13 16:15:24 2017 +0000
@@ -152,8 +152,9 @@
 
     /* Initializing LED Control Component. */
     led = new Led6001(D4, A3, D6, D5);
-    if (led->init() != COMPONENT_OK)
+    if (led->init() != COMPONENT_OK) {
         exit(EXIT_FAILURE);
+    }
 
     /* Attaching interrupt request functions. */
     led->attach_xfault_irq(&xfault_irq);
@@ -167,14 +168,11 @@
     /*----- LED Control. -----*/
 
     /* Either performing the component handler, interrupt handlers, or waiting for events. */
-    while (true)
-    {
-        if (ticker_irq_triggered)
-        {
+    while (true) {
+        if (ticker_irq_triggered) {
             ticker_irq_triggered = false;
             led_handler();
-        } else if (xfault_irq_triggered)
-        {
+        } else if (xfault_irq_triggered) {
             xfault_irq_triggered = false;
             xfault_handler();
         } else {
--- a/mbed.bld	Mon May 08 16:17:18 2017 +0000
+++ b/mbed.bld	Thu Jul 13 16:15:24 2017 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/165afa46840b
\ No newline at end of file
+https://mbed.org/users/mbed_official/code/mbed/builds/22da6e220af6
\ No newline at end of file