| 71 | #endif |
| 72 | |
| 73 | static u32 get_buffer_size(u8 footprint) |
| 74 | { |
| 75 | if(footprint == USE_2MB) return _2MB_; |
| 76 | if(footprint == USE_3MB) return _3MB_; |
| 77 | |
| 78 | if(footprint == 1) //MIN |
| 79 | { |
| 80 | #ifndef LITE_EDITION |
| 81 | return ( 320*KB); |
| 82 | #else |
| 83 | return ( _256KB_); |
| 84 | #endif |
| 85 | } |
| 86 | else |
| 87 | if(footprint == 2 || footprint >= 4) //MAX |
| 88 | { |
| 89 | return ( 1280*KB); |
| 90 | } |
| 91 | else |
| 92 | if(footprint == 3) //MIN+ |
| 93 | { |
| 94 | return (_512KB_); |
| 95 | } |
| 96 | else //STANDARD |
| 97 | { |
| 98 | return ( 896*KB); |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | static void set_buffer_sizes(u8 footprint) |
| 103 | { |
no outgoing calls
no test coverage detected