Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
429 B

/*
* Copyright (c) 2022 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "comm_widget.h"
/*
* Operation codes
*/
#define CW_OPCODE_CRRD 0x06
#define CW_OPCODE_CRWR 0x07
void cw_sb_write(uint32_t dest, uint32_t func, uint16_t address, uint32_t data)
{
cw_upstream_set_attr(dest, func, CW_OPCODE_CRWR, 0, 0);
cw_upstream_set_address16(address);
cw_upstream_set_data(data);
cw_upstream_do_pw();
}