Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
17 changed files
with
239 additions
and
48 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
/* Bootloader */ | ||
mbed-os/features/FEATURE_BOOTLOADER/* | ||
|
||
/* BLE */ | ||
mbed-os/connectivity/drivers/ble/* | ||
mbed-os/connectivity/FEATURE_BLE/* | ||
|
||
/* Cellular */ | ||
mbed-os/connectivity/cellular/* | ||
mbed-os/connectivity/drivers/cellular/* | ||
mbed-os/connectivity/netsocket/source/Cellular*.* | ||
|
||
/* Device Key */ | ||
mbed-os/drivers/device_key/* | ||
|
||
/* Experimental */ | ||
mbed-os/platform/FEATURE_EXPERIMENTAL_API/* | ||
|
||
/* FPGA */ | ||
mbed-os/features/frameworks/COMPONENT_FPGA_CI_TEST_SHIELD/* | ||
|
||
/* Greentea client */ | ||
mbed-os/features/frameworks/greentea-client/* | ||
|
||
/* LORAWAN */ | ||
mbed-os/connectivity/drivers/lora/* | ||
mbed-os/connectivity/lorawan/* | ||
|
||
/* LWIP */ | ||
mbed-os/connectivity/drivers/emac/* | ||
mbed-os/connectivity/lwipstack/* | ||
|
||
/* Mbed-client-cli */ | ||
mbed-os/features/frameworks/mbed-client-cli/* | ||
|
||
/* MBED TLS */ | ||
mbed-os/connectivity/drivers/mbedtls/* | ||
mbed-os/connectivity/mbedtls/* | ||
|
||
/* Nanostack */ | ||
mbed-os/connectivity/drivers/emac/* | ||
mbed-os/connectivity/libraries/mbed-coap/* | ||
mbed-os/connectivity/libraries/nanostack-libservice/* | ||
mbed-os/connectivity/libraries/ppp/* | ||
mbed-os/connectivity/nanostack/* | ||
|
||
/* Netsocket */ | ||
mbed-os/connectivity/drivers/emac/* | ||
mbed-os/connectivity/netsocket/* | ||
mbed-os/connectivity/libraries/mbed-coap/* | ||
mbed-os/connectivity/libraries/ppp/* | ||
|
||
/* NFC */ | ||
mbed-os/connectivity/drivers/nfc/* | ||
mbed-os/connectivity/nfc/* | ||
|
||
/* RF */ | ||
/*mbed-os/connectivity/drivers/802.15.4_RF/* */ | ||
|
||
/* Storage */ | ||
mbed-os/storage/filesystem/* | ||
mbed-os/storage/kvstore/* | ||
mbed-os/storage/platform/* | ||
|
||
/* Tests */ | ||
mbed-os/platform/tests/* | ||
mbed-os/TEST_APPS/* | ||
mbed-os/TESTS/* | ||
mbed-os/UNITTESTS/* | ||
|
||
/* Unity */ | ||
mbed-os/features/frameworks/unity/* | ||
|
||
/* Utest */ | ||
mbed-os/features/frameworks/utest/* | ||
|
||
/* USB */ | ||
mbed-os/drivers/usb/source/* | ||
mbed-os/hal/usb/source/* | ||
mbed-os/hal/usb/TARGET_Templates/* | ||
|
||
/* WiFi */ | ||
mbed-os/connectivity/drivers/wifi/* |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
/* Bootloader */ | ||
mbed-os/features/FEATURE_BOOTLOADER/* | ||
|
||
/* BLE */ | ||
mbed-os/connectivity/drivers/ble/* | ||
mbed-os/connectivity/FEATURE_BLE/* | ||
|
||
/* Cellular */ | ||
mbed-os/connectivity/cellular/* | ||
mbed-os/connectivity/drivers/cellular/* | ||
mbed-os/connectivity/netsocket/source/Cellular*.* | ||
|
||
/* Device Key */ | ||
mbed-os/drivers/device_key/* | ||
|
||
/* Experimental */ | ||
mbed-os/platform/FEATURE_EXPERIMENTAL_API/* | ||
|
||
/* FPGA */ | ||
mbed-os/features/frameworks/COMPONENT_FPGA_CI_TEST_SHIELD/* | ||
|
||
/* Greentea client */ | ||
mbed-os/features/frameworks/greentea-client/* | ||
|
||
/* LORAWAN */ | ||
mbed-os/connectivity/drivers/lora/* | ||
mbed-os/connectivity/lorawan/* | ||
|
||
/* LWIP */ | ||
mbed-os/connectivity/drivers/emac/* | ||
mbed-os/connectivity/lwipstack/* | ||
|
||
/* Mbed-client-cli */ | ||
mbed-os/features/frameworks/mbed-client-cli/* | ||
|
||
/* MBED TLS */ | ||
mbed-os/connectivity/drivers/mbedtls/* | ||
mbed-os/connectivity/mbedtls/* | ||
|
||
/* Nanostack */ | ||
mbed-os/connectivity/drivers/emac/* | ||
mbed-os/connectivity/libraries/mbed-coap/* | ||
mbed-os/connectivity/libraries/nanostack-libservice/* | ||
mbed-os/connectivity/libraries/ppp/* | ||
mbed-os/connectivity/nanostack/* | ||
|
||
/* Netsocket */ | ||
mbed-os/connectivity/drivers/emac/* | ||
mbed-os/connectivity/netsocket/* | ||
mbed-os/connectivity/libraries/mbed-coap/* | ||
mbed-os/connectivity/libraries/ppp/* | ||
|
||
/* NFC */ | ||
mbed-os/connectivity/drivers/nfc/* | ||
mbed-os/connectivity/nfc/* | ||
|
||
/* RF */ | ||
/*mbed-os/connectivity/drivers/802.15.4_RF/* */ | ||
|
||
/* Storage */ | ||
mbed-os/storage/filesystem/* | ||
mbed-os/storage/kvstore/* | ||
mbed-os/storage/platform/* | ||
|
||
/* Tests */ | ||
mbed-os/platform/tests/* | ||
mbed-os/TEST_APPS/* | ||
mbed-os/TESTS/* | ||
mbed-os/UNITTESTS/* | ||
|
||
/* Unity */ | ||
mbed-os/features/frameworks/unity/* | ||
|
||
/* Utest */ | ||
mbed-os/features/frameworks/utest/* | ||
|
||
/* USB */ | ||
mbed-os/drivers/usb/source/* | ||
mbed-os/hal/usb/source/* | ||
mbed-os/hal/usb/TARGET_Templates/* | ||
|
||
/* WiFi */ | ||
mbed-os/connectivity/drivers/wifi/* |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#include <mbed.h> | ||
|
||
|
||
DigitalOut led1(LED1); | ||
DigitalOut led2(LED2); | ||
DigitalOut led3(LED3); | ||
|
||
// Interrupt Handler | ||
InterruptIn theButton(BUTTON1); | ||
|
||
//Create an empty thread object ready to attach a function | ||
Thread thread; | ||
Thread thread2; | ||
|
||
//Function to deal with blinking the second LED | ||
void led2_thread() { | ||
//Loop forever | ||
while (true) { | ||
led2 = !led2; | ||
thread_sleep_for(5000); | ||
|
||
// Set a Signal to blink LED3 | ||
thread2.flags_set(0x42); | ||
} | ||
} | ||
|
||
void led3_thread() { | ||
//Loop forever. | ||
while (1){ | ||
//With for the Signal before continuing | ||
ThisThread::flags_wait_any(0x42); | ||
for (int x=0; x<5; x++) { | ||
led3 = !led3; | ||
thread_sleep_for(100); | ||
} | ||
} | ||
} | ||
|
||
void buttonHandler(){ | ||
// Button handler interrupt, also sets flags. | ||
thread2.flags_set(0x42); | ||
} | ||
|
||
//Main Program | ||
int main() { | ||
|
||
//Bind the interupt to a function | ||
theButton.rise(&buttonHandler); | ||
|
||
//Attach the function to the Thread then Start it | ||
thread.start(led2_thread); | ||
thread2.start(led3_thread); | ||
while (true) { | ||
led1 = !led1; | ||
thread_sleep_for(500); | ||
} | ||
} |
File renamed without changes.