mirror of
https://github.com/stnolting/neorv32.git
synced 2025-04-24 06:07:52 -04:00
no more clearing of IO devices - done by std crt0.S
This commit is contained in:
parent
5fef7c3567
commit
498e7799d1
1 changed files with 1 additions and 11 deletions
|
@ -168,19 +168,9 @@ int main(void) {
|
|||
|
||||
// ------------------------------------------------
|
||||
// Processor hardware initialization
|
||||
// - all IO devices are reset and disbaled by the crt0 code
|
||||
// ------------------------------------------------
|
||||
|
||||
// reset system time
|
||||
MTIME_LO = 0;
|
||||
MTIME_HI = 0;
|
||||
|
||||
// deactivate unused IO devices
|
||||
neorv32_wdt_disable();
|
||||
neorv32_pwm_disable();
|
||||
neorv32_spi_disable();
|
||||
neorv32_trng_disable();
|
||||
neorv32_twi_disable();
|
||||
|
||||
// get clock speed (in Hz)
|
||||
uint32_t clock_speed = SYSINFO_CLK;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue