AVR®: Using Libc's stdio to Send Formatted Strings
In this video:
- Provide good community tutorials to understand using printf( )
- Set up a 'file' and a 'stream', using FDEV_SETUP_STREAM
- Copy our existing IRQ based void USART0_Transmit( unsigned char data ) function, then modifying the parameter types to match what FDEV_SETUP_STREAM expects to create int USART0_Transmit_IO( char data, FILE *steam ), in the process extending the functionality of our USART_irq driver.
- Test our formatted string.
- Add a loop counter to our formatted string, using Stanford's AVR Programming Wiki to check syntax.