Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/prevent-provision-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v6

- name: Get list of changed files and check for unauthorized changes
uses: actions/github-script@v8
uses: actions/github-script@v9
with:
script: |
const { data: commits } = await github.rest.pulls.listCommits({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
#include "sl_si91x_power_manager.h"
#include "sl_si91x_power_manager_init.h"
#endif // SL_ICD_ENABLED
#if defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR
#include "sl_i2c_instances.h"
#endif // defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR
#include "sl_si91x_button_instances.h"
#include "sl_si91x_led_instances.h"
#include "sl_ulp_timer_instances.h"
Expand Down Expand Up @@ -54,6 +57,9 @@ void sl_kernel_start(void)

void sl_driver_init(void)
{
#if defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR
sl_i2c_init_instances();
#endif // defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR
button_init_instances();
led_init_instances();
}
Expand Down
69 changes: 69 additions & 0 deletions board-support/si91x/siwx917/BRD4338A/autogen/sl_i2c_init.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/***************************************************************************//**
* @file sl_i2c_init.c.jinja
* @brief I2C Driver Instance Initialization
*******************************************************************************
* # License
* <b>Copyright 2023 Silicon Laboratories Inc. www.silabs.com</b>
*******************************************************************************
*
* SPDX-License-Identifier: Zlib
*
* The licensor of this software is Silicon Laboratories Inc.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
******************************************************************************/

#include "sl_si91x_i2c.h"

#include "sl_si91x_i2c_init_i2c2_config.h"


#include "sl_i2c_instances.h"


sl_i2c_config_t sl_i2c_i2c2_config = {
.mode = SL_I2C_I2C2_MODE,
.operating_mode = SL_I2C_I2C2_OPERATING_MODE,
.transfer_type = SL_I2C_I2C2_TRANSFER_TYPE,
.i2c_callback = NULL,
};



sl_i2c_pin_init_t sl_i2c_i2c2_pin_init = {
.sda_port = SL_I2C_I2C2_SDA_PORT,
.sda_pin = SL_I2C_I2C2_SDA_PIN,
.sda_mux = SL_I2C_I2C2_SDA_MUX,
.sda_pad = SL_I2C_I2C2_SDA_PAD,
.scl_port = SL_I2C_I2C2_SCL_PORT,
.scl_pin = SL_I2C_I2C2_SCL_PIN,
.scl_mux = SL_I2C_I2C2_SCL_MUX,
.scl_pad = SL_I2C_I2C2_SCL_PAD,
.instance = SL_I2C2,
};



void sl_i2c_init_instances(void)
{


sl_si91x_i2c_pin_init(&sl_i2c_i2c2_pin_init);


}
49 changes: 49 additions & 0 deletions board-support/si91x/siwx917/BRD4338A/autogen/sl_i2c_instances.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/***************************************************************************//**
* @file sl_i2c_instances.h.jinja
* @brief I2C Driver Instance
*******************************************************************************
* # License
* <b>Copyright 2023 Silicon Laboratories Inc. www.silabs.com</b>
*******************************************************************************
*
* SPDX-License-Identifier: Zlib
*
* The licensor of this software is Silicon Laboratories Inc.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
******************************************************************************/

#ifndef SL_I2C_INSTANCES_H
#define SL_I2C_INSTANCES_H

#ifdef __cplusplus
extern "C" {
#endif

#include "sl_si91x_i2c.h"


extern sl_i2c_config_t sl_i2c_i2c2_config ;

void sl_i2c_init_instances(void);

#ifdef __cplusplus
}
#endif

#endif // SL_I2C_INSTANCES_H
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
#include "sl_si91x_power_manager.h"
#include "sl_si91x_power_manager_init.h"
#endif // SL_ICD_ENABLED
#if defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR
#include "sl_i2c_instances.h"
#endif // defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR
#include "sl_si91x_button_instances.h"
#include "sl_si91x_led_instances.h"
#include "sl_ulp_timer_instances.h"
Expand Down Expand Up @@ -54,6 +57,9 @@ void sl_kernel_start(void)

void sl_driver_init(void)
{
#if defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR
sl_i2c_init_instances();
#endif // defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR
button_init_instances();
led_init_instances();
}
Expand Down
69 changes: 69 additions & 0 deletions board-support/si91x/siwx917/BRD4342A/autogen/sl_i2c_init.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/***************************************************************************//**
* @file sl_i2c_init.c.jinja
* @brief I2C Driver Instance Initialization
*******************************************************************************
* # License
* <b>Copyright 2023 Silicon Laboratories Inc. www.silabs.com</b>
*******************************************************************************
*
* SPDX-License-Identifier: Zlib
*
* The licensor of this software is Silicon Laboratories Inc.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
******************************************************************************/

#include "sl_si91x_i2c.h"

#include "sl_si91x_i2c_init_i2c2_config.h"


#include "sl_i2c_instances.h"


sl_i2c_config_t sl_i2c_i2c2_config = {
.mode = SL_I2C_I2C2_MODE,
.operating_mode = SL_I2C_I2C2_OPERATING_MODE,
.transfer_type = SL_I2C_I2C2_TRANSFER_TYPE,
.i2c_callback = NULL,
};



sl_i2c_pin_init_t sl_i2c_i2c2_pin_init = {
.sda_port = SL_I2C_I2C2_SDA_PORT,
.sda_pin = SL_I2C_I2C2_SDA_PIN,
.sda_mux = SL_I2C_I2C2_SDA_MUX,
.sda_pad = SL_I2C_I2C2_SDA_PAD,
.scl_port = SL_I2C_I2C2_SCL_PORT,
.scl_pin = SL_I2C_I2C2_SCL_PIN,
.scl_mux = SL_I2C_I2C2_SCL_MUX,
.scl_pad = SL_I2C_I2C2_SCL_PAD,
.instance = SL_I2C2,
};



void sl_i2c_init_instances(void)
{


sl_si91x_i2c_pin_init(&sl_i2c_i2c2_pin_init);


}
49 changes: 49 additions & 0 deletions board-support/si91x/siwx917/BRD4342A/autogen/sl_i2c_instances.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/***************************************************************************//**
* @file sl_i2c_instances.h.jinja
* @brief I2C Driver Instance
*******************************************************************************
* # License
* <b>Copyright 2023 Silicon Laboratories Inc. www.silabs.com</b>
*******************************************************************************
*
* SPDX-License-Identifier: Zlib
*
* The licensor of this software is Silicon Laboratories Inc.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
******************************************************************************/

#ifndef SL_I2C_INSTANCES_H
#define SL_I2C_INSTANCES_H

#ifdef __cplusplus
extern "C" {
#endif

#include "sl_si91x_i2c.h"


extern sl_i2c_config_t sl_i2c_i2c2_config ;

void sl_i2c_init_instances(void);

#ifdef __cplusplus
}
#endif

#endif // SL_I2C_INSTANCES_H
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
#include "sl_si91x_power_manager.h"
#include "sl_si91x_power_manager_init.h"
#endif // SL_ICD_ENABLED
#if defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR
#include "sl_i2c_instances.h"
#endif // defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR
#include "sl_si91x_button_instances.h"
#include "sl_si91x_led_instances.h"
#include "sl_ulp_timer_instances.h"
Expand Down Expand Up @@ -54,6 +57,9 @@ void sl_kernel_start(void)

void sl_driver_init(void)
{
#if defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR
sl_i2c_init_instances();
#endif // defined(SL_MATTER_USE_SI70XX_SENSOR) && SL_MATTER_USE_SI70XX_SENSOR
button_init_instances();
led_init_instances();
}
Expand Down
69 changes: 69 additions & 0 deletions board-support/si91x/siwx917/BRD4343A/autogen/sl_i2c_init.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/***************************************************************************//**
* @file sl_i2c_init.c.jinja
* @brief I2C Driver Instance Initialization
*******************************************************************************
* # License
* <b>Copyright 2023 Silicon Laboratories Inc. www.silabs.com</b>
*******************************************************************************
*
* SPDX-License-Identifier: Zlib
*
* The licensor of this software is Silicon Laboratories Inc.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
******************************************************************************/

#include "sl_si91x_i2c.h"

#include "sl_si91x_i2c_init_i2c2_config.h"


#include "sl_i2c_instances.h"


sl_i2c_config_t sl_i2c_i2c2_config = {
.mode = SL_I2C_I2C2_MODE,
.operating_mode = SL_I2C_I2C2_OPERATING_MODE,
.transfer_type = SL_I2C_I2C2_TRANSFER_TYPE,
.i2c_callback = NULL,
};



sl_i2c_pin_init_t sl_i2c_i2c2_pin_init = {
.sda_port = SL_I2C_I2C2_SDA_PORT,
.sda_pin = SL_I2C_I2C2_SDA_PIN,
.sda_mux = SL_I2C_I2C2_SDA_MUX,
.sda_pad = SL_I2C_I2C2_SDA_PAD,
.scl_port = SL_I2C_I2C2_SCL_PORT,
.scl_pin = SL_I2C_I2C2_SCL_PIN,
.scl_mux = SL_I2C_I2C2_SCL_MUX,
.scl_pad = SL_I2C_I2C2_SCL_PAD,
.instance = SL_I2C2,
};



void sl_i2c_init_instances(void)
{


sl_si91x_i2c_pin_init(&sl_i2c_i2c2_pin_init);


}
Loading
Loading