Changeset 289 for rubycfg_ssp
- Timestamp:
- May 6, 2017, 8:08:32 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rubycfg_ssp/trunk/task.trb
r288 r289 50 50 def initialize() 51 51 super("tsk", "task") 52 @tsk_apri_list = []53 52 @reallocate_atskpri = {} 54 53 @reallocate_etskpri = {} … … 62 61 63 62 ($cfgData[:CRE_TSK].sort_by {|e| e[1][:atskpri].val}).each.with_index(1) do |e, index| 64 @tsk_apri_list.push(e[0])65 63 @reallocate_atskpri[e[0]] = index 66 64 $kernelCfgH.add("#define #{e[1][:tskid].str} #{index}") … … 145 143 146 144 # atskpri が重複する場合 (E_PAR) 147 @ tsk_apri_list.eachdo |id|145 @reallocate_atskpri.each_key do |id| 148 146 if (params[:tskid].val != id) && (params[:atskpri] == $cfgData[@api][id][:atskpri]) 149 147 error_illegal_id("E_PAR", params, :atskpri, :tskid) … … 196 194 # タスク属性(tskatr) 197 195 $kernelCfgC.append("const ATR\t_kernel_tinib_tskatr[TNUM_TSKID] = {") 198 @ tsk_apri_list.each.with_index do |id, index|196 @reallocate_atskpri.each_key.with_index do |id, index| 199 197 tskatr = $cfgData[@api][id][:tskatr] 200 198 $kernelCfgC.append(",") if index > 0 … … 210 208 # 拡張情報(exinf) 211 209 $kernelCfgC.append("const intptr_t\t_kernel_tinib_exinf[TNUM_TSKID] = {") 212 @ tsk_apri_list.each.with_index do |id, index|210 @reallocate_atskpri.each_key.with_index do |id, index| 213 211 exinf = $cfgData[@api][id][:exinf] 214 212 $kernelCfgC.append(",") if index > 0 … … 219 217 # 起動番地(task) 220 218 $kernelCfgC.append("const TASK\t_kernel_tinib_task[TNUM_TSKID] = {") 221 @ tsk_apri_list.each.with_index do |id, index|219 @reallocate_atskpri.each_key.with_index do |id, index| 222 220 task = $cfgData[@api][id][:task] 223 221 $kernelCfgC.append(",") if index > 0 … … 228 226 # 実行時優先度(etskpri) 229 227 $kernelCfgC.append("const uint_t\t_kernel_tinib_epriority[TNUM_TSKID] = {") 230 @ tsk_apri_list.each.with_index do |id, index|228 @reallocate_atskpri.each_key.with_index do |id, index| 231 229 begin 232 230 # 実行時優先度がDEF_EPR で定義されていない場合,起動優先度の設定値を使う … … 238 236 end 239 237 240 @ tsk_apri_list.eachdo |id2|238 @reallocate_atskpri.each_key do |id2| 241 239 if epri <= $cfgData[@api][id2][:atskpri] 242 240 $kernelCfgC.append(",") if index > 0 … … 258 256 $kernelCfgC.add("/*") 259 257 $kernelCfgC.add(" * Configuration result of task priority:") 260 @ tsk_apri_list.eachdo |id|258 @reallocate_atskpri.each_key do |id| 261 259 $kernelCfgC.append(" * \t#{$cfgData[@api][id][:tskid]}:\tIPRI = #{@reallocate_atskpri[id]}") 262 260 $kernelCfgC.add(", EXEPRI = #{@reallocate_etskpri[id]}")
Note:
See TracChangeset
for help on using the changeset viewer.