Home
last modified time | relevance | path

Searched refs:resourceNode (Results 1 – 20 of 20) sorted by relevance

/drivers/hdf_core/framework/sample/platform/uart/src/
Duart_sample.c183 …2_t GetUartDeviceResource(struct UartDevice *device, const struct DeviceResourceNode *resourceNode) in GetUartDeviceResource() argument
193 if (dri->GetUint32(resourceNode, "num", &resource->num, 0) != HDF_SUCCESS) { in GetUartDeviceResource()
197 if (dri->GetUint32(resourceNode, "base", &resource->base, 0) != HDF_SUCCESS) { in GetUartDeviceResource()
206 if (dri->GetUint32(resourceNode, "irqNum", &resource->irqNum, 0) != HDF_SUCCESS) { in GetUartDeviceResource()
210 if (dri->GetUint32(resourceNode, "baudrate", &resource->baudrate, 0) != HDF_SUCCESS) { in GetUartDeviceResource()
214 if (dri->GetUint32(resourceNode, "wlen", &resource->wlen, 0) != HDF_SUCCESS) { in GetUartDeviceResource()
218 if (dri->GetUint32(resourceNode, "parity", &resource->parity, 0) != HDF_SUCCESS) { in GetUartDeviceResource()
222 if (dri->GetUint32(resourceNode, "stopBit", &resource->stopBit, 0) != HDF_SUCCESS) { in GetUartDeviceResource()
226 if (dri->GetUint32(resourceNode, "uartClk", &resource->uartClk, 0) != HDF_SUCCESS) { in GetUartDeviceResource()
/drivers/hdf_core/adapter/platform/i2c/
Di2c_bes.c175 const struct DeviceResourceNode *resourceNode) in GetI2cDeviceResource() argument
180 if (device == NULL || resourceNode == NULL) { in GetI2cDeviceResource()
195 if (dri->GetUint32(resourceNode, "port", &resource->port, 0) != HDF_SUCCESS) { in GetI2cDeviceResource()
200 if (dri->GetUint32(resourceNode, "sclPin", &tempPin, 0) != HDF_SUCCESS) { in GetI2cDeviceResource()
206 if (dri->GetUint32(resourceNode, "sdaPin", &tempPin, 0) != HDF_SUCCESS) { in GetI2cDeviceResource()
212 if (dri->GetUint32(resourceNode, "speed", &resource->speed, 0) != HDF_SUCCESS) { in GetI2cDeviceResource()
217 if (dri->GetUint32(resourceNode, "mode", &resource->mode, 0) != HDF_SUCCESS) { in GetI2cDeviceResource()
222 if (dri->GetUint32(resourceNode, "useDma", &resource->useDma, 0) != HDF_SUCCESS) { in GetI2cDeviceResource()
227 if (dri->GetUint32(resourceNode, "useSync", &resource->useSync, 0) != HDF_SUCCESS) { in GetI2cDeviceResource()
232 if (dri->GetUint32(resourceNode, "asMaster", &resource->asMaster, 0) != HDF_SUCCESS) { in GetI2cDeviceResource()
Di2c_wm.c129 const struct DeviceResourceNode *resourceNode) in GetI2cDeviceResource() argument
134 if (device == NULL || resourceNode == NULL) { in GetI2cDeviceResource()
149 if (dri->GetUint32(resourceNode, "port", &resource->port, 0) != HDF_SUCCESS) { in GetI2cDeviceResource()
154 if (dri->GetUint32(resourceNode, "sclPin", &tempPin, 0) != HDF_SUCCESS) { in GetI2cDeviceResource()
160 if (dri->GetUint32(resourceNode, "sdaPin", &tempPin, 0) != HDF_SUCCESS) { in GetI2cDeviceResource()
166 if (dri->GetUint32(resourceNode, "speed", &resource->speed, 0) != HDF_SUCCESS) { in GetI2cDeviceResource()
Di2c_stm32f4xx.c99 …cDeviceResource(struct RealI2cResource *i2cResource, const struct DeviceResourceNode *resourceNode) in GetI2cDeviceResource() argument
101 if (i2cResource == NULL || resourceNode == NULL) { in GetI2cDeviceResource()
112 if (dri->GetUint8(resourceNode, "port", &i2cResource->port, 0) != HDF_SUCCESS) { in GetI2cDeviceResource()
117 if (dri->GetUint8(resourceNode, "devMode", &i2cResource->devMode, 0) != HDF_SUCCESS) { in GetI2cDeviceResource()
122 if (dri->GetUint32(resourceNode, "devAddr", &i2cResource->devAddr, 0) != HDF_SUCCESS) { in GetI2cDeviceResource()
127 if (dri->GetUint32(resourceNode, "speed", &i2cResource->speed, 0) != HDF_SUCCESS) { in GetI2cDeviceResource()
/drivers/hdf_core/adapter/platform/gpio/
Dgpio_stm32f4xx.c221 GpioDevice *device, const struct DeviceResourceNode *resourceNode) in GpioParseHcs() argument
230 if (dri->GetUint32(resourceNode, "pinNum", &device->pinNums, 0) != HDF_SUCCESS) { in GpioParseHcs()
236 if (dri->GetUint32ArrayElem(resourceNode, "pin", i, &resource->pin, 0) != HDF_SUCCESS) { in GpioParseHcs()
240 … if (dri->GetUint32ArrayElem(resourceNode, "realPin", i, &resource->realPin, 0) != HDF_SUCCESS) { in GpioParseHcs()
244 if (dri->GetUint32ArrayElem(resourceNode, "mode", i, &resource->mode, 0) != HDF_SUCCESS) { in GpioParseHcs()
248 if (dri->GetUint32ArrayElem(resourceNode, "speed", i, &resource->speed, 0) != HDF_SUCCESS) { in GpioParseHcs()
252 if (dri->GetUint32ArrayElem(resourceNode, "pull", i, &resource->pull, 0) != HDF_SUCCESS) { in GpioParseHcs()
256 … if (dri->GetUint32ArrayElem(resourceNode, "output", i, &resource->outputType, 0) != HDF_SUCCESS) { in GpioParseHcs()
260 if (dri->GetUint32ArrayElem(resourceNode, "group", i, &resource->group, 0) != HDF_SUCCESS) { in GpioParseHcs()
264 …if (dri->GetUint32ArrayElem(resourceNode, "alternate", i, &resource->alternate, 0) != HDF_SUCCESS)… in GpioParseHcs()
[all …]
Dgpio_wm.c256 …2_t GetGpioDeviceResource(struct GpioDevice *device, const struct DeviceResourceNode *resourceNode) in GetGpioDeviceResource() argument
261 if (device == NULL || resourceNode == NULL) { in GetGpioDeviceResource()
276 if (dri->GetUint32(resourceNode, "groupNum", &resource->groupNum, 0) != HDF_SUCCESS) { in GetGpioDeviceResource()
281 if (dri->GetUint32(resourceNode, "pinNum", &resource->pinNum, 0) != HDF_SUCCESS) { in GetGpioDeviceResource()
287 … if (dri->GetUint32ArrayElem(resourceNode, "config", i, &resource->config, 0) != HDF_SUCCESS) { in GetGpioDeviceResource()
Dgpio_asr.c318 struct GpioDevice *device, const struct DeviceResourceNode *resourceNode) in GetGpioDeviceResource() argument
324 if (device == NULL || resourceNode == NULL) { in GetGpioDeviceResource()
339 if (dri->GetUint32(resourceNode, "pinNum", &resource->pinNum, 0) != HDF_SUCCESS) { in GetGpioDeviceResource()
345 if (dri->GetUint32ArrayElem(resourceNode, "pin", i, &resource->pin, 0) != HDF_SUCCESS) { in GetGpioDeviceResource()
350 … if (dri->GetUint32ArrayElem(resourceNode, "realPin", i, &resource->realPin, 0) != HDF_SUCCESS) { in GetGpioDeviceResource()
355 … if (dri->GetUint32ArrayElem(resourceNode, "config", i, &resource->config, 0) != HDF_SUCCESS) { in GetGpioDeviceResource()
Dgpio_bes.c205 struct GpioDevice *device, const struct DeviceResourceNode *resourceNode) in GetGpioDeviceResource() argument
211 if (device == NULL || resourceNode == NULL) { in GetGpioDeviceResource()
226 if (dri->GetUint32(resourceNode, "pinNum", &resource->pinNum, 0) != HDF_SUCCESS) { in GetGpioDeviceResource()
232 if (dri->GetUint32ArrayElem(resourceNode, "pin", i, &resource->pin, 0) != HDF_SUCCESS) { in GetGpioDeviceResource()
237 … if (dri->GetUint32ArrayElem(resourceNode, "realPin", i, &resource->realPin, 0) != HDF_SUCCESS) { in GetGpioDeviceResource()
242 … if (dri->GetUint32ArrayElem(resourceNode, "config", i, &resource->config, 0) != HDF_SUCCESS) { in GetGpioDeviceResource()
/drivers/hdf_core/adapter/platform/pwm/
Dpwm_wm.c65 struct PwmDevice *device, const struct DeviceResourceNode *resourceNode) in GetPwmDeviceResource() argument
69 if (device == NULL || resourceNode == NULL) { in GetPwmDeviceResource()
86 if (dri->GetUint32(resourceNode, "channel", &resource->channel, 0) != HDF_SUCCESS) { in GetPwmDeviceResource()
91 if (dri->GetUint32(resourceNode, "freq", &resource->freq, 0) != HDF_SUCCESS) { in GetPwmDeviceResource()
Dpwm_bes.c118 struct PwmDevice *device, const struct DeviceResourceNode *resourceNode) in GetPwmDeviceResource() argument
123 if (device == NULL || resourceNode == NULL) { in GetPwmDeviceResource()
140 if (dri->GetUint32(resourceNode, "pwmPin", &tempPin, 0) != HDF_SUCCESS) { in GetPwmDeviceResource()
146 if (dri->GetUint32(resourceNode, "pwmId", &resource->pwmId, 0) != HDF_SUCCESS) { in GetPwmDeviceResource()
Dpwm_stm32f4xx.c231 …atic int32_t GetPwmDeviceResource(PwmDevice *device, const struct DeviceResourceNode *resourceNode) in GetPwmDeviceResource() argument
236 if (device == NULL || resourceNode == NULL) { in GetPwmDeviceResource()
253 if (dri->GetUint8(resourceNode, "pwmTim", &resource->pwmTim, 0) != HDF_SUCCESS) { in GetPwmDeviceResource()
263 if (dri->GetUint8(resourceNode, "pwmCh", &resource->pwmCh, 0) != HDF_SUCCESS) { in GetPwmDeviceResource()
268 if (dri->GetUint32(resourceNode, "prescaler", &resource->prescaler, 0) != HDF_SUCCESS) { in GetPwmDeviceResource()
/drivers/hdf_core/adapter/platform/uart/
Duart_stm32f4xx.c371 const struct DeviceResourceNode *resourceNode, UartResource *resource) in GetUartHcs() argument
373 if (dri->GetUint8(resourceNode, "num", &resource->num, 0) != HDF_SUCCESS) { in GetUartHcs()
377 if (dri->GetUint32(resourceNode, "baudRate", &resource->baudRate, 0) != HDF_SUCCESS) { in GetUartHcs()
381 if (dri->GetUint8(resourceNode, "dataWidth", &resource->dataWidth, 0) != HDF_SUCCESS) { in GetUartHcs()
385 if (dri->GetUint8(resourceNode, "stopBit", &resource->stopBit, 0) != HDF_SUCCESS) { in GetUartHcs()
389 if (dri->GetUint8(resourceNode, "parity", &resource->parity, 0) != HDF_SUCCESS) { in GetUartHcs()
393 if (dri->GetUint8(resourceNode, "transDir", &resource->transDir, 0) != HDF_SUCCESS) { in GetUartHcs()
397 if (dri->GetUint8(resourceNode, "flowCtrl", &resource->flowCtrl, 0) != HDF_SUCCESS) { in GetUartHcs()
401 if (dri->GetUint8(resourceNode, "overSimpling", &resource->overSimpling, 0) != HDF_SUCCESS) { in GetUartHcs()
405 if (dri->GetUint8(resourceNode, "transMode", &resource->transMode, 0) != HDF_SUCCESS) { in GetUartHcs()
[all …]
Duart_wm.c253 …2_t GetUartDeviceResource(struct UartDevice *device, const struct DeviceResourceNode *resourceNode) in GetUartDeviceResource() argument
257 if (device == NULL || resourceNode == NULL) { in GetUartDeviceResource()
272 if (dri->GetUint32(resourceNode, "num", &resource->num, 0) != HDF_SUCCESS) { in GetUartDeviceResource()
276 if (dri->GetUint32(resourceNode, "baudrate", &resource->baudRate, 0) != HDF_SUCCESS) { in GetUartDeviceResource()
280 if (dri->GetUint32(resourceNode, "parity", &resource->parity, 0) != HDF_SUCCESS) { in GetUartDeviceResource()
284 if (dri->GetUint32(resourceNode, "stopBit", &resource->stopBit, 0) != HDF_SUCCESS) { in GetUartDeviceResource()
Duart_bes.c511 struct UartDevice *device, const struct DeviceResourceNode *resourceNode) in GetUartDeviceResource() argument
515 if (device == NULL || resourceNode == NULL) { in GetUartDeviceResource()
530 if (dri->GetUint32(resourceNode, "num", &resource->num, 0) != HDF_SUCCESS) { in GetUartDeviceResource()
534 if (dri->GetUint32(resourceNode, "baudrate", &resource->baudRate, 0) != HDF_SUCCESS) { in GetUartDeviceResource()
538 if (dri->GetUint32(resourceNode, "parity", &resource->parity, 0) != HDF_SUCCESS) { in GetUartDeviceResource()
542 if (dri->GetUint32(resourceNode, "stopBit", &resource->stopBit, 0) != HDF_SUCCESS) { in GetUartDeviceResource()
546 if (dri->GetUint32(resourceNode, "data", &resource->wLen, 0) != HDF_SUCCESS) { in GetUartDeviceResource()
551 resource->txDMA = dri->GetBool(resourceNode, "txDMA"); in GetUartDeviceResource()
552 resource->rxDMA = dri->GetBool(resourceNode, "rxDMA"); in GetUartDeviceResource()
/drivers/hdf_core/adapter/platform/spi/
Dspi_bes.c468 …_t GetSpiDeviceResource(struct SpiDevice *spiDevice, const struct DeviceResourceNode *resourceNode) in GetSpiDeviceResource() argument
474 if (spiDevice == NULL || resourceNode == NULL) { in GetSpiDeviceResource()
489 if (dri->GetUint32(resourceNode, "busNum", &resource->num, 0) != HDF_SUCCESS) { in GetSpiDeviceResource()
495 if (dri->GetUint32(resourceNode, "speed", &resource->speed, 0) != HDF_SUCCESS) { in GetSpiDeviceResource()
500 if (dri->GetUint32(resourceNode, "transmode", &resource->transmode, 0) != HDF_SUCCESS) { in GetSpiDeviceResource()
505 if (dri->GetUint32(resourceNode, "spiCsSoft", &resource->spiCsSoft, 0) != HDF_SUCCESS) { in GetSpiDeviceResource()
510 if (dri->GetUint32(resourceNode, "mode", &resource->mode, 0) != HDF_SUCCESS) { in GetSpiDeviceResource()
515 if (dri->GetUint32(resourceNode, "dataSize", &resource->dataSize, 0) != HDF_SUCCESS) { in GetSpiDeviceResource()
520 if (dri->GetUint32(resourceNode, "csNum", &resource->csNum, 0) != HDF_SUCCESS) { in GetSpiDeviceResource()
525 if (dri->GetUint32(resourceNode, "spiClkPin", &resource->spiClkPin, 0) != HDF_SUCCESS) { in GetSpiDeviceResource()
[all …]
Dspi_wm.c228 …_t GetSpiDeviceResource(struct SpiDevice *spiDevice, const struct DeviceResourceNode *resourceNode) in GetSpiDeviceResource() argument
233 if (spiDevice == NULL || resourceNode == NULL) { in GetSpiDeviceResource()
248 if (dri->GetUint32(resourceNode, "num", &resource->num, 0) != HDF_SUCCESS) { in GetSpiDeviceResource()
254 if (dri->GetUint32(resourceNode, "speed", &resource->speed, 0) != HDF_SUCCESS) { in GetSpiDeviceResource()
259 if (dri->GetUint32(resourceNode, "transmode", &resource->transmode, 0) != HDF_SUCCESS) { in GetSpiDeviceResource()
Dspi_stm32f4xx.c455 …c int32_t GetSpiDeviceResource(SpiDevice *spiDevice, const struct DeviceResourceNode *resourceNode) in GetSpiDeviceResource() argument
458 if (spiDevice == NULL || resourceNode == NULL) { in GetSpiDeviceResource()
475 if (dri->GetUint8(resourceNode, g_parseHcsMap[i], &temp[i], 0) != HDF_SUCCESS) { in GetSpiDeviceResource()
485 if (dri->GetUint16(resourceNode, "crcPoly", &resource->crcPoly, 0) != HDF_SUCCESS) { in GetSpiDeviceResource()
/drivers/hdf_core/adapter/platform/watchdog/
Dwatchdog_stm32f4xx.c91 …tchdogDeviceInfoResource(WatchdogDeviceInfo *device, const struct DeviceResourceNode *resourceNode) in GetWatchdogDeviceInfoResource() argument
94 if (device == NULL || resourceNode == NULL) { in GetWatchdogDeviceInfoResource()
105 if (dri->GetUint32(resourceNode, "id", &device->watchdogId, 0) != HDF_SUCCESS) { in GetWatchdogDeviceInfoResource()
109 if (dri->GetUint32(resourceNode, "timeout", &device->timeout, 0) != HDF_SUCCESS) { in GetWatchdogDeviceInfoResource()
Dwatchdog_bes.c66 struct WatchdogDevice *device, const struct DeviceResourceNode *resourceNode) in GetWatchdogDeviceResource() argument
70 if (device == NULL || resourceNode == NULL) { in GetWatchdogDeviceResource()
86 if (dri->GetUint32(resourceNode, "watchdogId", &resource->watchdogId, 0) != HDF_SUCCESS) { in GetWatchdogDeviceResource()
Dwatchdog_wm.c117 struct WatchdogDevice *device, const struct DeviceResourceNode *resourceNode) in GetWatchdogDeviceResource() argument
121 if (device == NULL || resourceNode == NULL) { in GetWatchdogDeviceResource()