diff options
| author | Xian Wu <[email protected]> | 2023-12-27 18:41:52 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-27 18:41:52 +0800 |
| commit | 6360253c129afcb91d34770cb253eea8d837e66a (patch) | |
| tree | 065167006028882ff4d57208252d1e0ce9f3b4e4 /bsp/synwit/libraries/SWM341_CSL/SWM341_StdPeriph_Driver/SWM341_sleep.h | |
| parent | 7b4592c2d15bf90c1958bdbc840ea4df3d97cd96 (diff) | |
Synwit MCU 采用新的 BSP 框架,将 BSP 与 libraries 分离 (#8432)
Diffstat (limited to 'bsp/synwit/libraries/SWM341_CSL/SWM341_StdPeriph_Driver/SWM341_sleep.h')
| -rw-r--r-- | bsp/synwit/libraries/SWM341_CSL/SWM341_StdPeriph_Driver/SWM341_sleep.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bsp/synwit/libraries/SWM341_CSL/SWM341_StdPeriph_Driver/SWM341_sleep.h b/bsp/synwit/libraries/SWM341_CSL/SWM341_StdPeriph_Driver/SWM341_sleep.h new file mode 100644 index 0000000000..8bae2895cb --- /dev/null +++ b/bsp/synwit/libraries/SWM341_CSL/SWM341_StdPeriph_Driver/SWM341_sleep.h @@ -0,0 +1,18 @@ +#ifndef __SWM341_SLEEP_H__ +#define __SWM341_SLEEP_H__ + + +#if defined ( __CC_ARM ) + +__asm void EnterSleepMode(void); +__asm void EnterStopMode(void); + +#elif defined ( __ICCARM__ ) + +__ramfunc void EnterSleepMode(void); +__ramfunc void EnterStopMode(void); + +#endif + + +#endif //__SWM341_SLEEP_H__ |
