Giter VIP home page Giter VIP logo

tneo's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tneo's Issues

DSP Registers are not saved in Context Switch

Hey

As the dsPIC33 has the same Architecture except the additional dsp register and as you wrote your kernel is useable for dspic devices why are you not saving the dsp Registers during a context switch?

It should be inserted in File tneo/src/arch/pic24_dspic/tn_arch_pic24.S and during stack initialisation.

So that an working dsp operation with Registers ACCA*/ACCB*/DO is context save.

TNeo hangs in the task with a highest priority, no switching at all

Hello,
I've tried to use TNeo with my ATSAMC21E (Cortex-M0+) and GCC compiler, have configured everything (.S file too) but without success. I can start the RTOS and create tasks, but it stays always in the task with highest priority and doesn't switch to another tasks after tn_task_sleep(1). Even idle task and SysTick interrupt are not active anymore. It seems to be not usable with such configuration (Cortex-M0+ and GCC).
Very interesting project but not really functional with all CPUs from the list.

Error during build with GCC-7.2

Architecture: ARM Cortex M4F
Compiler: Linaro gcc-arm-none-eabi-7-2017-q4-major (bundled with TI Code Composer Studio v8.0.0)

During the build this warning is treated as error, so the build fails:

src/arch/cortex_m/tn_arch_cortex_m.S:303:22: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] #if _TN_NEED_SAVE_LR() ^ src/arch/cortex_m/tn_arch_cortex_m.S:400:22: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] #if _TN_NEED_SAVE_LR() ^ src/arch/cortex_m/tn_arch_cortex_m.S:489:22: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] #if _TN_NEED_SAVE_LR() ^ cc1: all warnings being treated as errors make[1]: *** [_obj/cortex_m4f/arm-none-eabi-gcc/tn_arch_cortex_m.o] Ошибка 1 make: *** [all] Ошибка 2

cast-align issues in tn_fmem_create

I'm trying to use tneo in my samd21 (m0+) project. Since I have my own build engine based on python, I'm doing the "build manually" route. One of the options I compile with is -Wcast-align. However, doing so is producing the following error:

/Users/travisg/Projects/twig_lora_tneo/TNEO/core/tn_fmem.c: In function 'tn_fmem_create':
/Users/travisg/Projects/twig_lora_tneo/TNEO/core/tn_fmem.c:333:20: error: cast increases required alignment of target type [-Werror=cast-align]
          p_tmp   = (void **)p_block;

I'm not sure what the best way to get around this is. I can remove that option, but once upon a time, I had convinced myself that was a good thing to check for.

I got many warnings when that was compiled with GCC 'Pedantic'-mode

Hi.

  1. When I'm using the 'Pedantic' mode I got warnings like this:
../wm-core/src/tneo/src/core/internal/_tn_timer.h: In function '_tn_timer_callback_call':
../wm-core/src/tneo/src/core/internal/_tn_timer.h:182:20: warning: ISO C99 requires at least one argument for the "..." in a variadic macro
    TN_INT_IRESTORE();

../wm-core/src/tneo/src/core/tn_tasks.c: In function '_task_terminate':
../wm-core/src/tneo/src/core/tn_tasks.c:356:25: warning: ISO C99 requires at least one argument for the "..." in a variadic macro
       _TN_FATAL_ERROR("");

  1. I have seen strange macros in file tn_arch_cortex_m.h. This file is part of arm-cortex arch and PIC32 prefix surprised me.
#define TN_INT_RESTORE()    _TN_PIC32_INTSAVE_CHECK();                      \
                            tn_arch_sr_restore(TN_INTSAVE_VAR)

Links to documentation is broken

It looks like a great project!

In the readme, all the links to the documentation return a 404.
They all link to some special bitbucket repo, that doesn't seem to exist.
I'm curious about reading the documentation.

Please add a license file.

Hello dimonomid,

I see that the original TNKernel and the andersm/TNKernel-PIC32 are under the BSD license. Could you please add a LICENSE or COPYING file or section in the README with the license you choose?

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.