PCR Контроллер ШИМ: список регистров 31 |•|•|•|•|•|•|•|•|•|•|•|•|•|•|•|•| 16 15 |•|•|•|•|•|•|•|•|•|•|•|•|•|•|•|•| 00 Unused Bits 31 : 12PWM_PERIOD_RDY Bit 11R 0x0 PWM Period Register Ready PWM_PUL_START Bit 10R/W1S 0x0 PWM Pulse Output Start PWM_MODE Bit 9R/W 0x0 PWM Output Mode Select PWM_ACT_STA Bit 8R/W 0x0 PWM Active State PWM_PRESCAL_K Bits 7 : 0R/W 0x0 PWM pre-scale K, actual pre-scale is (K+1) Команда U-Boot для чтения регистра md 6000000300c014 1Bit fields structuretypedef union pcr { struct { unsigned pwm_prescal_k : 8; unsigned pwm_act_sta : 1; unsigned pwm_mode : 1; unsigned pwm_pul_start : 1; unsigned pwm_period_rdy : 1; unsigned unused0 : 20; } b; unsigned long w; } PCR |