xiaoxiang781216 commented on code in PR #22297: URL: https://github.com/apache/nuttx/pull/22297#discussion_r4708528416
########## arch/tricore/src/common/aurix/CMakeLists.txt: ########## @@ -24,3 +24,7 @@ # of each family target_sources(arch PRIVATE tricore_serial.c) + +if(CONFIG_DEV_GPIO) + target_sources(arch PRIVATE tricore_gpio_lower.c) Review Comment: As I mentioned before, many drivers need control gpio in kernel space, but it's impossible to access gpio hardware if you implement on gpio driver interface directly. The better way is: 1. Implement gpio driver through ioexpender interface, so other kernel driveer can use it directly 2. Expose ioexpender drivers as /dev/gpiox through gpio_lowerhalf for userspace One implementation support two usages. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
