센서보드 RF IRQ 테스트 중

Fork of stm-spirit1-rf-driver by ST

Files at this revision

API Documentation at this revision

Comitter:
Wolfgang Betz
Date:
Fri Apr 28 14:11:53 2017 +0200
Parent:
56:f9d8d8bb503f
Child:
58:4208689e447e
Commit message:
`UnlockedSPI` is used to be able to call SPI functions from IRQ conetxt

Changed in this revision

source/SimpleSpirit1.cpp Show annotated file Show diff for this revision Revisions of this file
stm-spirit1-rf-driver/SimpleSpirit1.h Show annotated file Show diff for this revision Revisions of this file
--- a/source/SimpleSpirit1.cpp	Fri Apr 07 10:12:00 2017 +0200
+++ b/source/SimpleSpirit1.cpp	Fri Apr 28 14:11:53 2017 +0200
@@ -438,6 +438,7 @@
 }
 
 /** Spirit Irq Callback **/
+/* betzw - TODO: use threaded interrupt handling when `MBED_CONF_RTOS_PRESENT` is defined (see `atmel-rf-driver`) */
 void SimpleSpirit1::IrqHandler() {
 	st_lib_spirit_irqs x_irq_status;
 
--- a/stm-spirit1-rf-driver/SimpleSpirit1.h	Fri Apr 07 10:12:00 2017 +0200
+++ b/stm-spirit1-rf-driver/SimpleSpirit1.h	Fri Apr 28 14:11:53 2017 +0200
@@ -39,7 +39,7 @@
 extern "C" void SpiritManagementSetFrequencyBase(uint32_t);
 
 
-/*** UnlockedSPI for Performance (due to singleton) ***/
+/*** UnlockedSPI for Usage in IRQ context ***/
 class UnlockedSPI : public SPI {
 public:
     UnlockedSPI(PinName mosi, PinName miso, PinName sclk) :