mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 14:33:52 +01:00
msp430 lpm stub
This commit is contained in:
parent
6b8d7cb3fc
commit
437c0ee5c9
@ -125,8 +125,6 @@ inline void dINT(void)
|
||||
dint();
|
||||
}
|
||||
|
||||
#define lpm_set(...)
|
||||
|
||||
void thread_yield(void);
|
||||
|
||||
|
||||
|
||||
26
cpu/msp430-common/lpm_cpu.c
Normal file
26
cpu/msp430-common/lpm_cpu.c
Normal file
@ -0,0 +1,26 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include "lpm.h"
|
||||
|
||||
/* TODO: implement */
|
||||
enum lpm_mode lpm_set(enum lpm_mode target)
|
||||
{
|
||||
enum lpm_mode last_mode;
|
||||
|
||||
/* dummy value as lpm is not currently implemented */
|
||||
last_mode = LPM_ON;
|
||||
|
||||
return last_mode;
|
||||
}
|
||||
|
||||
|
||||
/* TODO: implement */
|
||||
enum lpm_mode lpm_get()
|
||||
{
|
||||
enum lpm_mode current_mode;
|
||||
|
||||
/* dummy value as lpm is not currently implemented */
|
||||
current_mode = LPM_ON;
|
||||
|
||||
return current_mode;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user