This is an forked repository to push changes related to no-OS repository adoption
Dependencies: adi_console_menu platform_drivers
Diff: app/ad717x_console_app.c
- Revision:
- 8:13ddfedfe923
- Parent:
- 4:4592cc69bfa6
--- a/app/ad717x_console_app.c Sat Sep 19 12:55:53 2020 +0000 +++ b/app/ad717x_console_app.c Tue Aug 03 11:02:59 2021 +0530 @@ -9,7 +9,7 @@ The functions defined in this file performs the action based on user selected console menu. ----------------------------------------------------------------------------- - Copyright (c) 2020 Analog Devices, Inc. + Copyright (c) 2020-2021 Analog Devices, Inc. All rights reserved. This software is proprietary to Analog Devices, Inc. and its licensors. @@ -30,7 +30,7 @@ #include "ad717x.h" #include "platform_support.h" -#include "platform_drivers.h" +#include "spi.h" #include "spi_extra.h" #include "ad717x_console_app.h" @@ -145,10 +145,10 @@ ad717x_init_param ad717x_init = { // spi_init_param type { - 2500000, // Max SPI Speed - SPI_SS, // Chip Select pin - SPI_MODE_3, // CPOL = 1, CPHA =1 - &spi_init_extra_params, // SPI extra configurations + .max_speed_hz = 2500000, // Max SPI Speed + .chip_select = SPI_SS, // Chip Select pin + .mode = SPI_MODE_3, // CPOL = 1, CPHA =1 + .extra = &spi_init_extra_params // SPI extra configurations }, ad717x_device_map, // pointer to device register map ad717x_reg_count, // number of device registers