Ignore:
Timestamp:
Jun 27, 2017, 10:53:32 AM (7 years ago)
Author:
ertl-honda
Message:

3.1.0を反映

Location:
asp3_wo_tecs/trunk/sample
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • asp3_wo_tecs/trunk/sample/Makefile

    r305 r306  
    208208CFG_OBJS := $(CFG_ASMOBJS) $(CFG_COBJS)
    209209CFG2_OUT_SRCS := kernel_cfg.h kernel_cfg.c $(CFG2_OUT_SRCS)
    210 CFG_CFLAGS := $(CFG_CFLAGS)
     210CFG_CFLAGS := -DTOPPERS_CB_TYPE_ONLY $(CFG_CFLAGS)
    211211
    212212#
     
    272272ALL_OBJS = $(START_OBJS) $(APPL_OBJS) $(SYSSVC_OBJS) $(CFG_OBJS) \
    273273                                                                                        $(END_OBJS) $(HIDDEN_OBJS)
     274ALL_LIBS = -lkernel $(LIBS)
    274275ifdef KERNEL_LIB
    275         ALL_LIBS = -lkernel $(LIBS)
    276276        LIBS_DEP = $(KERNEL_LIB)/libkernel.a $(filter %.a,$(LIBS))
    277277        OBJ_LDFLAGS := $(OBJ_LDFLAGS) -L$(KERNEL_LIB)
    278278        REALCLEAN_FILES := libkernel.a $(REALCLEAN_FILES)
    279279else
    280         ALL_LIBS = libkernel.a $(LIBS)
    281280        LIBS_DEP = libkernel.a $(filter %.a,$(LIBS))
     281        OBJ_LDFLAGS := $(OBJ_LDFLAGS) -L.
    282282endif
    283283
  • asp3_wo_tecs/trunk/sample/sample1.c

    r302 r306  
    66 *  Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
    77 *                              Toyohashi Univ. of Technology, JAPAN
    8  *  Copyright (C) 2004-2015 by Embedded and Real-Time Systems Laboratory
     8 *  Copyright (C) 2004-2016 by Embedded and Real-Time Systems Laboratory
    99 *              Graduate School of Information Science, Nagoya Univ., JAPAN
    1010 *
     
    5353 *  の責任を負わない.
    5454 *
    55  *  $Id: sample1.c 346 2015-07-18 02:12:08Z ertl-hiro $
     55 *  $Id: sample1.c 711 2016-03-29 14:45:54Z ertl-hiro $
    5656 */
    5757
     
    237237
    238238/*
     239 *  割込みハンドラ
     240 */
     241#ifdef INTNO1
     242
     243void intno1_isr(intptr_t exinf)
     244{
     245        intno1_clear();
     246        SVC_PERROR(rot_rdq(HIGH_PRIORITY));
     247        SVC_PERROR(rot_rdq(MID_PRIORITY));
     248        SVC_PERROR(rot_rdq(LOW_PRIORITY));
     249}
     250
     251#endif /* INTNO1 */
     252
     253/*
    239254 *  CPU例外ハンドラ
    240255 */
  • asp3_wo_tecs/trunk/sample/sample1.cfg

    r304 r306  
    1717CRE_CYC(CYCHDR1, { TA_NULL, { TNFY_HANDLER, 0, cyclic_handler }, 2000000, 0 });
    1818CRE_ALM(ALMHDR1, { TA_NULL, { TNFY_HANDLER, 0, alarm_handler }});
     19#ifdef INTNO1
     20CFG_INT(INTNO1, { INTNO1_INTATR, INTNO1_INTPRI });
     21CRE_ISR(INTNO1_ISR, { TA_NULL, 0, INTNO1, intno1_isr, 1 });
     22#endif /* INTNO1 */
    1923#ifdef CPUEXC1
    2024DEF_EXC(CPUEXC1, { TA_NULL, cpuexc_handler });
  • asp3_wo_tecs/trunk/sample/sample1.h

    r302 r306  
    66 *  Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
    77 *                              Toyohashi Univ. of Technology, JAPAN
    8  *  Copyright (C) 2004-2014 by Embedded and Real-Time Systems Laboratory
     8 *  Copyright (C) 2004-2016 by Embedded and Real-Time Systems Laboratory
    99 *              Graduate School of Information Science, Nagoya Univ., JAPAN
    1010 *
     
    5353 *  の責任を負わない.
    5454 *
    55  *  $Id: sample1.h 286 2014-11-29 07:51:11Z ertl-hiro $
     55 *  $Id: sample1.h 705 2016-03-29 14:16:41Z ertl-hiro $
    5656 */
    5757
     
    108108extern void     main_task(intptr_t exinf);
    109109extern void exc_task(intptr_t exinf);
     110#ifdef INTNO1
     111extern void intno1_isr(intptr_t exinf);
     112#endif /* INTNO1 */
    110113#ifdef CPUEXC1
    111114extern void     cpuexc_handler(void *p_excinf);
Note: See TracChangeset for help on using the changeset viewer.