Commit 5a359552 authored by Christian Eichler's avatar Christian Eichler
Browse files

Reenable querying PFLASH

parent 724b9e46
......@@ -162,13 +162,13 @@ static void command_inf(char *arg) {
CDC_Device_SendString(&VirtualSerial_CDC_Interface, "\r");
// send PFLASH
//{
// char buf[128] = {0};
// uint64_to_string(buf, (FLASH0->FCON & (uint32_t)FLASH_FCON_WSPFLASH_Msk) >> FLASH_FCON_WSPFLASH_Pos);
// CDC_Device_SendString(&VirtualSerial_CDC_Interface, "o:wspflash ");
// CDC_Device_SendString(&VirtualSerial_CDC_Interface, buf);
// CDC_Device_SendString(&VirtualSerial_CDC_Interface, "\r");
//}
{
char buf[128] = {0};
uint64_to_string(buf, (FLASH0->FCON & (uint32_t)FLASH_FCON_WSPFLASH_Msk) >> FLASH_FCON_WSPFLASH_Pos);
CDC_Device_SendString(&VirtualSerial_CDC_Interface, "o:wspflash ");
CDC_Device_SendString(&VirtualSerial_CDC_Interface, buf);
CDC_Device_SendString(&VirtualSerial_CDC_Interface, "\r");
}
// send DWT status
switch(DWT->CTRL & 0xFF000000) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment