Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function w1_init
- % Initialize TrueTime kernel
- ttInitKernel('prioFP'); % scheduling policy - fixed priority
- % Periodic task
- starttime = 0.0;
- period = 0.01;
- ttCreatePeriodicTask('w1_task', starttime, period, 'w1_code');
- % Network handler
- ttAttachNetworkHandler(1,'w1_task')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement