You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2020/03/01 22:52:16 UTC

[GitHub] [mynewt-core] brainstorm commented on issue #2125: NRF_CLOCK tinyusb function signature change

brainstorm commented on issue #2125: NRF_CLOCK tinyusb function signature change
URL: https://github.com/apache/mynewt-core/issues/2125#issuecomment-593157038
 
 
   Thanks, makes sense, here's the result:
   
   ```
   $ newt upgrade
   Skipping "apache-mynewt-mcumgr": already upgraded (0.0.0)
   Skipping "mynewt_nrf52840_mdk": already upgraded (0.0.0)
   Skipping "tinyusb": already upgraded (0.0.0)
   Making the following changes to the project:
       upgrade apache-mynewt-core (1.7.0 --> 0.0.0)
       upgrade apache-mynewt-nimble (1.2.0 --> 0.0.0)
       upgrade mcuboot (1.3.1 --> 0.0.0)
   apache-mynewt-core successfully upgraded to version 0.0.0
   apache-mynewt-nimble successfully upgraded to version 0.0.0
   mcuboot successfully upgraded to version 0.0.0
   
   $  newt build nrf52_mdp_link
   WARNING: apache-mynewt-core: Repo version missing from compatibility map
   Building target targets/nrf52_mdp_link
   Compiling repos/mynewt_nrf52840_mdk/hw/bsp/nrf52840_mdk/src/sbrk.c
   Compiling repos/mynewt_nrf52840_mdk/hw/bsp/nrf52840_mdk/src/hal_bsp.c
   Compiling apps/mdp-link/src/main.c
   Compiling apps/mdp-link/src/usb_descriptors.c
   Assembling repos/mynewt_nrf52840_mdk/hw/bsp/nrf52840_mdk/src/arch/cortex_m4/gcc_startup_nrf52840.s
   Assembling repos/mynewt_nrf52840_mdk/hw/bsp/nrf52840_mdk/src/arch/cortex_m4/gcc_startup_nrf52_split.s
   Error: apps/mdp-link/src/main.c: In function 'usb_hardware_init':
   apps/mdp-link/src/main.c:230:9: error: passing argument 1 of 'nrf_power_int_enable' makes pointer from integer without a cast [-Werror=int-conversion]
            NRF_POWER_INT_USBDETECTED_MASK |
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            NRF_POWER_INT_USBREMOVED_MASK  |
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            NRF_POWER_INT_USBPWRRDY_MASK);
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from apps/mdp-link/src/main.c:36:
   repos/apache-mynewt-core/hw/mcu/nordic/src/ext/nrfx/hal/nrf_power.h:899:62: note: expected 'NRF_POWER_Type *' {aka 'struct <anonymous> *'} but argument is of type 'int'
    NRF_STATIC_INLINE void nrf_power_int_enable(NRF_POWER_Type * p_reg, uint32_t mask)
                                                ~~~~~~~~~~~~~~~~~^~~~~
   apps/mdp-link/src/main.c:229:3: error: too few arguments to function 'nrf_power_int_enable'
      nrf_power_int_enable(
      ^~~~~~~~~~~~~~~~~~~~
   In file included from apps/mdp-link/src/main.c:36:
   repos/apache-mynewt-core/hw/mcu/nordic/src/ext/nrfx/hal/nrf_power.h:899:24: note: declared here
    NRF_STATIC_INLINE void nrf_power_int_enable(NRF_POWER_Type * p_reg, uint32_t mask)
                           ^~~~~~~~~~~~~~~~~~~~
   apps/mdp-link/src/main.c: In function 'POWER_CLOCK_IRQHandler':
   apps/mdp-link/src/main.c:254:22: error: too few arguments to function 'nrf_power_int_enable_get'
      uint32_t enabled = nrf_power_int_enable_get();
                         ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from apps/mdp-link/src/main.c:36:
   repos/apache-mynewt-core/hw/mcu/nordic/src/ext/nrfx/hal/nrf_power.h:909:28: note: declared here
    NRF_STATIC_INLINE uint32_t nrf_power_int_enable_get(NRF_POWER_Type const * p_reg)
                               ^~~~~~~~~~~~~~~~~~~~~~~~
   apps/mdp-link/src/main.c:257:37: error: passing argument 1 of 'nrf_power_event_get_and_clear' makes pointer from integer without a cast [-Werror=int-conversion]
          nrf_power_event_get_and_clear(NRF_POWER_EVENT_USBDETECTED))
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from apps/mdp-link/src/main.c:36:
   repos/apache-mynewt-core/hw/mcu/nordic/src/ext/nrfx/hal/nrf_power.h:882:72: note: expected 'NRF_POWER_Type *' {aka 'struct <anonymous> *'} but argument is of type 'int'
    NRF_STATIC_INLINE bool nrf_power_event_get_and_clear(NRF_POWER_Type *  p_reg,
                                                         ~~~~~~~~~~~~~~~~~~^~~~~
   apps/mdp-link/src/main.c:257:7: error: too few arguments to function 'nrf_power_event_get_and_clear'
          nrf_power_event_get_and_clear(NRF_POWER_EVENT_USBDETECTED))
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from apps/mdp-link/src/main.c:36:
   repos/apache-mynewt-core/hw/mcu/nordic/src/ext/nrfx/hal/nrf_power.h:882:24: note: declared here
    NRF_STATIC_INLINE bool nrf_power_event_get_and_clear(NRF_POWER_Type *  p_reg,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   apps/mdp-link/src/main.c:263:37: error: passing argument 1 of 'nrf_power_event_get_and_clear' makes pointer from integer without a cast [-Werror=int-conversion]
          nrf_power_event_get_and_clear(NRF_POWER_EVENT_USBREMOVED))
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from apps/mdp-link/src/main.c:36:
   repos/apache-mynewt-core/hw/mcu/nordic/src/ext/nrfx/hal/nrf_power.h:882:72: note: expected 'NRF_POWER_Type *' {aka 'struct <anonymous> *'} but argument is of type 'int'
    NRF_STATIC_INLINE bool nrf_power_event_get_and_clear(NRF_POWER_Type *  p_reg,
                                                         ~~~~~~~~~~~~~~~~~~^~~~~
   apps/mdp-link/src/main.c:263:7: error: too few arguments to function 'nrf_power_event_get_and_clear'
          nrf_power_event_get_and_clear(NRF_POWER_EVENT_USBREMOVED))
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from apps/mdp-link/src/main.c:36:
   repos/apache-mynewt-core/hw/mcu/nordic/src/ext/nrfx/hal/nrf_power.h:882:24: note: declared here
    NRF_STATIC_INLINE bool nrf_power_event_get_and_clear(NRF_POWER_Type *  p_reg,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   apps/mdp-link/src/main.c:269:37: error: passing argument 1 of 'nrf_power_event_get_and_clear' makes pointer from integer without a cast [-Werror=int-conversion]
          nrf_power_event_get_and_clear(NRF_POWER_EVENT_USBPWRRDY))
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from apps/mdp-link/src/main.c:36:
   repos/apache-mynewt-core/hw/mcu/nordic/src/ext/nrfx/hal/nrf_power.h:882:72: note: expected 'NRF_POWER_Type *' {aka 'struct <anonymous> *'} but argument is of type 'int'
    NRF_STATIC_INLINE bool nrf_power_event_get_and_clear(NRF_POWER_Type *  p_reg,
                                                         ~~~~~~~~~~~~~~~~~~^~~~~
   apps/mdp-link/src/main.c:269:7: error: too few arguments to function 'nrf_power_event_get_and_clear'
          nrf_power_event_get_and_clear(NRF_POWER_EVENT_USBPWRRDY))
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from apps/mdp-link/src/main.c:36:
   repos/apache-mynewt-core/hw/mcu/nordic/src/ext/nrfx/hal/nrf_power.h:882:24: note: declared here
    NRF_STATIC_INLINE bool nrf_power_event_get_and_clear(NRF_POWER_Type *  p_reg,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services