LCOV - code coverage report
Current view: top level - modules/hal_nordic/nrfx - nrfx_glue.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 6 25 24.0 %
Date: 2022-08-18 11:36:24 Functions: 2 3 66.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 17 0.0 %

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * Copyright (c) 2018, Nordic Semiconductor ASA
       3                 :            :  *
       4                 :            :  * SPDX-License-Identifier: Apache-2.0
       5                 :            :  */
       6                 :            : 
       7                 :            : #include <nrfx.h>
       8                 :            : #include <kernel.h>
       9                 :            : 
      10                 :          1 : void nrfx_isr(const void *irq_handler)
      11                 :            : {
      12                 :          1 :         ((nrfx_irq_handler_t)irq_handler)();
      13                 :          1 : }
      14                 :            : 
      15                 :     917993 : void nrfx_busy_wait(uint32_t usec_to_wait)
      16                 :            : {
      17                 :     917993 :         k_busy_wait(usec_to_wait);
      18                 :     917993 : }
      19                 :            : 
      20                 :          0 : char const *nrfx_error_string_get(nrfx_err_t code)
      21                 :            : {
      22                 :            :         #define NRFX_ERROR_STRING_CASE(code)  case code: return #code
      23   [ #  #  #  #  :          0 :         switch (code) {
          #  #  #  #  #  
          #  #  #  #  #  
                #  #  # ]
      24                 :          0 :                 NRFX_ERROR_STRING_CASE(NRFX_SUCCESS);
      25                 :          0 :                 NRFX_ERROR_STRING_CASE(NRFX_ERROR_INTERNAL);
      26                 :          0 :                 NRFX_ERROR_STRING_CASE(NRFX_ERROR_NO_MEM);
      27                 :          0 :                 NRFX_ERROR_STRING_CASE(NRFX_ERROR_NOT_SUPPORTED);
      28                 :          0 :                 NRFX_ERROR_STRING_CASE(NRFX_ERROR_INVALID_PARAM);
      29                 :          0 :                 NRFX_ERROR_STRING_CASE(NRFX_ERROR_INVALID_STATE);
      30                 :          0 :                 NRFX_ERROR_STRING_CASE(NRFX_ERROR_INVALID_LENGTH);
      31                 :          0 :                 NRFX_ERROR_STRING_CASE(NRFX_ERROR_TIMEOUT);
      32                 :          0 :                 NRFX_ERROR_STRING_CASE(NRFX_ERROR_FORBIDDEN);
      33                 :          0 :                 NRFX_ERROR_STRING_CASE(NRFX_ERROR_NULL);
      34                 :          0 :                 NRFX_ERROR_STRING_CASE(NRFX_ERROR_INVALID_ADDR);
      35                 :          0 :                 NRFX_ERROR_STRING_CASE(NRFX_ERROR_BUSY);
      36                 :          0 :                 NRFX_ERROR_STRING_CASE(NRFX_ERROR_ALREADY_INITIALIZED);
      37                 :          0 :                 NRFX_ERROR_STRING_CASE(NRFX_ERROR_DRV_TWI_ERR_OVERRUN);
      38                 :          0 :                 NRFX_ERROR_STRING_CASE(NRFX_ERROR_DRV_TWI_ERR_ANACK);
      39                 :          0 :                 NRFX_ERROR_STRING_CASE(NRFX_ERROR_DRV_TWI_ERR_DNACK);
      40                 :          0 :                 default: return "unknown";
      41                 :            :         }
      42                 :            : }

Generated by: LCOV version 1.14