conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Add dependent types into EEPROM API\n"
},
{
"from": "human",
"value": "%{#\n#include <avr/eeprom.h>\n%}\nfun eeprom_read_byte (address: int): uint8 = \"mac#\"\nfun eeprom_write_byte (address: int, value: uint8): void = \"mac#\"\n"
},
{
"from": "gpt",
"va... | ats | chosen |
[
{
"from": "system",
"value": "Include C raw source code\n"
},
{
"from": "human",
"value": "implement main0 () = ()\n"
},
{
"from": "gpt",
"value": "%{^\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 conn... | ats | chosen |
[
{
"from": "human",
"value": "Add type to mbed interface\n"
},
{
"from": "gpt",
"value": "%{^\n#include \"mbed_interface.h\"\n%}\n\ntypedef char_p = cPtr0(char)\n\nfun mbed_mac_address: (char_p) -> void = \"mac#\"\n"
}
] | ats | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.