-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR adds a library for controlling the am335x ehrpwm module. This is a work-in-progress, having demonstrated how to configure the basic settings and see a functional PWM output. This PR also demonstrates a failure to make PWM interrupt generation work for the PRU. Will post a forum question using this content. See comments in lib/pwm/am335x/pwm-am335x.c.
- Loading branch information
Showing
127 changed files
with
2,436 additions
and
609 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "kernel/ti-linux-kernel-dev"] | ||
path = kernel/ti-linux-kernel-dev | ||
url = git@github.com:RobertCNelson/ti-linux-kernel-dev.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# -*- Mode: Python -*- | ||
cc_binary( | ||
name = "led_outin", | ||
srcs = [ | ||
"led_outin.c", | ||
":irqgen", | ||
], | ||
additional_linker_inputs = [ | ||
"//tools/toolchain/am335x:linker_cmd", | ||
], | ||
linkopts = [ | ||
"$(location //tools/toolchain/am335x:linker_cmd)", | ||
"--stack_size=0x1000", | ||
], | ||
deps = [ | ||
"//lib/coroutine", | ||
"//lib/gpio", | ||
"//lib/initproc", | ||
"//lib/intc:service", | ||
"//lib/log/daemon", | ||
"//lib/rpmsg", | ||
"//lib/time:process", | ||
"//lib/resource", | ||
"//tools/toolchain/am335x", | ||
], | ||
) | ||
|
||
genrule( | ||
name = "irqgen", | ||
srcs = [ | ||
# Order is important: args[0] is all events | ||
# Remaining args define arriving system events. | ||
# (Only) one should set the host. | ||
"//arch:sysevts", | ||
"//lib/rpmsg/am335x:irq", | ||
"//lib/time/am335x:iep_tim_cap_cmp_pend", | ||
], | ||
outs = [ | ||
"irq.c", | ||
], | ||
cmd = "./$(location //tools/cmd/irqgen:irqgen) $(SRCS) > $@", | ||
tools = [ | ||
"//tools/cmd/irqgen", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This example flashes a LED on pin P9_25 and reads the value on P9_23. |
Oops, something went wrong.