Searched refs:spi_device (Results 1 – 5 of 5) sorted by relevance
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/hardware/spi/ |
A D | module_spi.c | 28 spi_dev_t *spi_device = NULL; in native_spi_open() local 43 if (NULL == spi_device) { in native_spi_open() 47 ret = aos_hal_spi_init(spi_device); in native_spi_open() 72 spi_dev_t *spi_device = NULL; in native_spi_close() local 81 if (NULL == spi_device) { in native_spi_close() 101 spi_dev_t *spi_device = NULL; in native_spi_write() local 110 if (NULL == spi_device) { in native_spi_write() 142 spi_dev_t *spi_device = NULL; in native_spi_read() local 152 if (NULL == spi_device) { in native_spi_read() 188 spi_dev_t *spi_device = NULL; in native_spi_send_receive() local [all …]
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/hardware/spi/ |
A D | module_spi.c | 21 spi_dev_t *spi_device = NULL; in native_spi_open() local 35 if (NULL == spi_device) { in native_spi_open() 39 ret = aos_hal_spi_init(spi_device); in native_spi_open() 58 spi_dev_t *spi_device = NULL; in native_spi_close() local 66 if (NULL == spi_device) { in native_spi_close() 88 spi_dev_t *spi_device = NULL; in native_spi_write() local 99 if (NULL == spi_device) { in native_spi_write() 141 spi_dev_t *spi_device = NULL; in native_spi_read() local 149 if (NULL == spi_device) { in native_spi_read() 187 spi_dev_t *spi_device = NULL; in native_spi_send_receive() local [all …]
|
/AliOS-Things-master/components/py_engine/modules/driver/ |
A D | spi.c | 99 LOGD(LOG_TAG, "%s: port = %d;\n", __func__, spi_device->port); in spi_open() 100 LOGD(LOG_TAG, "%s: role = %d;\n", __func__, spi_device->config.role); in spi_open() 101 LOGD(LOG_TAG, "%s: firstbit = %d;\n", __func__, spi_device->config.firstbit); in spi_open() 102 LOGD(LOG_TAG, "%s: mode = %d;\n", __func__, spi_device->config.mode); in spi_open() 103 LOGD(LOG_TAG, "%s: t_mode = %d;\n", __func__, spi_device->config.t_mode); in spi_open() 104 LOGD(LOG_TAG, "%s: freq = %d;\n", __func__, spi_device->config.freq); in spi_open() 106 LOGD(LOG_TAG, "%s: data_size = %d;\n", __func__, spi_device->config.data_size); in spi_open() 107 LOGD(LOG_TAG, "%s: cs = %d;\n", __func__, spi_device->config.cs); in spi_open() 109 ret = aos_hal_spi_init(spi_device); in spi_open() 127 ret = aos_hal_spi_finalize(spi_device); in spi_close() [all …]
|
A D | board_mgr.c | 430 if (NULL == spi_device) { in board_set_spi_default() 433 spi_device->port = 0; in board_set_spi_default() 434 spi_device->priv = NULL; in board_set_spi_default() 435 spi_device->config.data_size = SPI_DATA_SIZE_8BIT; in board_set_spi_default() 436 spi_device->config.mode = SPI_WORK_MODE_3; in board_set_spi_default() 437 spi_device->config.cs = SPI_CS_DIS; in board_set_spi_default() 438 spi_device->config.role = SPI_ROLE_MASTER; in board_set_spi_default() 439 spi_device->config.serial_len = 0; in board_set_spi_default() 440 spi_device->config.firstbit = SPI_FIRSTBIT_MSB; in board_set_spi_default() 441 spi_device->config.t_mode = SPI_TRANSFER_NORMAL; in board_set_spi_default() [all …]
|
/AliOS-Things-master/components/amp/services/board_mgr/ |
A D | board_mgr.c | 486 if (NULL == spi_device) in board_set_spi_default() 490 spi_device->port = 0; in board_set_spi_default() 491 spi_device->priv = NULL; in board_set_spi_default() 492 spi_device->config.data_size = 8; in board_set_spi_default() 493 spi_device->config.mode = 3; in board_set_spi_default() 494 spi_device->config.cs = 0; in board_set_spi_default() 495 spi_device->config.role = 1; in board_set_spi_default() 496 spi_device->config.serial_len = 0; in board_set_spi_default() 497 spi_device->config.firstbit = 0; in board_set_spi_default() 498 spi_device->config.t_mode = 1; in board_set_spi_default() [all …]
|
Completed in 16 milliseconds