only:small-can-board
This commit is contained in:
parent
f9bd84d88f
commit
bb06f16b98
|
@ -29,6 +29,7 @@ DDEFS += -DEFI_MAP_AVERAGING=FALSE
|
|||
DDEFS += -DEFI_HPFP=FALSE
|
||||
DDEFS += -DEFI_TOOTH_LOGGER=FALSE
|
||||
DDEFS += -DRAM_UNUSED_SIZE=100
|
||||
DDEFS += -DPWM_FREQ_PWM=10000
|
||||
|
||||
DDEFS += -DHW_SMALL_CAN_BOARD=1
|
||||
DDEFS += -DHELLEN_BOARD_ID_DEBUG
|
||||
|
|
|
@ -248,6 +248,10 @@ static P luaL_checkPwmIndex(lua_State* l, int pos) {
|
|||
return { pwms[channel], channel };
|
||||
}
|
||||
|
||||
#ifndef PWM_FREQ_PWM
|
||||
#define PWM_FREQ_PWM 1000
|
||||
#endif
|
||||
|
||||
static int lua_startPwm(lua_State* l) {
|
||||
auto p = luaL_checkPwmIndex(l, 1);
|
||||
auto freq = luaL_checknumber(l, 2);
|
||||
|
@ -259,7 +263,7 @@ static int lua_startPwm(lua_State* l) {
|
|||
}
|
||||
|
||||
// clamp to 1..1000 hz
|
||||
freq = clampF(1, freq, 1000);
|
||||
// freq = clampF(1, freq, 1000);
|
||||
|
||||
startSimplePwmExt(
|
||||
&p.pwm, "lua", &engine->executor,
|
||||
|
|
Loading…
Reference in New Issue