Skip to content
  • alex@thinkpad's avatar
    Moved timer functions to timer.h (always included from dryos.h) · bcbabb33f220
    alex@thinkpad authored
    Renamed get_ms_clock_value / get_us_clock_value to get_ms_clock / get_us_clock
    Replaced all hardcoded references to 0xC0242014 with GET_DIGIC_TIMER()
    ```
    find . -not -path '*/\.*' -type f -name '*.c' -o -name '*.h' -exec sed -i 's/get_ms_clock_value/get_ms_clock/g' {} +
    find . -not -path '*/\.*' -type f -name '*.c' -o -name '*.h' -exec sed -i 's/get_us_clock_value/get_us_clock/g' {} +
    sed -i 's/\*(volatile uint32_t \*)0xC0242014/GET_DIGIC_TIMER()/' */*.c
    ...
    ```
    
    --HG--
    branch : lua_fix
    bcbabb33f220