Easier use of -Wsign-conversion warnings needs changes.

Merges https://github.com/espressif/esp-idf/pull/3129
This commit is contained in:
Per Malmberg 2019-03-05 21:59:54 +01:00 committed by Ivan Grokhotkov
parent e5e41e0a5e
commit 36c73e6d70
2 changed files with 2 additions and 1 deletions

View file

@ -128,6 +128,7 @@ extern "C" {
#define GPIO_IS_VALID_OUTPUT_GPIO(gpio_num) ((GPIO_IS_VALID_GPIO(gpio_num)) && (gpio_num < 34)) /*!< Check whether it can be a valid GPIO number of output mode */
typedef enum {
GPIO_NUM_NC = -1, /*!< Use to signal not connected to S/W */
GPIO_NUM_0 = 0, /*!< GPIO0, input and output */
GPIO_NUM_1 = 1, /*!< GPIO1, input and output */
GPIO_NUM_2 = 2, /*!< GPIO2, input and output

View file

@ -204,7 +204,7 @@ BaseType_t xPortInterruptedFromISRContext();
/* Multi-core: get current core ID */
static inline uint32_t IRAM_ATTR xPortGetCoreID() {
int id;
uint32_t id;
__asm__ __volatile__ (
"rsr.prid %0\n"
" extui %0,%0,13,1"