Home
last modified time | relevance | path

Searched refs:cfg (Results 1 – 25 of 140) sorted by relevance

123456

/AliOS-Things-master/hardware/chip/haas1000/csi/
A Duart.c52 cfg.baud = 50; in tty_uart_startup()
55 cfg.baud = 75; in tty_uart_startup()
58 cfg.baud = 110; in tty_uart_startup()
61 cfg.baud = 134; in tty_uart_startup()
64 cfg.baud = 150; in tty_uart_startup()
67 cfg.baud = 200; in tty_uart_startup()
70 cfg.baud = 300; in tty_uart_startup()
73 cfg.baud = 600; in tty_uart_startup()
76 cfg.baud = 1200; in tty_uart_startup()
195 cfg.dma_rx = true; in tty_uart_startup()
[all …]
A Dgpio.c48 cfg.volt = HAL_IOMUX_PIN_VOLTAGE_VIO; in csi_gpio_dir()
50 hal_iomux_init(&cfg, 1); in csi_gpio_dir()
52 hal_gpio_pin_set_dir(cfg.pin, d, 0); in csi_gpio_dir()
100 hal_iomux_init(&cfg, 1); in csi_gpio_mode()
155 struct HAL_GPIO_IRQ_CFG_T cfg; in csi_gpio_irq_enable() local
158 cfg.irq_enable = true; in csi_gpio_irq_enable()
159 cfg.irq_debounce = true; in csi_gpio_irq_enable()
166 cfg.irq_enable = false; in csi_gpio_irq_enable()
167 cfg.irq_debounce = false; in csi_gpio_irq_enable()
169 cfg.irq_handler = NULL; in csi_gpio_irq_enable()
[all …]
A Dpwm.c36 struct HAL_PWM_CFG_T cfg; in csi_pwm_out_config() local
42 cfg.freq = 1000000UL / period_us; in csi_pwm_out_config()
43 cfg.ratio = (((uint64_t)pulse_width_us) * 100 / period_us); in csi_pwm_out_config()
44 cfg.inv = polarity; in csi_pwm_out_config()
45 cfg.sleep_on = false; in csi_pwm_out_config()
46 hal_pwm_enable(channel, &cfg); in csi_pwm_out_config()
/AliOS-Things-master/components/ble_host/bt_host/host/
A Dgatt.c268 memset(cfg, 0, sizeof(*cfg)); in clear_sc_cfg()
334 memset(&cfg->data, 0, sizeof(cfg->data)); in sc_reset()
386 if (!(cfg->data.start || cfg->data.end)) { in sc_save()
458 memset(cfg->data, 0, sizeof(cfg->data)); in clear_cf_cfg()
924 if (cfg && CF_ROBUST_CACHING(cfg)) { in sc_indicate_rsp()
1934 sc_save(cfg->id, &cfg->peer, in notify_cb()
2209 if (cfg && CF_ROBUST_CACHING(cfg)) { in sc_restore_rsp()
2235 cfg->data.start, cfg->data.end); in sc_restore()
4340 if (!cfg || !CF_ROBUST_CACHING(cfg)) { in bt_gatt_change_aware()
4612 memset(cfg, 0, sizeof(*cfg)); in sc_set()
[all …]
/AliOS-Things-master/components/ulog/src/
A Dulog_fs_cfg.c28 ulog_cfg_t *cfg[ulog_cfg_para_cnt]; member
41 static void parser_cfg_file(const char* cfg);
90 … p->cfg[0]==NULL?"":p->cfg[0]->ulog_cfg_val,p->cfg[1]==NULL?"":p->cfg[1]->ulog_cfg_val))) { in aos_get_ulog_list()
152 memset(p->cfg[i], 0, sizeof(ulog_cfg_t)); in update_mm_cfg()
171 memset(p->next->cfg[i], 0, sizeof(ulog_cfg_t)); in update_mm_cfg()
224 if(p->cfg[i]!=NULL) { in load_cfg_2_mm()
278 if (p->cfg[i] != NULL) { in cfg_mm_2_file()
314 static void parser_cfg_file(const char* cfg) in parser_cfg_file() argument
322 if (NULL == cfg) { in parser_cfg_file()
326 root = cJSON_Parse(cfg); in parser_cfg_file()
[all …]
/AliOS-Things-master/components/drivers/peripheral/gpio/src/
A Dgpioc_csi.c38 if (cfg == AOS_GPIO_INPUT_CFG_HI) in set_input_cfg()
40 else if (cfg == AOS_GPIO_INPUT_CFG_PU) in set_input_cfg()
42 else if (cfg == AOS_GPIO_INPUT_CFG_PD) in set_input_cfg()
79 if (cfg == AOS_GPIO_OUTPUT_CFG_PP) in set_output_cfg()
81 else if (cfg == AOS_GPIO_OUTPUT_CFG_ODNP) in set_output_cfg()
83 else if (cfg == AOS_GPIO_OUTPUT_CFG_ODPU) in set_output_cfg()
124 if (cfg == AOS_GPIO_INPUT_CFG_DEFAULT) { in gpioc_csi_set_mode()
125 cfg = gpioc_csi->default_input_cfg; in gpioc_csi_set_mode()
127 mode |= cfg; in gpioc_csi_set_mode()
153 cfg = gpioc_csi->default_output_cfg; in gpioc_csi_set_mode()
[all …]
/AliOS-Things-master/components/py_engine/engine/lib/littlefs/
A Dlfs2.c2467 file->cfg = cfg;
3454 lfs2->cfg = cfg;
4869 #define LFS2_LOCK(cfg) cfg->lock(cfg) argument
4870 #define LFS2_UNLOCK(cfg) cfg->unlock(cfg) argument
4895 cfg->read_size, cfg->prog_size, cfg->block_size, cfg->block_count,
4898 cfg->name_max, cfg->file_max, cfg->attr_max);
4925 cfg->read_size, cfg->prog_size, cfg->block_size, cfg->block_count,
4928 cfg->name_max, cfg->file_max, cfg->attr_max);
5073 (void*)cfg, cfg->buffer, (void*)cfg->attrs, cfg->attr_count);
5380 cfg->read_size, cfg->prog_size, cfg->block_size, cfg->block_count,
[all …]
A Dlfs1.c47 if (off % lfs1->cfg->read_size == 0 && size >= lfs1->cfg->read_size) { in lfs1_cache_read()
50 int err = lfs1->cfg->read(lfs1->cfg, block, off, data, diff); in lfs1_cache_read()
64 int err = lfs1->cfg->read(lfs1->cfg, rcache->block, in lfs1_cache_read()
128 int err = lfs1->cfg->prog(lfs1->cfg, pcache->block, in lfs1_cache_flush()
247 return lfs1->cfg->erase(lfs1->cfg, block); in lfs1_bd_erase()
258 return lfs1->cfg->sync(lfs1->cfg); in lfs1_bd_sync()
278 + lfs1->cfg->block_count) % lfs1->cfg->block_count; in lfs1_alloc_lookahead()
1336 file->cfg = cfg; in lfs1_file_opencfg()
1355 if (file->cfg && file->cfg->buffer) { in lfs1_file_opencfg()
1405 if (!(file->cfg && file->cfg->buffer) && !lfs1->cfg->file_buffer) { in lfs1_file_close()
[all …]
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/
A Dcfg_srv.c780 if (!cfg) { in beacon_set()
834 if (!cfg) { in default_ttl_set()
895 if (!cfg) { in gatt_proxy_set()
973 if (!cfg) { in net_transmit_set()
1017 if (!cfg) { in relay_set()
2697 if (!cfg) { in friend_set()
3258 if (!cfg) { in bt_mesh_cfg_srv_init()
3365 if (src != cfg->hb_sub.src || dst != cfg->hb_sub.dst) { in bt_mesh_heartbeat()
3375 cfg->hb_sub.min_hops = MIN(cfg->hb_sub.min_hops, hops); in bt_mesh_heartbeat()
3376 cfg->hb_sub.max_hops = MAX(cfg->hb_sub.max_hops, hops); in bt_mesh_heartbeat()
[all …]
A Dsettings.c138 struct cfg_val cfg; member
606 if (!cfg) { in cfg_set()
616 err = mesh_x_set(read_cb, cb_arg, &stored_cfg.cfg, sizeof(stored_cfg.cfg)); in cfg_set()
985 cfg->net_transmit = stored_cfg.cfg.net_transmit; in mesh_commit()
986 cfg->relay = stored_cfg.cfg.relay; in mesh_commit()
987 cfg->relay_retransmit = stored_cfg.cfg.relay_retransmit; in mesh_commit()
988 cfg->beacon = stored_cfg.cfg.beacon; in mesh_commit()
989 cfg->gatt_proxy = stored_cfg.cfg.gatt_proxy; in mesh_commit()
990 cfg->frnd = stored_cfg.cfg.frnd; in mesh_commit()
991 cfg->default_ttl = stored_cfg.cfg.default_ttl; in mesh_commit()
[all …]
/AliOS-Things-master/hardware/chip/haas1000/drivers/platform/hal/
A Dhal_sec_eng.h108 enum HAL_SE_RET_T hal_se_aes_encrypt(const struct HAL_SE_AES_CFG_T *cfg);
110 enum HAL_SE_RET_T hal_se_aes_decrypt(const struct HAL_SE_AES_CFG_T *cfg);
118 enum HAL_SE_RET_T hal_se_hash_update(const struct HAL_SE_HASH_CFG_T *cfg);
120 enum HAL_SE_RET_T hal_se_hash_final(const struct HAL_SE_HASH_CFG_T *cfg, uint64_t total_in_len);
122 enum HAL_SE_RET_T hal_se_hash(enum HAL_SE_HASH_MODE_T mode, const struct HAL_SE_HASH_CFG_T *cfg);
132 enum HAL_SE_RET_T hal_se_hmac_update(const struct HAL_SE_HASH_CFG_T *cfg);
134 enum HAL_SE_RET_T hal_se_hmac_final(const struct HAL_SE_HASH_CFG_T *cfg, uint64_t total_in_len);
136 …m HAL_SE_HASH_MODE_T mode, const void *key, uint32_t key_len, const struct HAL_SE_HASH_CFG_T *cfg);
A Dhal_spi.h52 int hal_spi_init_ctrl(const struct HAL_SPI_CFG_T *cfg, struct HAL_SPI_CTRL_T *ctrl);
58 int hal_ispi_rom_open(const struct HAL_SPI_CFG_T *cfg);
68 int hal_spiphy_rom_open(const struct HAL_SPI_CFG_T *cfg);
82 int hal_ispi_open(const struct HAL_SPI_CFG_T *cfg);
106 int hal_spi_open(const struct HAL_SPI_CFG_T *cfg);
144 int hal_spilcd_open(const struct HAL_SPI_CFG_T *cfg);
176 int hal_spiphy_open(const struct HAL_SPI_CFG_T *cfg);
192 int hal_spidpd_open(const struct HAL_SPI_CFG_T *cfg);
A Dhal_dma.h187 const struct HAL_DMA_CH_CFG_T *cfg,
192 const struct HAL_DMA_CH_CFG_T *cfg);
195 const struct HAL_DMA_CH_CFG_T *cfg,
199 enum HAL_DMA_RET_T hal_dma_start(const struct HAL_DMA_CH_CFG_T *cfg);
234 const struct HAL_DMA_CH_CFG_T *cfg, in hal_dma_init_desc() argument
239 const struct HAL_DMA_CH_CFG_T *cfg) {return HAL_DMA_ERR;} in hal_dma_sg_start() argument
242 const struct HAL_DMA_CH_CFG_T *cfg, in hal_dma_sg_2d_start() argument
246 static inline enum HAL_DMA_RET_T hal_dma_start(const struct HAL_DMA_CH_CFG_T *cfg) {return HAL_DMA_… in hal_dma_start() argument
/AliOS-Things-master/components/littlefs/src/littlefs-v220/
A Dlfs.c194 err = lfs->cfg->sync(lfs->cfg); in lfs_bd_sync()
2438 (void*)cfg, cfg->buffer, (void*)cfg->attrs, cfg->attr_count); in lfs_file_opencfg()
2451 file->cfg = cfg; in lfs_file_opencfg()
2650 p->cfg = cfg; in insert_into_cfg_list()
3737 lfs->cfg = cfg; in lfs_init()
3875 cfg->read_size, cfg->prog_size, cfg->block_size, cfg->block_count, in lfs_format()
3878 cfg->name_max, cfg->file_max, cfg->attr_max); in lfs_format()
3956 cfg->read_size, cfg->prog_size, cfg->block_size, cfg->block_count, in lfs_mount()
3959 cfg->name_max, cfg->file_max, cfg->attr_max); in lfs_mount()
5047 cfg->read_size, cfg->prog_size, cfg->block_size, cfg->block_count, in lfs_migrate()
[all …]
/AliOS-Things-master/hardware/board/haas100/drivers/
A Dkey.c46 int key_init(key_cfg_t *cfg) in key_init() argument
50 if(cfg == NULL) { in key_init()
54 if((cfg->short_press_handler == NULL) && (cfg->long_press_handler == NULL)) { in key_init()
58 memcpy(&key_cfg, cfg, sizeof(key_cfg_t)); in key_init()
/AliOS-Things-master/hardware/chip/haas1000/aos_driver/pwm/
A Dpwm.c48 struct HAL_PWM_CFG_T cfg; in haas1000_pwm_out_config() local
60 cfg.freq = DIV_ROUND_CLOSEST(NS_PER_SEC, period_ns); in haas1000_pwm_out_config()
61 cfg.ratio = DIV_ROUND_CLOSEST(((uint64_t)pulse_width_ns) * 100, period_ns); in haas1000_pwm_out_config()
62 cfg.inv = polarity; in haas1000_pwm_out_config()
63 cfg.sleep_on = false; in haas1000_pwm_out_config()
64 hal_pwm_enable(channel, &cfg); in haas1000_pwm_out_config()
/AliOS-Things-master/components/drivers/peripheral/i2c/src/
A Di2c.c28 if (!(msgs[0].cfg & AOS_I2C_MCFG_RX)) in transfer_sequence()
41 i2c->x.cfg = msg->cfg; in transfer_sequence()
60 if (last_msg && (last_msg->cfg & AOS_I2C_MCFG_RX)) { in transfer_sequence()
79 if (next_msg && !(next_msg->cfg & AOS_I2C_MCFG_RX)) { in transfer_sequence()
111 if (last_msg && (last_msg->cfg & AOS_I2C_MCFG_RX)) { in transfer_sequence()
132 if (msg->cfg & AOS_I2C_MCFG_ADDR_10) { in aos_i2c_transfer()
152 (msgs[i].cfg & AOS_I2C_MCFG_ADDR_10) == (msgs[i + 1].cfg & AOS_I2C_MCFG_ADDR_10) && in aos_i2c_transfer()
254 if (!(i2c->x.cfg & AOS_I2C_MCFG_RX) && tx_buf) { in aos_i2c_hard_push()
271 if ((i2c->x.cfg & AOS_I2C_MCFG_RX) && rx_buf) { in aos_i2c_hard_pull()
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/test/core/
A Dcommonclient_ut.cc41 const ClientConfiguration cfg; in TEST() local
49 const CommonClient cc1(credentials, cfg); in TEST()
50 CommonClient cc2(std::make_shared<SimpleCredentialsProvider>(credentials), cfg); in TEST()
51 CommonClient cc3(key, secret, cfg); in TEST()
52 CommonClient cc4(key, secret, cfg); in TEST()
93 TestCommonClient* client = new TestCommonClient(credentials, cfg); in TEST()
163 const ClientConfiguration cfg; in TEST() local
172 TestCommonClient* client = new TestCommonClient(credentials, cfg); in TEST()
215 const ClientConfiguration cfg; in TEST() local
223 const CommonClient cc1(credentials, cfg); in TEST()
/AliOS-Things-master/hardware/chip/haas1000/hal/
A Dpwm.c34 static void __hal_pwm_pram2cfg(struct HAL_PWM_CFG_T *cfg, pwm_config_t *pram) in __hal_pwm_pram2cfg() argument
36 cfg->freq = pram->freq; in __hal_pwm_pram2cfg()
37 cfg->ratio = pram->duty_cycle*1000; in __hal_pwm_pram2cfg()
38 cfg->inv = false; in __hal_pwm_pram2cfg()
39 cfg->sleep_on = false; in __hal_pwm_pram2cfg()
/AliOS-Things-master/components/py_engine/adapter/haas/
A Dmachine_hw_spi.c123 spi_config_t *cfg = &dev->config; in machine_hw_spi_print() local
127 …dev->port, cfg->role, cfg->firstbit, cfg->mode, cfg->t_mode, cfg->freq, cfg->serial_len, cfg->data… in machine_hw_spi_print()
128 cfg->cs); in machine_hw_spi_print()
/AliOS-Things-master/components/py_engine/adapter/haas510/
A Dmachine_hw_spi.c129 spi_config_t *cfg = &spi->config; in machine_hw_spi_print() local
131 …spi->port, cfg->role, cfg->firstbit, cfg->mode, cfg->t_mode, cfg->freq, cfg->serial_len, cfg->data… in machine_hw_spi_print()
/AliOS-Things-master/components/py_engine/adapter/haas600/
A Dmachine_hw_spi.c129 spi_config_t *cfg = &spi->config; in machine_hw_spi_print() local
131 …spi->port, cfg->role, cfg->firstbit, cfg->mode, cfg->t_mode, cfg->freq, cfg->serial_len, cfg->data… in machine_hw_spi_print()
/AliOS-Things-master/components/drivers/peripheral/spi/src/
A Dspi.c41 spi->x.cfg = msg->cfg; in transfer_sequence()
139 …if ((msg->cfg & AOS_SPI_MCFG_MODE_MASK) == AOS_SPI_MCFG_MODE_0 && !(spi->flags & AOS_SPI_F_MODE_0)) in aos_spi_transfer()
142 …if ((msg->cfg & AOS_SPI_MCFG_MODE_MASK) == AOS_SPI_MCFG_MODE_1 && !(spi->flags & AOS_SPI_F_MODE_1)) in aos_spi_transfer()
145 …if ((msg->cfg & AOS_SPI_MCFG_MODE_MASK) == AOS_SPI_MCFG_MODE_2 && !(spi->flags & AOS_SPI_F_MODE_2)) in aos_spi_transfer()
151 if ((msg->cfg & AOS_SPI_MCFG_LSB_FIRST) && !(spi->flags & AOS_SPI_F_LSB_FIRST)) in aos_spi_transfer()
154 if (!(msg->cfg & AOS_SPI_MCFG_LSB_FIRST) && !(spi->flags & AOS_SPI_F_MSB_FIRST)) in aos_spi_transfer()
160 if ((msg->cfg & AOS_SPI_MCFG_WIDTH_MASK) == AOS_SPI_MCFG_WIDTH_1 && in aos_spi_transfer()
165 if ((msg->cfg & AOS_SPI_MCFG_WIDTH_MASK) == AOS_SPI_MCFG_WIDTH_2 && in aos_spi_transfer()
170 if ((msg->cfg & AOS_SPI_MCFG_WIDTH_MASK) == AOS_SPI_MCFG_WIDTH_4 && in aos_spi_transfer()
175 if ((msg->cfg & AOS_SPI_MCFG_WIDTH_MASK) == AOS_SPI_MCFG_WIDTH_8 && in aos_spi_transfer()
[all …]
/AliOS-Things-master/components/py_engine/engine/extmod/
A Dvfs_lfsx_file.c92 …Sx_FILE *o = m_new_obj_var_with_finaliser(MP_OBJ_VFS_LFSx_FILE, uint8_t, self->lfs.cfg->prog_size); in MP_VFS_LFSx()
94 …x_FILE *o = m_new_obj_var_with_finaliser(MP_OBJ_VFS_LFSx_FILE, uint8_t, self->lfs.cfg->cache_size); in MP_VFS_LFSx()
100 memset(&o->cfg, 0, sizeof(o->cfg)); in MP_VFS_LFSx()
102 o->cfg.buffer = &o->file_buffer[0]; in MP_VFS_LFSx()
110 o->cfg.attrs = &o->attrs[0]; in MP_VFS_LFSx()
111 o->cfg.attr_count = MP_ARRAY_SIZE(o->attrs); in MP_VFS_LFSx()
116 int ret = LFSx_API(file_opencfg)(&self->lfs, &o->file, path, flags, &o->cfg); in MP_VFS_LFSx()
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/audioflinger/
A Daudioflinger.h17 typedef void (*AF_CODEC_PLAYBACK_POST_HANDLER_T)(uint8_t *buf, uint32_t len, void *cfg);
58 …ream_open(enum AUD_STREAM_ID_T id, enum AUD_STREAM_T stream, const struct AF_STREAM_CONFIG_T *cfg);
59 …eam_setup(enum AUD_STREAM_ID_T id, enum AUD_STREAM_T stream, const struct AF_STREAM_CONFIG_T *cfg);
63 …enum AUD_STREAM_ID_T id, enum AUD_STREAM_T stream, struct AF_STREAM_CONFIG_T **cfg, bool needlock);
112 int af_vad_open(const struct AUD_VAD_CONFIG_T *cfg);

Completed in 87 milliseconds

123456