Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Commit

Permalink
Zephyr device tree configuration change only: internal naming tidy-up…
Browse files Browse the repository at this point in the history
…. (#1179)

A couple of minor naming/type corrections in the internal Zephyr device tree code, no customer effect: gpDeviceCfgCellUartPppListUartBaudRate -> gDeviceCfgCellUartPppListUartBaudRate 'cos it is not actually a pointer and int32_t gDeviceCfgGnssI2cAlreadyOpen -> bool gDeviceCfgGnssI2cAlreadyOpen 'cos it is a Boolean.
  • Loading branch information
RobMeades authored Jun 6, 2024
1 parent addf595 commit ca90005
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions port/platform/zephyr/src/u_port_board_cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ static const char *const gpDeviceCfgCellUartPppListTransportType[][2] = {
* compatible devices, or NULL where not present, in the order
* they appear in the device tree.
*/
static const int32_t gpDeviceCfgCellUartPppListUartBaudRate[][2] = {
static const int32_t gDeviceCfgCellUartPppListUartBaudRate[][2] = {
DT_FOREACH_STATUS_OKAY_VARGS(u_blox_ubxlib_device_cellular,
U_PORT_BOARD_CFG_GET_NETWORK_LIST_UART_PPP_INT,
uart_baud_rate)
Expand Down Expand Up @@ -577,7 +577,7 @@ static const int32_t gDeviceCfgGnssI2cClockHertz[] = {
* ubxlib-device-gnss compatible device, in the order they
* appear in the device tree.
*/
static const int32_t gDeviceCfgGnssI2cAlreadyOpen[] = {
static const bool gDeviceCfgGnssI2cAlreadyOpen[] = {
DT_FOREACH_STATUS_OKAY_VARGS(u_blox_ubxlib_device_gnss,
U_PORT_BOARD_CFG_GET_BOOLEAN,
i2c_already_open)
Expand Down Expand Up @@ -1534,7 +1534,7 @@ static void cfgNetworkCellular(int32_t deviceIndex, int32_t networkIndex,
x = getUart(gpDeviceCfgCellUartPppListTransportType[deviceIndex][networkIndex]);
if (x >= 0) {
pUartPpp->uart = x;
pUartPpp->baudRate = gpDeviceCfgCellUartPppListUartBaudRate[deviceIndex][networkIndex];
pUartPpp->baudRate = gDeviceCfgCellUartPppListUartBaudRate[deviceIndex][networkIndex];
pUartPpp->pinTxd = -1;
pUartPpp->pinRxd = -1;
pUartPpp->pinCts = -1;
Expand Down

0 comments on commit ca90005

Please sign in to comment.