updates Ehrenberg device files

This commit is contained in:
2024-07-16 16:22:42 +02:00
parent 1f4b4d2bb9
commit 79a245b7f2
4 changed files with 273 additions and 280 deletions

View File

@@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: Apache-2.0
*
* Generated at 2024-06-16 13:56:44 UTC
* Generated at 2024-07-13 07:46:30 UTC
* by peakrdl_mnrs version 1.2.5
*/
@@ -67,10 +67,6 @@ typedef struct __attribute((__packed__)) {
#define I2S_STATUS_RIGHT_AVAIL_MASK 0x1
#define I2S_STATUS_RIGHT_AVAIL(V) ((V & I2S_STATUS_RIGHT_AVAIL_MASK) << I2S_STATUS_RIGHT_AVAIL_OFFS)
#define I2S_STATUS_BOTH_AVAIL_OFFS 4
#define I2S_STATUS_BOTH_AVAIL_MASK 0x1
#define I2S_STATUS_BOTH_AVAIL(V) ((V & I2S_STATUS_BOTH_AVAIL_MASK) << I2S_STATUS_BOTH_AVAIL_OFFS)
#define I2S_I2S_CLOCK_CTRL_OFFS 0
#define I2S_I2S_CLOCK_CTRL_MASK 0xfffff
#define I2S_I2S_CLOCK_CTRL(V) ((V & I2S_I2S_CLOCK_CTRL_MASK) << I2S_I2S_CLOCK_CTRL_OFFS)
@@ -162,9 +158,6 @@ inline uint32_t get_i2s_status_left_avail(volatile i2s_t* reg){
inline uint32_t get_i2s_status_right_avail(volatile i2s_t* reg){
return (reg->STATUS >> 3) & 0x1;
}
inline uint32_t get_i2s_status_both_avail(volatile i2s_t* reg){
return (reg->STATUS >> 4) & 0x1;
}
//I2S_I2S_CLOCK_CTRL
inline uint32_t get_i2s_i2s_clock_ctrl(volatile i2s_t* reg){