]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1_FreedomStudio/freedom-metal/gloss/sys_sysconf.c
452a252ae9c74c4966de1d372b938d1499250c0e
[freertos] / FreeRTOS / Demo / RISC-V_RV32_SiFive_HiFive1_FreedomStudio / freedom-metal / gloss / sys_sysconf.c
1 #include <unistd.h>
2 #include <time.h>
3
4 /* Get configurable system variables.  */
5
6 long
7 _sysconf(int name)
8 {
9   switch (name)
10     {
11     case _SC_CLK_TCK:
12       return CLOCKS_PER_SEC;
13     }
14
15   return -1;
16 }