Dangerous Prototypes

Other projects => Past projects => Web platform => Topic started by: octal on August 02, 2010, 11:22:59 pm

Title: UART usage for debug
Post by: octal on August 02, 2010, 11:22:59 pm
Hello,
on the examples provided for webplatform I saw that everytime the UART is configured and that the example provide an implementation for UART1TX(), UART1RX(), ...

I would like to ask a question (maybe stupid one): Why not simply use the peripheral lib functions provided by Microchip for UART  like OpenUART1(...), putsUART1(...) ...

is there anything against using these functions ? (are these blocking functions ?)

I'm asking this as these functions are complete (fnc to print/read strings, char, ...) and I need such advanced dumping possibilities for debug (via the FT232 chip already on the webplatform board).

Regards
Title: Re: UART usage for debug
Post by: ian on August 03, 2010, 08:42:16 am
Hi octal - Yes, you can use the Microchip built-in functions. We use our own because we like to be closer to the hardware and work with everything at the register level.

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.00852038040session_write_close ( )...(null):0
20.00882169616ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.00882170392Database_MySQL->query( ).../DatabaseHandler.php:119
40.05692309112Database_MySQL->error( ).../Db-mysql.class.php:273