
Serial port
Dependencies: BSP_DISCO_F746NG
Revision 0:46ab42e88365, committed 2020-11-13
- Comitter:
- iliatumash
- Date:
- Fri Nov 13 17:37:03 2020 +0000
- Commit message:
- Uloha_6;
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Fri Nov 13 17:37:03 2020 +0000 @@ -0,0 +1,2 @@ +BUILD +mbed-os/
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BSP_DISCO_F746NG.lib Fri Nov 13 17:37:03 2020 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/teams/ST/code/BSP_DISCO_F746NG/#85dbcff443aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Nov 13 17:37:03 2020 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" + +InterruptIn sw(USER_BUTTON); +EventQueue queue(32 * EVENTS_EVENT_SIZE); +void rise_handler(void) +{ + queue.call(printf, "Vypis do serioveho portu\n"); + +} + +Thread thread; +int main() +{ + thread.start(callback(&queue, &EventQueue::dispatch_forever)); + sw.rise(rise_handler); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Fri Nov 13 17:37:03 2020 +0000 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os/#699372421a3b388fe568e9be85b1a985749a438f