Home
last modified time | relevance | path

Searched refs:freq (Results 1 – 25 of 235) sorted by relevance

12345678910

/AliOS-Things-master/hardware/chip/rtl872xd/hal/hal_test/pwm/
A Dpwm_test.c19 pwm_config_t testsace_config[PWM_TESTCASE_NUM] = {{.freq = 1000, .duty_cycle = 0.5f},
20 {.freq = 1000, .duty_cycle = 0.0f},
21 {.freq = 1000, .duty_cycle = 0.3f},
22 {.freq = 1000, .duty_cycle = 0.7f},
23 {.freq = 1000, .duty_cycle = 1.0f},
24 {.freq = 2000, .duty_cycle = 0.5f},
25 {.freq = 2000, .duty_cycle = 0.0f},
26 {.freq = 2000, .duty_cycle = 0.3f},
27 {.freq = 2000, .duty_cycle = 0.7f},
28 {.freq = 2000, .duty_cycle = 1.0f}};
[all …]
/AliOS-Things-master/components/py_engine/adapter/haas/
A Dmachine_pwm.c37 mp_uint_t freq; member
46 mp_uint_t ofreq = self->freq; in update_param()
50 .freq = newfreq, in update_param()
59 self->freq = newfreq; in update_param()
61 self->dev.config.freq = self->freq; in update_param()
94 mp_int_t freq = args[ARG_freq].u_int; in machine_pwm_init_helper() local
98 if (freq != -1) { in machine_pwm_init_helper()
100 dev->config.freq = freq; in machine_pwm_init_helper()
130 self->freq = PWFREQ; in machine_pwm_make_new()
133 self->dev.config.freq = self->freq; in machine_pwm_make_new()
[all …]
/AliOS-Things-master/components/py_engine/adapter/haas510/
A Dmachine_pwm.c60 mp_uint_t freq; member
68 mp_uint_t ofreq = self->freq; in update_param()
72 .freq = newfreq, in update_param()
81 self->freq = newfreq; in update_param()
83 self->dev.config.freq = self->freq; in update_param()
111 mp_int_t freq = args[ARG_freq].u_int; in machine_pwm_init_helper() local
115 if(freq != -1) { in machine_pwm_init_helper()
117 dev->config.freq = freq; in machine_pwm_init_helper()
146 self->freq = PWFREQ; in machine_pwm_make_new()
149 self->dev.config.freq = self->freq; in machine_pwm_make_new()
[all …]
/AliOS-Things-master/components/py_engine/adapter/haas600/
A Dmachine_pwm.c60 mp_uint_t freq; member
68 mp_uint_t ofreq = self->freq; in update_param()
72 .freq = newfreq, in update_param()
81 self->freq = newfreq; in update_param()
83 self->dev.config.freq = self->freq; in update_param()
111 mp_int_t freq = args[ARG_freq].u_int; in machine_pwm_init_helper() local
115 if(freq != -1) { in machine_pwm_init_helper()
117 dev->config.freq = freq; in machine_pwm_init_helper()
146 self->freq = PWFREQ; in machine_pwm_make_new()
149 self->dev.config.freq = self->freq; in machine_pwm_make_new()
[all …]
/AliOS-Things-master/components/uvoice/tools/
A Dgen_voice.py18 def gen_voice_freq(freq, times): argument
20 theta_inc = 2 * math.pi * freq / sample_rate
37 print('freq: %d' %freq)
58 freq = max_freq
59 print('max freq : %d' % freq)
61 freq = min_freq + (ord(c) - 33)*freq_inc
62 wave_data += gen_voice_freq(freq, 0.128)
63 freq = min_freq + (ord('f') - 33)*freq_inc
64 wave_data += gen_voice_freq(freq, 0.128)
65 freq = min_freq + (ord('c') - 33)*freq_inc
[all …]
/AliOS-Things-master/components/py_engine/tests/wipy/
A Dtimer.py20 ch = tim.channel(Timer.A, freq=5)
22 ch = tim.channel(Timer.B, freq=5)
26 ch = tim.channel(Timer.A, freq=50)
28 ch = tim.channel(Timer.B, freq=50)
54 ch = timer_test.tim.channel(Timer.A, freq=5)
55 print(ch.freq() == 5)
60 ch.freq(100)
65 ch.freq(1000)
90 ch = tim.channel(Timer.A, freq=5)
111 ch = tim.channel(TIMER_A | TIMER_B, freq=10)
[all …]
/AliOS-Things-master/components/py_engine/tests/haas/HaaS100/python-apps/driver/pwm/
A Dmain.py8 freq = pwm.getFreq() variable
10 print(freq)
13 freq = pwm.getFreq() variable
15 print(freq)
19 freq = pwm.getFreq() variable
21 print(freq)
/AliOS-Things-master/components/py_engine/tests/haas/HaaSEdu/python-apps/driver/pwm/
A Dmain.py8 freq = pwm.getFreq() variable
10 print(freq)
13 freq = pwm.getFreq() variable
15 print(freq)
19 freq = pwm.getFreq() variable
21 print(freq)
/AliOS-Things-master/solutions/javascript_demo/board/haas-edu-k1/
A Dpwm.js38 var freq = pwm1.get().freq variable
41 console.log('pwm: pwm default config freq is ' + freq + ' duty is ' + duty)
56 freq: 200, /* Configure 200 ~ 900 to make the buzzer work */
60 freq = pwm1.get().freq
63 console.log('pwm: pwm timer config freq is ' + freq + ' duty is ' + duty)
/AliOS-Things-master/solutions/javascript_demo/board/haas100/
A Dpwm.js56 var freq = pwm1.get().freq variable
59 console.log('pwm: pwm default config freq is ' + freq + ' duty is ' + duty)
73 freq: 100000,
77 freq = pwm1.get().freq
80 console.log('pwm: pwm timer config freq is ' + freq + ' duty is ' + duty)
/AliOS-Things-master/hardware/chip/haas1000/drivers/platform/hal/
A Dhal_cmu.h199 int hal_cmu_uart0_set_freq(enum HAL_CMU_PERIPH_FREQ_T freq);
201 int hal_cmu_uart1_set_freq(enum HAL_CMU_PERIPH_FREQ_T freq);
203 int hal_cmu_uart2_set_freq(enum HAL_CMU_PERIPH_FREQ_T freq);
205 int hal_cmu_spi_set_freq(enum HAL_CMU_PERIPH_FREQ_T freq);
207 int hal_cmu_slcd_set_freq(enum HAL_CMU_PERIPH_FREQ_T freq);
209 int hal_cmu_sdio_set_freq(enum HAL_CMU_PERIPH_FREQ_T freq);
213 int hal_cmu_i2c_set_freq(enum HAL_CMU_PERIPH_FREQ_T freq);
215 int hal_cmu_ispi_set_freq(enum HAL_CMU_PERIPH_FREQ_T freq);
219 int hal_cmu_flash_set_freq(enum HAL_CMU_FREQ_T freq);
221 int hal_cmu_mem_set_freq(enum HAL_CMU_FREQ_T freq);
[all …]
/AliOS-Things-master/components/drivers/peripheral/pwm/example/
A Dpwm_example.c14 int vfs_pwm_test(int channel, int freq, unsigned int period_s) in vfs_pwm_test() argument
30 ret = ioctl(fd, IOC_PWM_FREQ, (unsigned long)freq); in vfs_pwm_test()
31 printf("set pwm's freq to %d %s, ret:%d\r\n", freq, ret ? "fail" : "succeed", ret); in vfs_pwm_test()
54 int freq; in pwm_output_test() local
58 freq = argc > 2 ? atoi(argv[2]) : 100; in pwm_output_test()
63 ret = vfs_pwm_test(channel, freq, period_s); in pwm_output_test()
/AliOS-Things-master/components/SDL2/test/
A Dtestautomation_audio.c526 spec1.freq = 22050; in audio_buildAudioCVT()
535 spec1.freq = 22050; in audio_buildAudioCVT()
538 spec2.freq = 44100; in audio_buildAudioCVT()
593 spec1.freq = 22050; in audio_buildAudioCVTNegative()
596 spec2.freq = 44100; in audio_buildAudioCVTNegative()
619 spec1.freq = 22050; in audio_buildAudioCVTNegative()
622 spec2.freq = 44100; in audio_buildAudioCVTNegative()
639 spec1.freq = 0; in audio_buildAudioCVTNegative()
651 spec2.freq = 0; in audio_buildAudioCVTNegative()
716 desired.freq=22050; in audio_openCloseAndGetAudioStatus()
[all …]
/AliOS-Things-master/components/py_engine/tests/extmod/
A Dmachine_timer.py12 t = machine.Timer(freq=1)
19 t = machine.Timer(freq=1)
20 t2 = machine.Timer(freq=1)
25 t = machine.Timer(freq=1)
26 t2 = machine.Timer(freq=1)
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/hardware/pwm/
A Dmodule_pwm.c17 int freq; member
45 amp_debug(MOD_STR, "%s:%d:%d:%f\n", id, pwm_device->port, pwm_device->config.freq, in native_pwm_open()
105 pwm_config.freq = (int)(pwm_device->config.freq); in native_pwm_getConfig()
109 duk_push_int(ctx, pwm_config.freq); in native_pwm_getConfig()
125 int32_t freq; in native_pwm_setConfig() local
144 freq = duk_get_number(ctx, -2); in native_pwm_setConfig()
148 pwm_device->config.freq = freq; in native_pwm_setConfig()
/AliOS-Things-master/components/py_engine/tests/pyb/
A Dtimer.py16 tim = Timer(2, freq=100)
17 print(tim.freq())
18 tim.freq(0.001)
19 print("{:.3f}".format(tim.freq()))
A Dtimer_callback.py30 tim = Timer(1, freq=100, callback=cb1)
36 tim = Timer(2, freq=100, callback=cb2)
43 tim.init(freq=100)
50 tim.init(freq=100)
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/utils/
A Dquant_levels_utils.c29 int freq[NUM_SYMBOLS] = { 0 }; in QuantizeLevels() local
54 num_levels_in += (freq[data[n]] == 0); in QuantizeLevels()
57 ++freq[data[n]]; in QuantizeLevels()
87 if (freq[s] > 0) { in QuantizeLevels()
88 q_sum[slot] += s * freq[s]; in QuantizeLevels()
89 q_count[slot] += freq[s]; in QuantizeLevels()
108 err += freq[s] * error * error; in QuantizeLevels()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/hardware/pwm/
A Dmodule_pwm.c21 int freq; member
56 amp_debug(MOD_STR, "%s:%d:%d:%f\n", id, pwm_device->port, pwm_device->config.freq, in native_pwm_open()
126 pwm_config.freq = (int)(pwm_device->config.freq); in native_pwm_getConfig()
129 JS_SetPropertyStr(ctx, t, "freq", JS_NewInt32(ctx, pwm_config.freq)); in native_pwm_getConfig()
142 int32_t freq; in native_pwm_setConfig() local
173 ret = JS_ToInt32(ctx, &freq, val); in native_pwm_setConfig()
195 pwm_device->config.freq = freq; in native_pwm_setConfig()
205 para.freq = pwm_device->config.freq; in native_pwm_setConfig()
/AliOS-Things-master/components/amp/example-js/
A Dpwm.js15 var freq = pwm1.getOption().freq variable
18 console.log('pwm: pwm default config freq is ' + freq + ' duty is ' + duty)
32 freq: 100,
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/examples/
A Dstopwatch.h30 LARGE_INTEGER freq; in StopwatchReadAndReset() local
33 if (!QueryPerformanceFrequency(&freq)) in StopwatchReadAndReset()
35 if (freq.QuadPart == 0) in StopwatchReadAndReset()
37 return (watch->QuadPart - old_value.QuadPart) / (double)freq.QuadPart; in StopwatchReadAndReset()
/AliOS-Things-master/hardware/chip/rtl872xd/csi_driver/adc/
A Dadc.c111 uint32_t freq = 0; in csi_adc_freq_div() local
116 freq = (uint32_t)(2000000 / 12); in csi_adc_freq_div()
120 freq = (uint32_t)(2000000 / 16); in csi_adc_freq_div()
124 freq = (uint32_t)(2000000 / 32); in csi_adc_freq_div()
128 freq = (uint32_t)(2000000 / 64); in csi_adc_freq_div()
132 freq = (uint32_t)(2000000 / 12); in csi_adc_freq_div()
137 return freq; in csi_adc_freq_div()
247 adc_csi_dev.aos_adc.freq = 2000000 / 12; in adc_csi_init()
/AliOS-Things-master/solutions/javascript_demo/board/haas600/
A Dpwm.js38 var freq = pwm1.get().freq variable
41 console.log('pwm: pwm default config freq is ' + freq + ' duty is ' + duty)
55 freq: 100,
/AliOS-Things-master/hardware/chip/haas1000/drivers/platform/drivers/ana/haas1000/
A Dpll_haas1000.h13 void usb_pll_config(uint64_t freq);
17 void dsp_pll_config(uint64_t freq);
19 void bb_pll_config(uint64_t freq);
/AliOS-Things-master/components/SDL2/src/audio/sun/
A DSDL_sunaudio.c115 incr = this->spec.freq / 8; in SUNAUDIO_PlayDevice()
224 desired_freq = this->spec.freq; in SUNAUDIO_OpenDevice()
262 info.play.sample_rate = this->spec.freq; in SUNAUDIO_OpenDevice()
278 this->spec.freq = info.play.sample_rate; in SUNAUDIO_OpenDevice()
294 this->spec.freq = 8000; in SUNAUDIO_OpenDevice()
310 this->spec.freq = desired_freq; in SUNAUDIO_OpenDevice()
312 (this->spec.freq / 8); in SUNAUDIO_OpenDevice()
321 this->hidden->frequency = this->spec.freq / 1000; in SUNAUDIO_OpenDevice()
327 this->spec.format, this->spec.channels, this->spec.freq); in SUNAUDIO_OpenDevice()

Completed in 34 milliseconds

12345678910