diff options
author | root <root@avtech.domain.avtechpulse.com> | 1999-12-31 19:18:59 -0500 |
---|---|---|
committer | root <root@avtech.domain.avtechpulse.com> | 1999-12-31 19:18:59 -0500 |
commit | 05cd0a817efa7e46ef0609f66eeb1888718e2cd6 (patch) | |
tree | 0b962babfe8b24e2991757da5eefe30734922be6 | |
parent | b2c2c72d381ab1b32fa5b5fc4e890fef6c2bf1e0 (diff) |
first working serial configuration
-rw-r--r-- | bus.c | 6 | ||||
-rw-r--r-- | device-functions.c | 8 |
2 files changed, 14 insertions, 0 deletions
@@ -201,6 +201,12 @@ static void gpmc_setup(void) int WRACCESSTIME = DATA_READY; int config6 = WRACCESSTIME << 24; + //uart5 stuff + pinmux_configurepin("lcd_data9", BIDIR | PULL_UP | MODE_4); + pinmux_configurepin("lcd_data8", MODE_4); + pinmux_configurepin("lcd_data14", BIDIR | PULL_UP | MODE_6); + pinmux_configurepin("lcd_data15", MODE_6); + // pinmux_configurepin("gpmc_csn0", PULL_UP | MODE_0); pinmux_configurepin("gpmc_oen_ren", PULL_UP | MODE_0); diff --git a/device-functions.c b/device-functions.c index 0e5338a..be715a2 100644 --- a/device-functions.c +++ b/device-functions.c @@ -4635,6 +4635,14 @@ int IO_Setup_RS232(int baud, char parity, char stopbits, char databits, char har // FIXME implement serial port changes here + FILE* configfile = fopen("/tmp/instgettyopts", "w"); + if(configfile){ + fprintf(configfile, "OPTS=-L %s\n", hardhand ? "-h" : ""); + fprintf(configfile, "BAUD=%d\n", baud); + fclose(configfile); + system("systemctl --no-block restart inst-getty@ttyO5.service"); + } + if (1) { // FIXME if changes are successful globals.Flash.baud = baud; globals.Flash.parity = parity; |