���}��em335 GPIO �O�Æ��} ����41721���Pע�^���� |
---|
![]() benben |
1�� ��Ϣ | ���� | �]�� |
![]() ![]() ![]() ![]() |
em335 GPIO �O�Æ��} ![]() em335 linuxϵ�y�£����a���£� int fd = open("/dev/em335x_gpio", O_RDWR); int rc = GPIO_OutEnable(fd, 0x4500000); uint dwPinState = 0xFFFFFFFF; rc = GPIO_OutClear(fd, 1 << 20); rc = GPIO_PinState(fd, &dwPinState); //1 rc = GPIO_OutSet(fd, 1 << 20); rc = GPIO_PinState(fd, &dwPinState); //2 ���}��1�����꣬dwPinStateֵ��ffeff3ff��2�����꣬dwPinStateֵ��Ȼ��ffeff3ff�� GPIO_OutSet�]�������ã�2�����꣬dwPinState��ֵ����ԓ��fffff3ff� ���@ô����ʲô���}� �{�ú����õ�����test_gpio.c��ġ� |
�������� | ���� | �؏� ![]() |
![]() hzc |
2�� ��Ϣ | ���� | �]�� |
![]() ![]() ![]() ![]() |
![]() �����ÿ���{��GPIO_PinState֮ǰ������Ҫ�odwPinState�xֵ������{��GPIO_PinState��dwPinState��ֵ��׃�錍�HG[IO��ֵ����dwPinState���xֵ��ʾҪ�xȡ�Ď�λGPIO������0xffffffff���ʹ����xȡȫ��32λGPIO�����w���ԅ�����P�о����փԵ��f���� �����xȡGPIO��ֵ��ֻ��ݔ���B�������x��ݔ����B���Ǜ]�����x�ġ� [���N���ѽ���������2023-3-2 14:39:36���^]
|
�������� | ���� | �؏� ![]() |