mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 02:57:46 +00:00
avr: initial implementation for PWM
Signed-off-by: Ron Evans <ron@hybridgroup.com> Edited slightly by Ayke van Laethem
This commit is contained in:
committed by
Ayke van Laethem
parent
94358959f5
commit
fc0ff3a987
@@ -56,8 +56,8 @@ func initUART() {
|
||||
// Initialize UART at 115200 baud when running at 16MHz.
|
||||
*avr.UBRR0H = 0
|
||||
*avr.UBRR0L = 8
|
||||
*avr.UCSR0B = avr.UCSR0B_RXEN0 | avr.UCSR0B_TXEN0 // enable RX and TX
|
||||
*avr.UCSR0C = avr.UCSR0C_UCSZ0 // 8-bits data
|
||||
*avr.UCSR0B = avr.UCSR0B_RXEN0 | avr.UCSR0B_TXEN0 // enable RX and TX
|
||||
*avr.UCSR0C = avr.UCSR0C_UCSZ01 | avr.UCSR0C_UCSZ00 // 8-bits data
|
||||
}
|
||||
|
||||
func putchar(c byte) {
|
||||
|
||||
Reference in New Issue
Block a user