2
0

fw.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef FW_H
  2. #define FW_H
  3. #include "compiler.h"
  4. #include "picorv32.h"
  5. #include "irq.h"
  6. extern const size_t __rom_offset;
  7. extern no_return _die(void);
  8. extern no_return exit(int);
  9. extern no_return _exit(int);
  10. /* Value of an absolute symbol with one more _ than here given */
  11. #define abssymval(x) \
  12. static inline size_t x (void) { \
  13. extern const char _ ## x []; \
  14. return (size_t) _ ## x; \
  15. }
  16. extern const uint8_t _end[];
  17. extern void *_sbrk(size_t);
  18. extern uint32_t timer_irq_start;
  19. static inline uint32_t timer_count(void)
  20. {
  21. extern volatile uint32_t timer_irq_count;
  22. return timer_irq_count;
  23. }
  24. extern void init(void);
  25. extern void mount_abcdrives(void);
  26. extern void read_rtc(void);
  27. extern void write_rtc(void);
  28. extern bool do_write_rtc;
  29. extern void rtc_abc_init(void);
  30. extern void rtc_abc_io_poll(void);
  31. extern void disk_cache_init(void);
  32. extern uint32_t romcopy_time[2];
  33. extern void romcopy_download(void *, size_t, size_t);
  34. extern void romcopy_bzero(void *, size_t);
  35. extern uint64_t rom_get_serial(void);
  36. extern void run_test_image(void);
  37. #endif /* FW_H */