-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: support stm32f4 gpio output function and example app: gpioer #86
Conversation
Because F9 is microkernel based, it would be better to put hardware driver in user space. |
Thank for your opinion. Sure, I agreed with you. Now, I'm trying to do the following modification. firstly, I created all api related for gpio.c to gpioer.c (each function with __USER_TEXT). secondly, the memory access fault because gpioer.c api access the following address RCC_AHB1ENR, |
update gpioer sample code which access AHB1_1DEV from user space directly. because RCC_AHB1ENR(0x40023830) will be accessed, memory.c was modified with AHB1_1DEV's upbound range from 0x40022400 to 0x40023c00. |
…button input probe
… combine gpio.c and gpioer.c to user mode library
Thank for info. I referred the student code. That's great way to avoid hacking root_thread.c, I fixed code and remove duplicated code and put gpio.c to user mode. I extended the Kconfig for Applications to make default build original apps. |
@benwei, please rebase to master. In addition, @georgekang is going to revise the interrupt handling, and my student is working on the new driver model. We expect to make it fairly functioned next week. |
WIP: user_interrupt branch |
Cc. @slpbaby , who is working on STM32F429 Discovery platform support. |
Deprecated since we should always follow principle of least privilege (POLA). |
I am trying to build an F9 image that can flash the LEDs on the STM32F407 Discovery board. I find that the forked repository of benwei does not build. I merged the benwei gpio code into my fork of latest f9-kernel. It builds successfully but does not run. Is there any successful code demonstration of flashing the LEDs? Thank you. |
Here is first version of gpio function support , just gpio with output-only api.
An Example of gpioer with user the stm32f407 built-in four leds.
The gpioer app will make the 4 leds blink with 1 second interval.