]> granicus.if.org Git - esp-idf/commitdiff
Easier use of -Wsign-conversion warnings needs changes.
authorPer Malmberg <per.malmberg@gmail.com>
Tue, 5 Mar 2019 20:59:54 +0000 (21:59 +0100)
committerIvan Grokhotkov <ivan@espressif.com>
Thu, 21 Mar 2019 07:08:04 +0000 (15:08 +0800)
Merges https://github.com/espressif/esp-idf/pull/3129

components/driver/include/driver/gpio.h
components/freertos/include/freertos/portable.h

index c2231a625b1c6ffb6b7a3d3d779846acddbd1645..ffa88a45cc5d30451c2cefbb1d10246e84cf4b24 100644 (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
index ce189f31cde17737635fd50bce3ee11820bec41c..7454441cf61356d22241ad3d31ea4f6c2ecbdf2b 100644 (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"