FreeCalypso > hg > fc-magnetite
changeset 455:beff67c568cf
UART trace driver: added TR_BAUD_812500 capability
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 16 Mar 2018 02:34:30 +0000 |
parents | 8473cabf491d |
children | 3d772a6268c4 |
files | src/cs/drivers/drv_core/uart/traceswitch.h src/cs/drivers/drv_core/uart/uart.c |
diffstat | 2 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cs/drivers/drv_core/uart/traceswitch.h Fri Mar 16 00:02:36 2018 +0000 +++ b/src/cs/drivers/drv_core/uart/traceswitch.h Fri Mar 16 02:34:30 2018 +0000 @@ -27,7 +27,8 @@ TR_BAUD_600, TR_BAUD_300, TR_BAUD_150, - TR_BAUD_75 + TR_BAUD_75, + TR_BAUD_812500 /* FreeCalypso addition */ } T_tr_Baudrate; #endif /* __TRACESWITCH_H__ */
--- a/src/cs/drivers/drv_core/uart/uart.c Fri Mar 16 00:02:36 2018 +0000 +++ b/src/cs/drivers/drv_core/uart/uart.c Fri Mar 16 02:34:30 2018 +0000 @@ -315,7 +315,8 @@ 74, /* 600 baud. */ 148, /* 300 baud. */ 40, /* 150 baud. */ - 81 /* 75 baud. */ + 81, /* 75 baud. */ + 1 /* 812500 baud. */ }; static const SYS_UWORD8 dlh[] = @@ -335,7 +336,8 @@ 5, /* 600 baud. */ 10, /* 300 baud. */ 21, /* 150 baud. */ - 42 /* 75 baud. */ + 42, /* 75 baud. */ + 0 /* 812500 baud. */ };