How do I create a weak function via Keil Cx51?
So implementing a callback mechanism would be a possible solution.