mirror of https://github.com/ARMmbed/mbed-os.git
commit
5a8a598773
|
@ -190,6 +190,7 @@ TEST_F(Test_LoRaPHYCN470, rx_config)
|
||||||
TEST_F(Test_LoRaPHYCN470, tx_config)
|
TEST_F(Test_LoRaPHYCN470, tx_config)
|
||||||
{
|
{
|
||||||
tx_config_params_t p;
|
tx_config_params_t p;
|
||||||
|
memset(&p, 0, sizeof(p));
|
||||||
int8_t tx = 0;
|
int8_t tx = 0;
|
||||||
lorawan_time_t time = 0;
|
lorawan_time_t time = 0;
|
||||||
p.tx_power = 9;
|
p.tx_power = 9;
|
||||||
|
|
|
@ -63,18 +63,21 @@ void my_callback()
|
||||||
TEST_F(Test_LoRaWANTimer, init)
|
TEST_F(Test_LoRaWANTimer, init)
|
||||||
{
|
{
|
||||||
timer_event_t ev;
|
timer_event_t ev;
|
||||||
|
memset(&ev, 0, sizeof(ev));
|
||||||
object->init(ev, my_callback);
|
object->init(ev, my_callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(Test_LoRaWANTimer, start)
|
TEST_F(Test_LoRaWANTimer, start)
|
||||||
{
|
{
|
||||||
timer_event_t ev;
|
timer_event_t ev;
|
||||||
|
memset(&ev, 0, sizeof(ev));
|
||||||
object->start(ev, 10);
|
object->start(ev, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(Test_LoRaWANTimer, stop)
|
TEST_F(Test_LoRaWANTimer, stop)
|
||||||
{
|
{
|
||||||
timer_event_t ev;
|
timer_event_t ev;
|
||||||
|
memset(&ev, 0, sizeof(ev));
|
||||||
ev.timer_id = 4;
|
ev.timer_id = 4;
|
||||||
object->stop(ev);
|
object->stop(ev);
|
||||||
EXPECT_TRUE(ev.timer_id == 0);
|
EXPECT_TRUE(ev.timer_id == 0);
|
||||||
|
|
Loading…
Reference in New Issue