从事c6455开发遇到几个问题
1、我看到一个dsp/bios工程,没有BIOS_start()函数,并且在配置中也没有看见这个函数,请问是怎么启动bios的,在bios配置文件(比较老的版本 tcf格式的)上面也没有发现启动bios相关内容 ,并且也没有找到programcfg.snn文件
2、我想在启动bios之后执行一个初始化函数(这个函数不能在bios之前执行,因为需要用到bios的配置)仅仅执行一次,但是bios程序是调度HWI、SWI、TASK和IDLE进程的,我的函数放在哪儿?能直接放在BIOS_start()函数后面吗?
比如这样:
main()
{
BIOS_start();
init(); //我的初始化函数
}
3、我看SPRUEX3M文档第50页
The SYS/BIOS startup sequence that run when BIOS_start() is called is as follows:
1. Startup Functions. Run the user-supplied "startup functions" (see BIOS.startupFxns).
2. Enable Hardware Interrupts.
3. Timer Startup. If the system supports Timers, then at this point all configured timers are initialized per their user-configuration. If a timer was configured to start "automatically", it is started here.
4. Enable Software Interrupts. If the system supports software interrupts (Swis) (see BIOS.swiEnabled), then the SYS/BIOS startup sequence enables Swis at this point.
5. Task Startup. If the system supports Tasks (see BIOS.taskEnabled), then task scheduling begins here. If there are no statically or dynamically created Tasks in the system, then execution proceeds directly to the idle loop
按照这个启动顺序,也就是硬件中断和软件中断只能在bios_start()函数之后才能使能,那么在bios_start()之前是不是就不能使用这两个中断了