Commit graph

25 commits

Author SHA1 Message Date
Sean Cross
95fea803e1 main: Print register list after initing serial
The serial is in an unknown state at the start, so print the
register list after init.

This will cause some registers to get clobbered.  If we really need
to know the state of the registers early on, we should copy them
to RAM before our init code runs.

Signed-off-by: Sean Cross <xobs@kosagi.com>
2014-12-02 13:44:52 +08:00
Sean Cross
efd039aab1 main: Initialize LCD on boot
Now that we have LCD working, we can initialize the LCD when the board boots.

Signed-off-by: Sean Cross <xobs@kosagi.com>
2014-11-28 17:44:13 +08:00
Sean Cross
0ca1a5d757 main: Remove warning when building without AUTOMATED
The get_hex() function is only used when in AUTOMATED mode.

Signed-off-by: Sean Cross <xobs@kosagi.com>
2014-11-25 17:09:33 +08:00
Sean Cross
7e6500a28e main: Add firmware load/jump 2014-09-19 16:10:34 +08:00
bunnie
d21c18d1f0 initial take at LCD API
Nothing is correct at the moment, but basic commands are integrated
into the shell, which will simplifying merging later on for files
that are shared-edit.
2014-09-15 10:15:25 +00:00
bunnie
09600c82c9 add backlight control command to fernly
The command "bl" will set the backlight to a value from between 0
to a #define constant max brightness level.
2014-09-15 14:59:53 +08:00
bunnie
49c2130545 add LED control function
Command-line to turn LEDs on the board on or off.

Also, modified .gitignore to be emacs-friendly.
2014-09-15 04:57:19 +00:00
Sean Cross
43a1517aec spi: Get basic SPI commands working 2014-09-12 16:46:11 +08:00
Sean Cross
72f92b7fd2 cmd: Split commands into their own files
Commands shouldn't all live in main.c.  Move everything except
"help" into its own command file.
2014-09-11 14:18:51 +08:00
Sean Cross
555af9447c fernvale: Fully get PSRAM working
This uses scriptic to run scripts that do bringup of various systems.
2014-09-11 13:16:06 +08:00
Sean Cross
c41333448f main: Fix "(null)" when unknown command is tried
It used to print out "Unknown command: (null)".  Fix it so that it
prints out the actual command instead.
2014-09-11 13:15:37 +08:00
Sean Cross
c2c331160c main: Add msleep command
Using a delay loop, it's more or less working right.
2014-09-11 13:15:37 +08:00
Sean Cross
05532408dc main: Disable battery watchdog
This allows us to run without a battery.  Otherwise, it would reboot
after about five seconds.
2014-09-09 15:04:36 +08:00
Sean Cross
4a2c43cde7 main: Don't enable interrupts
We don't yet have interrupts, so don't enable them.
2014-09-09 15:04:36 +08:00
Sean Cross
a066600558 main: Add peek and poke commands 2014-09-09 11:14:06 +08:00
Sean Cross
7eaaa0cc14 irq: Work on getting IRQs working 2014-08-27 12:32:06 +08:00
Sean Cross
8f18cfd58b fernvale: Get IRQs to at least do something
IRQs now do something.  They still don't work, though.
2014-08-26 17:09:42 +08:00
Sean Cross
6f04d659aa main: Add back in command line mode
It's useful to have.
2014-08-19 15:55:02 +08:00
Sean Cross
0d3b04307d fernly: Move to new offset 2014-07-21 18:25:49 +08:00
Sean Cross
6d5fb2d819 fernly: About to move to iram 2014-07-21 13:56:04 +08:00
Sean Cross
11a84110f1 fernly: Act as a shim for qemu
We're using bigger tools now.  Now we just act as a shim for qemu.
2014-07-18 18:43:47 +08:00
Sean Cross
5647866779 iram: work in progress 2014-07-18 15:37:19 +08:00
Sean Cross
7cb334571e fernly: wip 2014-07-04 17:31:32 +08:00
Sean Cross
9470228966 fernly: More blocks discovered 2014-06-13 17:00:11 +08:00
Sean Cross
685824f56e fernly: Initial commit
This is an initial commit of the code.  It just does prints "Hello, world!"
2014-06-12 12:58:06 +08:00