示例#1
0
文件: bsp.c 项目: MCUapps/qpc-gnu
/*..........................................................................*/
void BSP_displayPhilStat(uint8_t n, char const *stat) {
    (void)n;
    (void)stat;
    LED0_toggle();

    QS_BEGIN(PHILO_STAT, AO_Philo[n])  /* application-specific record begin */
        QS_U8(1, n);                                  /* Philosopher number */
        QS_STR(stat);                                 /* Philosopher status */
    QS_END()
}
示例#2
0
inline void led_blinkStatus(void) {

    static unsigned int i = 0;

    i++;

    if (i >= 65000u) {

        i = 0;
        LED0_toggle();

    }

}