| 19 | #endif |
| 20 | |
| 21 | void select_hal(hal_t hal, void *data) |
| 22 | { |
| 23 | switch(hal) { |
| 24 | #ifdef CMOS_HAL |
| 25 | case HAL_CMOS: |
| 26 | current_access = &cmos_hal; |
| 27 | break; |
| 28 | #endif |
| 29 | case HAL_MEMORY: |
| 30 | default: |
| 31 | current_access = &memory_hal; |
| 32 | break; |
| 33 | } |
| 34 | current_access->init(data); |
| 35 | } |
| 36 | |
| 37 | /* Bit-level access */ |
| 38 | typedef struct { |