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

Subversion Repositories neorv32

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /neorv32/trunk/sw/example/demo_pwm
    from Rev 32 to Rev 34
    Reverse comparison

Rev 32 → Rev 34

/main.c
49,7 → 49,7
/** UART BAUD rate */
#define BAUD_RATE 19200
/** Maximum PWM output intensity (0..255) */
#define PWM_MAX 200
#define PWM_MAX 128
/**@}*/
 
 
56,7 → 56,7
/**********************************************************************//**
* This program generates a simple dimming sequence for PWM channel 0,1,2.
*
* @note This program requires the PWM to be synthesized (the UART is optional).
* @note This program requires the PWM controller to be synthesized (the UART is optional).
*
* @return Irrelevant.
**************************************************************************/
121,7 → 121,7
neorv32_pwm_set(ch, pwm);
}
 
neorv32_cpu_delay_ms(5); // wait ~5ms
neorv32_cpu_delay_ms(10); // wait ~10ms
}
 
return 0;
/makefile
59,6 → 59,9
# User flags for additional configuration (will be added to compiler flags)
USER_FLAGS ?=
 
# Serial port for executable upload via bootloer
COM_PORT ?= /dev/ttyUSB0
 
# Relative or absolute path to the NEORV32 home folder
NEORV32_HOME ?= ../../..
# *****************************************************************************
253,6 → 256,13
 
 
# -----------------------------------------------------------------------------
# Upload executable via serial port to bootloader
# -----------------------------------------------------------------------------
upload: $(APP_EXE)
@sh $(NEORV32_EXG_PATH)/uart_upload.sh $(COM_PORT) $(APP_EXE)
 
 
# -----------------------------------------------------------------------------
# Show configuration
# -----------------------------------------------------------------------------
info:
315,6 → 325,7
@echo " clean - clean up project"
@echo " clean_all - clean up project, core libraries and image generator"
@echo " bootloader - compile, generate and install VHDL BOOTROM boot image (for bootloader only!)"
@echo " upload - upload <neorv32_exe.bin> executable via serial port <COM_PORT> to bootloader"
 
 
# -----------------------------------------------------------------------------

powered by: WebSVN 2.1.0

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