You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe it makes sense to introduce an abstract type here:
abstype PORTBval_t = int8
macdef PORTB_LEDON = $extval(PORTBval_t, "0xff")
macdef PORTB_LEDOFF = $extval(PORTBval_t, "0xff")
PORTB_get and PORTB_set can be implemented as templates:
extern
fun{} PORTB_get (): PORTBval_t
extern
fun{} PORTB_set (v: PORTBval_t): void
This will allow you to re-implement them for different chip models.
The text was updated successfully, but these errors were encountered:
githwxi/ATS-Postiats#3 (comment)
The text was updated successfully, but these errors were encountered: