Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/Tools/Linux_HAL_Essentials/pru/rangefinderpru/pru_ctrl.h
Views: 1800
12/* PRU_CTRL register set */3typedef struct{45/* PRU_CTRL_CONTROL register bit field */6union {7volatile uint32_t CTRL;89volatile struct{10unsigned SOFT_RST_N : 1;11unsigned EN : 1;12unsigned SLEEPING : 1;13unsigned CTR_EN : 1;14unsigned rsvd4 : 4;15unsigned SINGLE_STEP : 1;16unsigned rsvd9 : 6;17unsigned RUNSTATE : 1;18unsigned PCTR_RST_VAL : 16;19} CONTROL_bit;20} ; // 0x0212223/* PRU_CTRL_STATUS register bit field */24union {25volatile uint32_t STS;2627volatile struct{28unsigned PCTR : 16;29unsigned rsvd16 : 16;30} STATUS_bit;31} ; // 0x4323334/* PRU_CTRL_WAKEUP_EN register bit field */35union {36volatile uint32_t WAKEUP_EN;3738volatile struct{39unsigned BITWISE_ENS : 32;40} WAKEUP_EN_bit;41} ; // 0x8424344/* PRU_CTRL_CYCLE register bit field */45union {46volatile uint32_t CYCLE;4748volatile struct{49unsigned CYCLECOUNT : 32;50} CYCLE_bit;51} ; // 0xC525354/* PRU_CTRL_STALL register bit field */55union {56volatile uint32_t STALL;5758volatile struct{59unsigned STALLCOUNT : 32;60} STALL_bit;61} ; // 0x10626364uint32_t rsvd14[3]; // 0x14 - 0x1C656667/* PRU_CTRL_CTBIR0 register bit field */68union {69volatile uint32_t CTBIR0;7071volatile struct{72unsigned C24_BLK_IDX : 8;73unsigned rsvd8 : 8;74unsigned C25_BLK_IDX : 8;75unsigned rsvd24 : 8;76} CTBIR0_bit;77} ; // 0x20787980/* PRU_CTRL_CTBIR1 register bit field */81union {82volatile uint32_t CTBIR1;8384volatile struct{85unsigned C26_BLK_IDX : 8;86unsigned rsvd8 : 8;87unsigned C27_BLK_IDX : 8;88unsigned rsvd24 : 8;89} CTBIR1_bit;90} ; // 0x24919293/* PRU_CTRL_CTPPR0 register bit field */94union {95volatile uint32_t CTPPR0;9697volatile struct{98unsigned C28_BLK_POINTER : 16;99unsigned C29_BLK_POINTER : 16;100} CTPPR0_bit;101} ; // 0x28102103104/* PRU_CTRL_CTPPR1 register bit field */105union {106volatile uint32_t CTPPR1;107108volatile struct{109unsigned C30_BLK_POINTER : 16;110unsigned C31_BLK_POINTER : 16;111} CTPPR1_bit;112} ; // 0x2C113114} pruCtrl;115116/* Definition of control register structures. */117#define PRU0_CTRL (*((volatile pruCtrl*)0x22000))118#define PRU1_CTRL (*((volatile pruCtrl*)0x24000))119120121