{"commit":"d1e06fa9f0d59da5583a290dd88ab2c470a85dc2","old_file":"SATS\/eeprom.sats","new_file":"SATS\/eeprom.sats","old_contents":"%{#\n#include \n%}\nfun eeprom_read_byte (address: int): uint8 = \"mac#\"\nfun eeprom_write_byte (address: int, value: uint8): void = \"mac#\"\n","new_contents":"%{#\n#include \n%}\nfun eeprom_read_byte {n:nat} (address: int n): uint8 = \"mac#\"\nfun eeprom_write_byte {n:nat} (address: int n, value: uint8): void = \"mac#\"\n","subject":"Add dependent types into EEPROM API","message":"Add dependent types into EEPROM API\n","lang":"ATS","license":"mit","repos":"Proclivis\/arduino-ats,Proclivis\/arduino-ats,fpiot\/arduino-ats,fpiot\/arduino-ats"} {"commit":"44b76f434e557f631a1568f86798f00701720313","old_file":"demos\/blink_ats\/main.dats","new_file":"demos\/blink_ats\/main.dats","old_contents":"implement main0 () = ()\n","new_contents":"%{^\n#include \"LPC17xx.h\"\n%}\n\n%{\nvolatile int g_LoopDummy;\n\nvoid c_blink(void)\n{\n\tLPC_GPIO1->FIODIR |= 1 << 18; \/\/ P1.18 connected to LED1\n\twhile(1)\n\t{\n\t\tint i;\n\n\t\tLPC_GPIO1->FIOPIN ^= 1 << 18; \/\/ Toggle P1.18\n\t\tfor (i = 0 ; i < 5000000 && !g_LoopDummy ; i++)\n\t\t{\n\t\t}\n\t}\n}\n%}\n\nextern fun c_blink (): void = \"mac#\"\n\nimplement main0 () = c_blink ()\n","subject":"Include C raw source code","message":"Include C raw source code\n","lang":"ATS","license":"apache-2.0","repos":"fpiot\/mbed-ats,fpiot\/mbed-ats,fpiot\/mbed-ats,fpiot\/mbed-ats,fpiot\/mbed-ats,fpiot\/mbed-ats"} {"commit":"f55465fa5eebe0ee2fae412e8a72725ddb911039","old_file":"demos\/halapi_ats\/libmbedats\/SATS\/mbed_api_mbed_interface.sats","new_file":"demos\/halapi_ats\/libmbedats\/SATS\/mbed_api_mbed_interface.sats","old_contents":"","new_contents":"%{^\n#include \"mbed_interface.h\"\n%}\n\ntypedef char_p = cPtr0(char)\n\nfun mbed_mac_address: (char_p) -> void = \"mac#\"\n","subject":"Add type to mbed interface","message":"Add type to mbed interface\n","lang":"ATS","license":"apache-2.0","repos":"fpiot\/mbed-ats,fpiot\/mbed-ats,fpiot\/mbed-ats,fpiot\/mbed-ats,fpiot\/mbed-ats,fpiot\/mbed-ats"}