OpenCores
URL https://opencores.org/ocsvn/neorv32/neorv32/trunk

Subversion Repositories neorv32

[/] [neorv32/] [trunk/] [sw/] [example/] [demo_pwm/] [main.c] - Diff between revs 42 and 44

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 42 Rev 44
Line 1... Line 1...
// #################################################################################################
// #################################################################################################
// # << NEORV32 - PWM Demo Program >>                                                              #
// # << NEORV32 - PWM Demo Program >>                                                              #
// # ********************************************************************************************* #
// # ********************************************************************************************* #
// # BSD 3-Clause License                                                                          #
// # BSD 3-Clause License                                                                          #
// #                                                                                               #
// #                                                                                               #
// # Copyright (c) 2020, Stephan Nolting. All rights reserved.                                     #
// # Copyright (c) 2021, Stephan Nolting. All rights reserved.                                     #
// #                                                                                               #
// #                                                                                               #
// # Redistribution and use in source and binary forms, with or without modification, are          #
// # Redistribution and use in source and binary forms, with or without modification, are          #
// # permitted provided that the following conditions are met:                                     #
// # permitted provided that the following conditions are met:                                     #
// #                                                                                               #
// #                                                                                               #
// # 1. Redistributions of source code must retain the above copyright notice, this list of        #
// # 1. Redistributions of source code must retain the above copyright notice, this list of        #
Line 74... Line 74...
 
 
 
 
  // init UART at default baud rate, no parity bits, no rx interrupt, no tx interrupt
  // init UART at default baud rate, no parity bits, no rx interrupt, no tx interrupt
  neorv32_uart_setup(BAUD_RATE, 0b00, 0, 0);
  neorv32_uart_setup(BAUD_RATE, 0b00, 0, 0);
 
 
 
  // check available hardware extensions and compare with compiler flags
 
  neorv32_rte_check_isa(0); // silent = 0 -> show message if isa mismatch
 
 
  // say hello
  // say hello
  neorv32_uart_print("PWM demo program\n");
  neorv32_uart_print("PWM demo program\n");
 
 
 
 
  // deativate all PWM channels
  // deativate all PWM channels

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.