Fix coding style and other small issues

This commit is contained in:
Alan C. Assis 2020-08-23 09:01:23 -03:00 committed by patacongo
parent 52d7d0cb98
commit 7a1342f503
4 changed files with 5 additions and 20 deletions

View File

@ -33,7 +33,7 @@
****************************************************************************/
#define XTHAL_GET_CCOUNT() ({ int __ccount; \
__asm__ __volatile__("rsr.ccount %0" : \
__asm__ __volatile__("rsr.ccount %0":\
"=a"(__ccount)); __ccount; })
#endif /* __ARCH_XTENSA_INCUDE_XTENSA_CORE_H */

View File

@ -88,7 +88,7 @@ config ESP32_RNG
bool "Random Number Generator (RNG)"
default n
depends on EXPERIMENTAL
select ARCH_HAVE_RNG
select ARCH_HAVE_RNG
---help---
ESP32 supports a RNG that passed on Dieharder test suite.

View File

@ -144,7 +144,9 @@ static int esp32_rng_initialize(void)
static bool first_flag = true;
if (false == first_flag)
return OK;
{
return OK;
}
first_flag = false;

View File

@ -18,23 +18,6 @@
*
****************************************************************************/
/****************************************************************************
* Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
****************************************************************************/
#ifndef __ARCH_XTENSA_SRC_ESP32_HARDWARE_WDEV_REG_H
#define __ARCH_XTENSA_SRC_ESP32_HARDWARE_WDEV_REG_H