mirror of
https://github.com/elua/elua.git
synced 2025-01-08 20:56:17 +08:00
da35498b02
channel. Smoothing support (rolling average) has been added. adcscope has been updated to reflect these changes, and show output from 4 channels at once. - fix for typo in stm32/platform.c
18 lines
510 B
C
18 lines
510 B
C
// Common platform functions
|
|
|
|
#ifndef __COMMON_H__
|
|
#define __COMMON_H__
|
|
|
|
// Virtual timers data
|
|
#define VTMR_FIRST_ID ( 32 )
|
|
#define VTMR_GET_ID( x ) ( ( x ) - VTMR_FIRST_ID )
|
|
#define TIMER_IS_VIRTUAL( x ) ( ( VTMR_NUM_TIMERS > 0 ) && ( ( x ) >= VTMR_FIRST_ID ) && ( ( x ) < VTMR_NUM_TIMERS + VTMR_FIRST_ID ) )
|
|
|
|
// Functions exported by the common platform layer
|
|
void cmn_platform_init();
|
|
void cmn_virtual_timer_cb();
|
|
|
|
unsigned int intlog2( unsigned int v );
|
|
|
|
#endif // #ifndef __COMMON_H__
|