@@ -25,121 +25,120 @@ extern "C" {
25
25
#endif
26
26
27
27
static const mbed_error_status_t function_not_implemented = MBED_MAKE_ERROR(MBED_MODULE_BLE, ENOSYS);
28
- #define NOT_IMPLEMENTED (name ) MBED_ERROR(function_not_implemented, " Provide implementation of " name" ." );
29
28
30
29
/* UART */
31
30
32
31
MBED_WEAK PalUartState_t PalUartGetState (PalUartId_t id)
33
32
{
34
- NOT_IMPLEMENTED ( " PalUartGetState" );
33
+ MBED_ERROR (function_not_implemented, " Provide implementation of PalUartGetState" );
35
34
return PAL_UART_STATE_UNINIT;
36
35
}
37
36
38
37
MBED_WEAK void PalUartInit (PalUartId_t id, const PalUartConfig_t *pCfg)
39
38
{
40
- NOT_IMPLEMENTED ( " PalUartInit" );
39
+ MBED_ERROR (function_not_implemented, " Provide implementation of PalUartInit" );
41
40
}
42
41
43
42
MBED_WEAK void PalUartReadData (PalUartId_t id, uint8_t *pData, uint16_t len)
44
43
{
45
- NOT_IMPLEMENTED ( " PalUartReadData" );
44
+ MBED_ERROR (function_not_implemented, " Provide implementation of PalUartReadData" );
46
45
}
47
46
48
47
MBED_WEAK void PalUartWriteData (PalUartId_t id, const uint8_t *pData, uint16_t len)
49
48
{
50
- NOT_IMPLEMENTED ( " PalUartWriteData" );
49
+ MBED_ERROR (function_not_implemented, " Provide implementation of PalUartWriteData" );
51
50
}
52
51
53
52
/* NVM */
54
53
55
54
MBED_WEAK void PalNvmInit (PalNvmCback_t actCback)
56
55
{
57
- NOT_IMPLEMENTED ( " PalNvmInit" );
56
+ MBED_ERROR (function_not_implemented, " Provide implementation of PalNvmInit" );
58
57
}
59
58
60
59
MBED_WEAK PalNvmState_t PalNvmGetState ()
61
60
{
62
- NOT_IMPLEMENTED ( " PalNvmGetState" );
61
+ MBED_ERROR (function_not_implemented, " Provide implementation of PalNvmGetState" );
63
62
return PAL_NVM_STATE_UNINIT;
64
63
}
65
64
66
65
MBED_WEAK void PalNvmRead (MBED_WEAK void *pBuf, uint32_t size, uint32_t srcAddr)
67
66
{
68
- NOT_IMPLEMENTED ( " PalNvmRead" );
67
+ MBED_ERROR (function_not_implemented, " Provide implementation of PalNvmRead" );
69
68
}
70
69
71
70
MBED_WEAK void PalNvmWrite (MBED_WEAK void *pBuf, uint32_t size, uint32_t dstAddr)
72
71
{
73
- NOT_IMPLEMENTED ( " PalNvmWrite" );
72
+ MBED_ERROR (function_not_implemented, " Provide implementation of PalNvmWrite" );
74
73
}
75
74
76
75
MBED_WEAK void PalNvmEraseSector (uint32_t size, uint32_t startAddr)
77
76
{
78
- NOT_IMPLEMENTED ( " PalNvmEraseSector" );
77
+ MBED_ERROR (function_not_implemented, " Provide implementation of PalNvmEraseSector" );
79
78
}
80
79
81
80
/* LED */
82
81
83
82
MBED_WEAK void PalLedOn (uint8_t id)
84
83
{
85
- NOT_IMPLEMENTED ( " PalLedOn" );
84
+ MBED_ERROR (function_not_implemented, " Provide implementation of PalLedOn" );
86
85
}
87
86
88
87
MBED_WEAK void PalLedOff (uint8_t id)
89
88
{
90
- NOT_IMPLEMENTED ( " PalLedOff" );
89
+ MBED_ERROR (function_not_implemented, " Provide implementation of PalLedOff" );
91
90
}
92
91
93
92
/* RTC */
94
93
95
94
MBED_WEAK void PalRtcInit ()
96
95
{
97
- NOT_IMPLEMENTED ( " PalRtcInit" );
96
+ MBED_ERROR (function_not_implemented, " Provide implementation of PalRtcInit" );
98
97
}
99
98
100
99
MBED_WEAK void PalRtcEnableCompareIrq ()
101
100
{
102
- NOT_IMPLEMENTED ( " PalRtcEnableCompareIrq" );
101
+ MBED_ERROR (function_not_implemented, " Provide implementation of PalRtcEnableCompareIrq" );
103
102
}
104
103
105
104
MBED_WEAK void PalRtcDisableCompareIrq ()
106
105
{
107
- NOT_IMPLEMENTED ( " PalRtcDisableCompareIrq" );
106
+ MBED_ERROR (function_not_implemented, " Provide implementation of PalRtcDisableCompareIrq" );
108
107
}
109
108
110
109
MBED_WEAK uint32_t PalRtcCounterGet ()
111
110
{
112
- NOT_IMPLEMENTED ( " PalRtcDisableCompareIrq" );
111
+ MBED_ERROR (function_not_implemented, " Provide implementation of PalRtcDisableCompareIrq" );
113
112
return 0 ;
114
113
}
115
114
116
115
MBED_WEAK void PalRtcCompareSet (uint32_t value)
117
116
{
118
- NOT_IMPLEMENTED ( " PalRtcCompareSet" );
117
+ MBED_ERROR (function_not_implemented, " Provide implementation of PalRtcCompareSet" );
119
118
}
120
119
121
120
MBED_WEAK uint32_t PalRtcCompareGet ()
122
121
{
123
- NOT_IMPLEMENTED ( " PalRtcCompareGet" );
122
+ MBED_ERROR (function_not_implemented, " Provide implementation of PalRtcCompareGet" );
124
123
return 0 ;
125
124
}
126
125
127
126
/* SYS */
128
127
129
128
MBED_WEAK bool_t PalSysIsBusy ()
130
129
{
131
- NOT_IMPLEMENTED ( " PalSysIsBusy" );
130
+ MBED_ERROR (function_not_implemented, " Provide implementation of PalSysIsBusy" );
132
131
return 0 ;
133
132
}
134
133
135
134
MBED_WEAK void PalSysAssertTrap ()
136
135
{
137
- NOT_IMPLEMENTED ( " PalSysAssertTrap" );
136
+ MBED_ERROR (function_not_implemented, " Provide implementation of PalSysAssertTrap" );
138
137
}
139
138
140
139
MBED_WEAK void PalSysSleep ()
141
140
{
142
- NOT_IMPLEMENTED ( " PalSysSleep" );
141
+ MBED_ERROR (function_not_implemented, " Provide implementation of PalSysSleep" );
143
142
}
144
143
145
144
#ifdef __cplusplus
0 commit comments