活动详情请点击官方活动页面:
http://www.eepw.com.cn/event/action/STM32_L053/index.html
……
(偷偷告诉你,现在就可以抢先申请啦~~~快去活动页面一探究竟吧!)……
接下来用这个再重写blink
官网上的例子:
Blinky example using CMSIS-CORE
Let's see ……
#include "mbed.h"
int main() {
printf("LPC_GPIO1->FIOSET: %p\n", &LPC_GPIO……
GPIO的定义
参见楼上两个帖子
#define GPIOA ((GPIO_TypeDef *) GPIOA_……
#define GPIOA_BASE (IOPPERIPH_BASE + 0x00000000)
#define GPIOB_BASE ……
/**
* @brief General Purpose IO
*/
typedef struct
{
__IO uint32_t MODER; ……